change cache-control to no-cache from max-age=0 for content-types that should not be cached by default

This commit is contained in:
Allan Tatter 2022-10-28 11:28:08 +03:00 committed by Léo Colombaro
parent a138f35aca
commit 771aa10f19
1 changed files with 11 additions and 11 deletions

View File

@ -25,20 +25,20 @@ map $sent_http_content_type $expires {
~*application/rdf\+xml 1h;
~*application/rss\+xml 1h;
~*application/json off;
~*application/ld\+json off;
~*application/schema\+json off;
~*application/geo\+json off;
~*application/xml off;
~*text/calendar off;
~*text/xml off;
~*application/json -1;
~*application/ld\+json -1;
~*application/schema\+json -1;
~*application/geo\+json -1;
~*application/xml -1;
~*text/calendar -1;
~*text/xml -1;
# Favicon (cannot be renamed!) and cursor images
~*image/vnd.microsoft.icon 1w;
~*image/x-icon 1w;
# HTML
~*text/html off;
~*text/html -1;
# 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 off;
~*text/cache-manifest off;
~*application/x-web-app-manifest\+json -1;
~*text/cache-manifest -1;
# Markdown
~*text/markdown off;
~*text/markdown -1;
# Media files
~*audio/ 1y;