From 2f61719328da006692643c0b65d833312f6de384 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sun, 11 Apr 2021 23:28:04 -0400 Subject: [PATCH] mark js/mjs as immutable too --- nginx/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"; }