From 71b3350a530522b699524a98e34fbf1691418407 Mon Sep 17 00:00:00 2001 From: Tobias Date: Tue, 19 Mar 2024 15:52:48 +0100 Subject: [PATCH] Cache: Reduce browser cache to 8 hours Szenario: Users open the page at 22:00 and need fresh data at 6:00 on the next day. --- configs/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/nginx.conf b/configs/nginx.conf index 098a339b..5c8a9375 100644 --- a/configs/nginx.conf +++ b/configs/nginx.conf @@ -67,7 +67,7 @@ http { add_header X-Cache-Status $upstream_cache_status; # Browser cache - expires 18h; + expires 8h; add_header Cache-Control "public, no-transform"; }