From c73d1efb60e834c57c6343745415c4b58418c934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Colombaro?= Date: Wed, 15 May 2019 02:30:40 +0200 Subject: [PATCH] Fix 304 responses Cache-control override Fix #230 --- .travis.yml | 2 +- h5bp/web_performance/cache_expiration.conf | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 1200c9f..e29671f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,7 +32,7 @@ before_script: nginx 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 diff --git a/h5bp/web_performance/cache_expiration.conf b/h5bp/web_performance/cache_expiration.conf index ee2b588..21f7302 100644 --- a/h5bp/web_performance/cache_expiration.conf +++ b/h5bp/web_performance/cache_expiration.conf @@ -15,6 +15,9 @@ map $sent_http_content_type $expires { default 1M; + # No content + "" off; + # CSS ~*text/css 1y;