diff --git a/default.conf b/default.conf index 071ec94b2..e3a86f4cd 100644 --- a/default.conf +++ b/default.conf @@ -1,10 +1,3 @@ -map $sent_http_content_type $expires { - default off; - text/html epoch; - text/css max; - application/javascript epoch; -} - server { listen 9001 ssl; listen [::]:9001 ssl; @@ -21,5 +14,9 @@ server { root /usr/share/nginx/html; } ssi on; - expires $expires; + add_header Last-Modified $date_gmt; + add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0'; + if_modified_since off; + expires off; + etag off; }