Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/web/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,10 @@ export async function startWebServer(opts: WebServerOptions): Promise<http.Serve
};

if (req.method === "GET" && (url === "/" || url.startsWith("/?"))) {
res.writeHead(200, { "content-type": "text/html; charset=utf-8" });
// no-store: never cache the shell, or a WKWebView / browser keeps rendering
// an old GUI after `lisa` is updated (the shell carries the current markup +
// asset references). Fixes the "removed element still shows" stale-cache bug.
res.writeHead(200, { "content-type": "text/html; charset=utf-8", "cache-control": "no-store" });
res.end(MAIN_HTML);
return;
}
Expand All @@ -690,7 +693,7 @@ export async function startWebServer(opts: WebServerOptions): Promise<http.Serve
// Island widget — designed to be opened in a tiny browser window
// (Arc, Vivaldi PWA, Safari split). See docs/MAC_ISLAND_PLAN.md.
if (req.method === "GET" && (url === "/island" || url.startsWith("/island?"))) {
res.writeHead(200, { "content-type": "text/html; charset=utf-8" });
res.writeHead(200, { "content-type": "text/html; charset=utf-8", "cache-control": "no-store" });
res.end(ISLAND_HTML);
return;
}
Expand Down