From d4645d38120592c1bc056d1492eac9a11527c70e Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 23 Nov 2023 13:33:19 +0000 Subject: [PATCH] Ensure "public" is included in cache control headers --- etc/nginx.conf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/etc/nginx.conf b/etc/nginx.conf index b8266f0..cbf860d 100644 --- a/etc/nginx.conf +++ b/etc/nginx.conf @@ -27,13 +27,12 @@ server { } location /static { - expires 1y; - add_header Cache-Control "public, immutable"; + add_header Cache-Control "public, immutable, max-age=31536000"; alias /app/collected-static; } location /media { - expires 1h; + add_header Cache-Control "public, immutable, max-age=3600"; alias /app/media; } }