Remove max-age from mime-types that should not be cached
This commit is contained in:
parent
c11e1e8ae1
commit
a138f35aca
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue