diff --git a/nginx.conf b/nginx.conf index 6569dcf..8e605a8 100644 --- a/nginx.conf +++ b/nginx.conf @@ -40,14 +40,21 @@ http { add_header X-XSS-Protection "1; mode=block" always; add_header Referrer-Policy "strict-origin-when-cross-origin" always; + # Temporary: Disable caching during development location ~* \.(css|js|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ { - expires 1w; - add_header Cache-Control "public, immutable"; + # expires 1w; + # add_header Cache-Control "public, immutable"; + add_header Cache-Control "no-cache, no-store, must-revalidate"; + add_header Pragma "no-cache"; + add_header Expires "0"; } location ~* \.html$ { - expires 1h; - add_header Cache-Control "public"; + # expires 1h; + # add_header Cache-Control "public"; + add_header Cache-Control "no-cache, no-store, must-revalidate"; + add_header Pragma "no-cache"; + add_header Expires "0"; } location /health {