From a138f35aca4af7d8a88b356eb0055de7c53bb16e Mon Sep 17 00:00:00 2001 From: Allan Tatter Date: Fri, 9 Sep 2022 09:18:52 +0300 Subject: [PATCH] Remove max-age from mime-types that should not be cached --- h5bp/web_performance/cache_expiration.conf | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/h5bp/web_performance/cache_expiration.conf b/h5bp/web_performance/cache_expiration.conf index 1f2055e..f6f52bd 100644 --- a/h5bp/web_performance/cache_expiration.conf +++ b/h5bp/web_performance/cache_expiration.conf @@ -25,20 +25,20 @@ map $sent_http_content_type $expires { ~*application/rdf\+xml 1h; ~*application/rss\+xml 1h; - ~*application/json 0; - ~*application/ld\+json 0; - ~*application/schema\+json 0; - ~*application/geo\+json 0; - ~*application/xml 0; - ~*text/calendar 0; - ~*text/xml 0; + ~*application/json off; + ~*application/ld\+json off; + ~*application/schema\+json off; + ~*application/geo\+json off; + ~*application/xml off; + ~*text/calendar off; + ~*text/xml off; # Favicon (cannot be renamed!) and cursor images ~*image/vnd.microsoft.icon 1w; ~*image/x-icon 1w; # HTML - ~*text/html 0; + ~*text/html off; # JavaScript ~*application/javascript 1y; @@ -47,11 +47,11 @@ map $sent_http_content_type $expires { # Manifest files ~*application/manifest\+json 1w; - ~*application/x-web-app-manifest\+json 0; - ~*text/cache-manifest 0; + ~*application/x-web-app-manifest\+json off; + ~*text/cache-manifest off; # Markdown - ~*text/markdown 0; + ~*text/markdown off; # Media files ~*audio/ 1y;