From 9fe52c874ecae81efe4e02480376a5a13a96a751 Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 10 Aug 2026 23:47:43 +0200 Subject: [PATCH] fix: Prevent caching of web status (#1370) --- web/conf/nginx.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web/conf/nginx.conf b/web/conf/nginx.conf index 541a47e..f5ee835 100644 --- a/web/conf/nginx.conf +++ b/web/conf/nginx.conf @@ -23,7 +23,13 @@ server { gzip_disable "msie6"; gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/json application/xml application/rss+xml font/truetype font/opentype application/vnd.ms-fontobject image/svg+xml; - add_header Cache-Control "no-cache"; + set $cache_control "no-cache"; + + if ($request_uri ~ "^/(?:msg\.html)?(?:\?.*)?$") { + set $cache_control "no-store"; + } + + add_header Cache-Control $cache_control always; location / {