mark js/mjs as immutable too

This commit is contained in:
Daniel Micay 2021-04-11 23:28:04 -04:00
parent 747020407b
commit 2f61719328

View File

@ -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";
}