fix(wiki): cache-bust main.js so browsers load the traffic-counter JS immediately

main.js is browser-cached up to 4h; the fresh HTML still pointed at the unversioned /main.js, so returning visitors kept running the pre-counter JS and the footer never populated. Versioned query forces an immediate fetch of the new module.
This commit is contained in:
Haozhe Wu committed 2026-06-05 14:47:39 +08:00
1 parent cb82c6262c
commit ee28390a2c
1 file changed
+1 -1
+1 -1
View File
@@ -36,7 +36,7 @@
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,750&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/styles.css">
<script type="module" src="/main.js"></script>
<script type="module" src="/main.js?v=20260605"></script>
</head>
<body>
<header class="site-header" id="site-header">