diff --git a/nginx/nginx.conf b/nginx/nginx.conf index e3d01146..a82c1dd1 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -234,13 +234,13 @@ http { add_header Cache-Control "public, max-age=604800"; } - location ~ "\.css$" { + location ~ "\.(css|js|mjs)$" { include snippets/security-headers.conf; add_header Cross-Origin-Resource-Policy "same-origin"; add_header Cache-Control "public, max-age=31536000, immutable"; } - location ~ "\.(js|mjs|svg)$" { + location ~ "\.svg$" { include snippets/security-headers.conf; add_header Cache-Control "public, max-age=31536000"; }