diff --git a/conf/nginx.conf b/conf/nginx.conf index 8facb26..2935687 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -97,11 +97,11 @@ location / { more_set_headers "X-Cache-Status: $upstream_cache_status"; } - location ~* \.(js|css).*$ { + location ~* ^/.*\.(js|css).*$ { more_set_headers "Cache-Control: 'max-age=86400'"; # 24 hours } - location ~* \.(html).*$ { + location ~* ^/.*\.(html).*$ { more_set_headers "Cache-Control: 'no-cache, max-age=0'"; }