fix: add cache-busting version params to module script tags

Browsers were serving stale JS from cache. Added ?v=3 to all four
updated module component scripts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-03-01 00:52:18 +00:00
parent bb6643cf70
commit 3ea787ed82
4 changed files with 5 additions and 5 deletions

View File

@ -383,7 +383,7 @@ routes.get("/", (c) => {
modules: getModuleInfoList(),
theme: "dark",
body: `<folk-calendar-view space="${space}"></folk-calendar-view>`,
scripts: `<script type="module" src="/modules/cal/folk-calendar-view.js?v=2"></script>`,
scripts: `<script type="module" src="/modules/cal/folk-calendar-view.js?v=3"></script>`,
styles: `<link rel="stylesheet" href="/modules/cal/cal.css?v=2">`,
}));
});

View File

@ -141,7 +141,7 @@ routes.get("/", (c) => {
modules: getModuleInfoList(),
theme: "dark",
body: `<folk-map-viewer space="${space}"></folk-map-viewer>`,
scripts: `<script type="module" src="/modules/maps/folk-map-viewer.js"></script>`,
scripts: `<script type="module" src="/modules/maps/folk-map-viewer.js?v=3"></script>`,
styles: `<link rel="stylesheet" href="/modules/maps/maps.css">`,
}));
});
@ -158,7 +158,7 @@ routes.get("/:room", (c) => {
theme: "dark",
styles: `<link rel="stylesheet" href="/modules/maps/maps.css">`,
body: `<folk-map-viewer space="${space}" room="${room}"></folk-map-viewer>`,
scripts: `<script type="module" src="/modules/maps/folk-map-viewer.js"></script>`,
scripts: `<script type="module" src="/modules/maps/folk-map-viewer.js?v=3"></script>`,
}));
});

View File

@ -239,7 +239,7 @@ routes.get("/", (c) => {
theme: "dark",
body: `<div class="rapp-nav" style="padding:0 1rem;margin-top:8px"><span class="rapp-nav__title"></span><a href="?view=app" class="rapp-nav__btn--app-toggle">Open Full App</a></div>
<folk-graph-viewer space="${space}"></folk-graph-viewer>`,
scripts: `<script type="module" src="/modules/network/folk-graph-viewer.js"></script>`,
scripts: `<script type="module" src="/modules/network/folk-graph-viewer.js?v=3"></script>`,
styles: `<link rel="stylesheet" href="/modules/network/network.css">`,
}));
});

View File

@ -225,7 +225,7 @@ routes.get("/", (c) => {
modules: getModuleInfoList(),
theme: "dark",
body: `<folk-work-board space="${space}"></folk-work-board>`,
scripts: `<script type="module" src="/modules/work/folk-work-board.js"></script>`,
scripts: `<script type="module" src="/modules/work/folk-work-board.js?v=3"></script>`,
styles: `<link rel="stylesheet" href="/modules/work/work.css">`,
}));
});