forked from code/member-dashboard
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)
This commit is contained in:
1 parent
a6a70a0754
commit
8f67896407
1 file changed
+4
-1
+4
-1
@@ -156,7 +156,10 @@ async def index(request: Request):
|
||||
"<h1>Not authenticated</h1><p>Please log in via the dashboard login.</p>",
|
||||
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")
|
||||
|
||||
Reference in new issue
Block a user