From a25e71478582b913f21ba523664f872f0b92906c Mon Sep 17 00:00:00 2001 From: Sulthan Zaki Date: Fri, 17 Jul 2026 07:46:04 +0700 Subject: [PATCH] fix: reduce asset cache from 1y to 7d, remove immutable, add no-cache for index --- nginx.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nginx.conf b/nginx.conf index 2b672ba..7667840 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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"; } }