add back caching, but for 10 minutes

This commit is contained in:
Michael DiLeo
2025-08-20 16:25:46 -05:00
parent 316675bd64
commit 44d8ca6887

View File

@@ -42,19 +42,19 @@ http {
# 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";
add_header Cache-Control "no-cache, no-store, must-revalidate";
add_header Pragma "no-cache";
add_header Expires "0";
expires 10m;
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";
add_header Cache-Control "no-cache, no-store, must-revalidate";
add_header Pragma "no-cache";
add_header Expires "0";
expires 10m;
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 {