set immutable for CSS cache header
This commit is contained in:
parent
342a31c06c
commit
c3cd0bf24a
@ -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";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user