From 9bdb6a58129ec4fc1a3d7ecc7927864efc766be3 Mon Sep 17 00:00:00 2001 From: Lazzexus <54175295+ScuffedLazzexus@users.noreply.github.com> Date: Sun, 22 Nov 2026 10:26:40 +0100 Subject: [PATCH] Make browsers check for a new web map on every load MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit main.bundle.js and the CSS keep the same name in every version, and nginx didn't send Cache-Control, so browsers could keep running the old bundle after a deploy. Then new pages (like /research/tree) showed the landing page, stuck on "Loading servers…". Send Cache-Control: no-cache, so browsers revalidate each load; unchanged files are still a cheap 304 via the ETag. Icons keep their 1 day expiry. Co-Authored-By: Claude Opus 5.5 --- modules/web-map/docker/nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/web-map/docker/nginx.conf b/modules/web-map/docker/nginx.conf index 2d31521..53dc61e 100644 --- a/modules/web-map/docker/nginx.conf +++ b/modules/web-map/docker/nginx.conf @@ -42,6 +42,10 @@ http { try_files $uri $uri/ $uri.html /index.html; include mime.types; + + # main.bundle.js and the CSS keep the same name in every version, so make browsers check + # for a new version on every load (unchanged files get a cheap 304, via the ETag) + add_header Cache-Control "no-cache" always; } } }