fix: reduce asset cache from 1y to 7d, remove immutable, add no-cache for index

This commit is contained in:
2026-07-17 07:46:04 +07:00
parent 7b8579c282
commit a25e714785
+3 -2
View File
@@ -12,10 +12,11 @@ server {
location / {
try_files $uri $uri/ /index.html;
add_header Cache-Control "no-cache";
}
location /assets/ {
expires 1y;
add_header Cache-Control "public, immutable";
expires 7d;
add_header Cache-Control "public";
}
}