fix: var _wsInitData globale + anti-cache headers HTML
FlowDeck CI / test (push) Failing after 4s
FlowDeck CI / docker (push) Has been skipped

- x-data="_wsInitData" référence la variable globale JS (pas window.)
- var _wsInitData = IIFE — propriété window automatique pour compatibilité window._wsData
- Headers Cache-Control: no-cache, no-store, must-revalidate sur la page HTML
- 73 tests OK
This commit is contained in:
2026-07-12 20:24:49 -04:00
parent 996e50bb06
commit 9d300d1984
2 changed files with 10 additions and 3 deletions
+8 -1
View File
@@ -542,7 +542,14 @@ async def local_workspace_page(request: Request, folder: int = None):
"breadcrumb": breadcrumb,
}
template = env.get_template("local_workspace.html")
return template.render(**ctx)
return HTMLResponse(
content=template.render(**ctx),
headers={
"Cache-Control": "no-cache, no-store, must-revalidate",
"Pragma": "no-cache",
"Expires": "0",
}
)
@router.get("/api/local-workspace/tree")