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:
parent
bb6643cf70
commit
3ea787ed82
|
|
@ -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">`,
|
||||
}));
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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>`,
|
||||
}));
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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">`,
|
||||
}));
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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">`,
|
||||
}));
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue