fix(rmaps): add cache-busting version to JS/CSS script tags

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-03-20 11:56:35 -07:00
parent 8bd8348529
commit 88c6c70f9e
1 changed files with 4 additions and 4 deletions

View File

@ -244,8 +244,8 @@ routes.get("/", (c) => {
spaceSlug: space,
modules: getModuleInfoList(),
body: `<folk-map-viewer space="${space}"></folk-map-viewer>`,
scripts: `<script type="module" src="/modules/rmaps/folk-map-viewer.js"></script>`,
styles: `<link rel="stylesheet" href="/modules/rmaps/maps.css">`,
scripts: `<script type="module" src="/modules/rmaps/folk-map-viewer.js?v=2"></script>`,
styles: `<link rel="stylesheet" href="/modules/rmaps/maps.css?v=2">`,
}));
});
@ -259,9 +259,9 @@ routes.get("/:room", (c) => {
moduleId: "rmaps",
spaceSlug: space,
modules: getModuleInfoList(),
styles: `<link rel="stylesheet" href="/modules/rmaps/maps.css">`,
styles: `<link rel="stylesheet" href="/modules/rmaps/maps.css?v=2">`,
body: `<folk-map-viewer space="${space}" room="${room}"></folk-map-viewer>`,
scripts: `<script type="module" src="/modules/rmaps/folk-map-viewer.js"></script>`,
scripts: `<script type="module" src="/modules/rmaps/folk-map-viewer.js?v=2"></script>`,
}));
});