From bc5da23f438ab0dd6dd17a5e7eef87e31c2eedd9 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Fri, 26 Dec 2025 12:35:24 -0800 Subject: Cache for 30m --- nginx.conf | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'nginx.conf') diff --git a/nginx.conf b/nginx.conf index 12fcf04..70946b7 100644 --- a/nginx.conf +++ b/nginx.conf @@ -50,24 +50,24 @@ http { } location ~* \.(css|js)$ { - expires 1y; - add_header Cache-Control "public, immutable, max-age=31536000" always; + expires 30m; + add_header Cache-Control "public, max-age=1800" always; } location ~* \.(woff|woff2|ttf|otf|eot)$ { - expires 1y; - add_header Cache-Control "public, immutable, max-age=31536000" always; + expires 30m; + add_header Cache-Control "public, max-age=1800" always; add_header Access-Control-Allow-Origin "*" always; } location ~* \.(jpg|jpeg|png|gif|svg|ico|webp)$ { - expires 30d; - add_header Cache-Control "public, max-age=2592000" always; + expires 30m; + add_header Cache-Control "public, max-age=1800" always; } location / { - expires 1h; - add_header Cache-Control "public, max-age=3600" always; + expires 30m; + add_header Cache-Control "public, max-age=1800" always; try_files $uri $uri/ =404; } } -- cgit v1.2.3-70-g09d2