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