From 44d8ca6887c330732e84521cc9b546f8f2727b26 Mon Sep 17 00:00:00 2001 From: Michael DiLeo Date: Wed, 20 Aug 2025 16:25:46 -0500 Subject: [PATCH] add back caching, but for 10 minutes --- nginx.conf | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/nginx.conf b/nginx.conf index 8e605a8..c4e798a 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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 {