From c650a26b2ddcc16456a32b7dbb409321c311f7cb Mon Sep 17 00:00:00 2001 From: oratis Date: Wed, 1 Jul 2026 18:31:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(web):=20no-store=20on=20the=20GUI=20shell?= =?UTF-8?q?=20HTML=20(/,=20/island)=20=E2=80=94=20no=20more=20stale=20cach?= =?UTF-8?q?e=20after=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A WKWebView (the Mac app) / browser cached the shell HTML, so after `lisa` was updated the old GUI kept rendering — e.g. a "removed" element still showing — until the WebKit data store was manually cleared. The shell carries the current markup + asset references, so it must always be fresh. Add `Cache-Control: no-store` to the `/` (MAIN_HTML) and `/island` (ISLAND_HTML) responses. Hashed assets keep their own long-cache headers; only the shell is no-store. Verified: typecheck + HTML snapshot + auth tests pass. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/web/server.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/web/server.ts b/src/web/server.ts index 910bf33..6a8761e 100644 --- a/src/web/server.ts +++ b/src/web/server.ts @@ -674,7 +674,10 @@ export async function startWebServer(opts: WebServerOptions): Promise