fix(ui): cache statiques no-cache + version, carte repartition min-height
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XGaEeS4wbkMHuVXmz5fqkh
This commit is contained in:
1 parent
4c751eb766
commit
ab51591f54
3 files changed
+5
-3
No files matched your search
@@ -95,6 +95,8 @@ async def en_tetes_securite(request: Request, call_next):
|
|||||||
reponse.headers["Referrer-Policy"] = "no-referrer"
|
reponse.headers["Referrer-Policy"] = "no-referrer"
|
||||||
if request.url.path == "/" or request.url.path.startswith("/api/"):
|
if request.url.path == "/" or request.url.path.startswith("/api/"):
|
||||||
reponse.headers["Cache-Control"] = "no-store"
|
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
|
return reponse
|
||||||
|
|
||||||
@app.get("/", include_in_schema=False)
|
@app.get("/", include_in_schema=False)
|
||||||
|
|||||||
+1
-1
@@ -50,7 +50,7 @@ h1, h2, h3, p { margin: 0; }
|
|||||||
.btn-danger-ligne:hover { background: var(--ny-erreur-fond); }
|
.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; }
|
.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); }
|
.repartition h2 { font: 600 15px/20px var(--ny-police); color: var(--ny-encre-2); }
|
||||||
.puces { display: flex; flex-wrap: wrap; gap: var(--ny-e2); }
|
.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; }
|
.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; }
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
||||||
<link rel="stylesheet" href="/static/fonts.css">
|
<link rel="stylesheet" href="/static/fonts.css">
|
||||||
<link rel="stylesheet" href="/static/nyora.css">
|
<link rel="stylesheet" href="/static/nyora.css">
|
||||||
<link rel="stylesheet" href="/static/app.css">
|
<link rel="stylesheet" href="/static/app.css?v=20261117b">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app" class="coque">
|
<div id="app" class="coque">
|
||||||
@@ -20,6 +20,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="calque"></div>
|
<div id="calque"></div>
|
||||||
<div id="annonce" class="sr" role="status" aria-live="polite"></div>
|
<div id="annonce" class="sr" role="status" aria-live="polite"></div>
|
||||||
<script src="/static/app.js"></script>
|
<script src="/static/app.js?v=20261117b"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in new issue
Block a user