summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nginx/nginx.conf7
1 files changed, 6 insertions, 1 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index f1ae783c..2575a07d 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -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";
}