Fix: hosts manquants + no-cache sur resultats audit (evite re-POST)

This commit is contained in:
Pierre & Lumière 2026-04-10 20:38:44 +02:00
parent 1be5e867dc
commit b190c04147

View File

@ -218,7 +218,10 @@ async def audit_realtime(request: Request, db=Depends(get_db),
"ok": sum(1 for r in results if r.get("status") == "OK"),
"failed": sum(1 for r in results if r.get("status") != "OK"),
})
return templates.TemplateResponse("audit_realtime_results.html", ctx)
response = templates.TemplateResponse("audit_realtime_results.html", ctx)
response.headers["Cache-Control"] = "no-store, no-cache, must-revalidate, max-age=0"
response.headers["Pragma"] = "no-cache"
return response
@router.post("/audit/realtime/save")