summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2021-04-11 23:28:04 -0400
committerDaniel Micay <danielmicay@gmail.com>2021-04-11 23:28:04 -0400
commit2f61719328da006692643c0b65d833312f6de384 (patch)
tree7be1a84eaeb9d3d64c7762325d443198188e61cd
parent747020407bcf401552b472b70db0cd53acfc0557 (diff)
mark js/mjs as immutable too
-rw-r--r--nginx/nginx.conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index e3d01146..a82c1dd1 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -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";
}