Fix 304 responses Cache-control override

Fix #230
This commit is contained in:
Léo Colombaro 2019-05-15 02:30:40 +02:00
parent 7418b5023b
commit c73d1efb60
No known key found for this signature in database
GPG Key ID: 687B480A6D4F735F
2 changed files with 4 additions and 1 deletions

View File

@ -32,7 +32,7 @@ before_script:
nginx nginx
script: script:
- ./test/bin/k6 run test/lib/index.js -e TESTS=basic-file-access:cache-busting:custom-errors:forbidden-files:precompressed-files-gzip:rewrites:ssl - ./test/bin/k6 run test/lib/index.js -e TESTS=basic-file-access:caching:cache-busting:custom-errors:forbidden-files:precompressed-files-gzip:rewrites:ssl
after_success: ./test/bin/k6 run test/lib/benchmark.js after_success: ./test/bin/k6 run test/lib/benchmark.js

View File

@ -15,6 +15,9 @@
map $sent_http_content_type $expires { map $sent_http_content_type $expires {
default 1M; default 1M;
# No content
"" off;
# CSS # CSS
~*text/css 1y; ~*text/css 1y;