From 8f67896407cc434a87379e4d795d50eb587bb769 Mon Sep 17 00:00:00 2001 From: Inferencebot Date: Fri, 13 Nov 2026 21:18:41 +0000 Subject: [PATCH] page: Cache-Control no-store (same reason as the panel: no validators on a single inline script, so a cached copy runs the previous deploy's JS) --- app/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index fb46ee9..85f9369 100644 --- a/app/main.py +++ b/app/main.py @@ -156,7 +156,10 @@ async def index(request: Request): "

Not authenticated

Please log in via the dashboard login.

", status_code=401, ) - return HTMLResponse(render_page(identity)) + # no-store: the page is one inline script with no validators, so a cached + # copy runs the PREVIOUS deploy's JS and makes a working app look broken + # (it did, 2026-11-13). + return HTMLResponse(render_page(identity), headers={"Cache-Control": "no-store"}) @app.get("/api/usage")