page: Cache-Control no-store, so a reload can't run the previous deploy's JS
ci/woodpecker/push/woodpecker Pipeline was successful

The whole UI is one inline <script> with no ETag/Last-Modified and no cache
directive. After the 2026-11-13 fix deploy, a browser holding the previous copy
would keep running the dead script and make a fixed app look broken. The page is
cheap; serve it no-store.
This commit is contained in:
inference-admin committed 2026-11-13 21:18:40 +00:00
1 parent 59a34db9f7
commit b85cc93a6b
1 file changed
+4 -1
+4 -1
View File
@@ -111,7 +111,10 @@ async def index(request: Request):
"<h1>Forbidden</h1><p>This panel is restricted to administrators.</p>",
status_code=403,
)
return HTMLResponse(render_page())
# 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(), headers={"Cache-Control": "no-store"})
@app.get("/api/overview")