From b190c04147b10cb3997b3596e2acfa9b7dadb1dd Mon Sep 17 00:00:00 2001 From: Admin MPCZ Date: Fri, 10 Apr 2026 20:38:44 +0200 Subject: [PATCH] Fix: hosts manquants + no-cache sur resultats audit (evite re-POST) --- app/routers/audit.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/routers/audit.py b/app/routers/audit.py index ee25543..774e840 100644 --- a/app/routers/audit.py +++ b/app/routers/audit.py @@ -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")