disable caching - should lower cached value later

This commit is contained in:
Michael DiLeo
2025-08-14 09:45:19 -05:00
parent 7a8ef0fab7
commit 4e22a6c687

View File

@@ -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 {