set immutable for CSS cache header

This commit is contained in:
Daniel Micay 2021-03-26 21:25:30 -04:00
parent 342a31c06c
commit c3cd0bf24a

View File

@ -229,7 +229,12 @@ http {
add_header Cache-Control "public, max-age=604800";
}
location ~ "\.(css|js|mjs|svg)$" {
location ~ "\.css$" {
include snippets/security-headers.conf;
add_header Cache-Control "public, max-age=31536000, immutable";
}
location ~ "\.(js|mjs|svg)$" {
include snippets/security-headers.conf;
add_header Cache-Control "public, max-age=31536000";
}