mark js/mjs as immutable too
This commit is contained in:
parent
747020407b
commit
2f61719328
@ -234,13 +234,13 @@ http {
|
|||||||
add_header Cache-Control "public, max-age=604800";
|
add_header Cache-Control "public, max-age=604800";
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ "\.css$" {
|
location ~ "\.(css|js|mjs)$" {
|
||||||
include snippets/security-headers.conf;
|
include snippets/security-headers.conf;
|
||||||
add_header Cross-Origin-Resource-Policy "same-origin";
|
add_header Cross-Origin-Resource-Policy "same-origin";
|
||||||
add_header Cache-Control "public, max-age=31536000, immutable";
|
add_header Cache-Control "public, max-age=31536000, immutable";
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ "\.(js|mjs|svg)$" {
|
location ~ "\.svg$" {
|
||||||
include snippets/security-headers.conf;
|
include snippets/security-headers.conf;
|
||||||
add_header Cache-Control "public, max-age=31536000";
|
add_header Cache-Control "public, max-age=31536000";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user