fix: add Cache-Control: no-store to prevent stale JS in browser cache
FlowDeck CI / test (push) Failing after 4s
FlowDeck CI / docker (push) Has been skipped

Both board.py and dashboard.py page endpoints now return
Cache-Control: no-store, max-age=0 headers to prevent the browser
from caching the page HTML with broken x-data attributes.
This commit is contained in:
2026-07-10 13:25:35 -04:00
parent 4f0bd85e35
commit 5850085c8b
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -754,7 +754,8 @@ async def view_page(request: Request, page_id: int):
"page_share_mode": page.get("share_mode", "private"),
"page_published": bool(page.get("published", 0))}
template = env.get_template("page_editor.html")
return template.render(**ctx)
response = template.render(**ctx)
return HTMLResponse(content=response, headers={"Cache-Control": "no-store, max-age=0"})
@router.post("/api/sync/{owner}/{repo}")
async def sync_project(owner: str, repo: str):
+2 -1
View File
@@ -171,7 +171,8 @@ async def view_page_root(request: Request, page_id: int):
"page_share_mode": page.get("share_mode", "private"),
"page_published": bool(page.get("published", 0))}
template = env.get_template("page_editor.html")
return template.render(**ctx)
response = template.render(**ctx)
return HTMLResponse(content=response, headers={"Cache-Control": "no-store, max-age=0"})
@router.get("/accounts", response_class=HTMLResponse)