From 7ed6f13a30fc8cf87eec66b4c52bd92c90711cb8 Mon Sep 17 00:00:00 2001 From: SysAdmin Date: Sun, 19 Oct 2025 22:24:17 +0100 Subject: [PATCH] fix: Reduce aggressive browser caching for static assets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed cache expiry from 1 year to 1 hour and removed immutable flag to allow browser cache updates. The 1-year cache was preventing logo updates from being visible without clearing browser cache. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- nginx-site.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nginx-site.conf b/nginx-site.conf index 3fcbd38..7c0f329 100644 --- a/nginx-site.conf +++ b/nginx-site.conf @@ -10,10 +10,10 @@ server { gzip_types text/css application/javascript image/jpeg image/png; gzip_min_length 1000; - # Cache static assets + # Cache static assets (reduced for development) location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ { - expires 1y; - add_header Cache-Control "public, immutable"; + expires 1h; + add_header Cache-Control "public, max-age=3600"; } # Main location