Versionne les URL de app.css et app.js
Un hash du contenu est ajouté en ?v= : après un déploiement, le navigateur recharge le CSS/JS au lieu de garder l'ancien en cache (max-age=3600). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b4702fdf71
commit
aa4f5aeb0a
2 files changed
+19
-10
No files matched your search
+2
-2
@@ -5,11 +5,11 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{% block title %}Tempus{% endblock %} · Tempus</title>
|
||||
<link rel="stylesheet" href="/static/flatpickr/flatpickr.min.css">
|
||||
<link rel="stylesheet" href="/static/app.css">
|
||||
<link rel="stylesheet" href="/static/app.css?v={{ crate::routes::asset_version() }}">
|
||||
<script src="/static/htmx.min.js" defer></script>
|
||||
<script src="/static/flatpickr/flatpickr.min.js" defer></script>
|
||||
<script src="/static/flatpickr/fr.min.js" defer></script>
|
||||
<script src="/static/app.js" defer></script>
|
||||
<script src="/static/app.js?v={{ crate::routes::asset_version() }}" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<header class="topbar">
|
||||
|
||||
Reference in new issue
Block a user