From ab51591f54690889044a9c60cd7004dfbf9fd78d Mon Sep 17 00:00:00 2001 From: gemini-ops Date: Tue, 17 Nov 2026 22:09:47 +0100 Subject: [PATCH] fix(ui): cache statiques no-cache + version, carte repartition min-height Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01XGaEeS4wbkMHuVXmz5fqkh --- app/main.py | 2 ++ app/static/app.css | 2 +- app/static/index.html | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/main.py b/app/main.py index 0939acb..224c5d1 100644 --- a/app/main.py +++ b/app/main.py @@ -95,6 +95,8 @@ async def en_tetes_securite(request: Request, call_next): reponse.headers["Referrer-Policy"] = "no-referrer" if request.url.path == "/" or request.url.path.startswith("/api/"): reponse.headers["Cache-Control"] = "no-store" + elif request.url.path.startswith("/static/") or request.url.path in ("/favicon.ico", "/apple-touch-icon.png"): + reponse.headers["Cache-Control"] = "no-cache" return reponse @app.get("/", include_in_schema=False) diff --git a/app/static/app.css b/app/static/app.css index f755c44..5e23751 100644 --- a/app/static/app.css +++ b/app/static/app.css @@ -50,7 +50,7 @@ h1, h2, h3, p { margin: 0; } .btn-danger-ligne:hover { background: var(--ny-erreur-fond); } .carte { background: var(--ny-carte); border: 1px solid var(--ny-trait); border-radius: var(--ny-r-l); overflow: hidden; } -.repartition { padding: var(--ny-e4) var(--ny-e5); display: flex; flex-direction: column; gap: var(--ny-e3); } +.repartition { flex: none; min-height: max-content; padding: var(--ny-e4) var(--ny-e5); display: flex; flex-direction: column; gap: var(--ny-e3); } .repartition h2 { font: 600 15px/20px var(--ny-police); color: var(--ny-encre-2); } .puces { display: flex; flex-wrap: wrap; gap: var(--ny-e2); } .puce { min-height: var(--ny-cible); padding: 0 var(--ny-e3) 0 10px; display: inline-flex; align-items: center; gap: 7px; border-radius: var(--ny-r-pastille); border: 1px solid var(--ny-trait-controle); background: var(--ny-carte); font: 500 15px/20px var(--ny-police); white-space: nowrap; } diff --git a/app/static/index.html b/app/static/index.html index 0f170f2..119a48f 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -10,7 +10,7 @@ - +
@@ -20,6 +20,6 @@
- +