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:
parent
8bd8348529
commit
88c6c70f9e
|
|
@ -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>`,
|
||||
}));
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue