aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2023-04-02 12:50:04 -0400
committerXe Iaso <me@xeiaso.net>2023-04-02 12:50:11 -0400
commitd0c06374d761fe046b3ec921836244fe5f96b83c (patch)
tree04bbf72d280a6cfd62b808c80e8b6ee3f7d3a7a4 /lib
parent9e2255a4eac6c0cdfdec12ac9157d6e9d763f4cf (diff)
downloadxesite-d0c06374d761fe046b3ec921836244fe5f96b83c.tar.xz
xesite-d0c06374d761fe046b3ec921836244fe5f96b83c.zip
add a cachebuster for xeact components
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/xesite_templates/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xesite_templates/src/lib.rs b/lib/xesite_templates/src/lib.rs
index b4483bc..6c631ab 100644
--- a/lib/xesite_templates/src/lib.rs
+++ b/lib/xesite_templates/src/lib.rs
@@ -189,7 +189,7 @@ pub fn xeact_component(name: &str, data: serde_json::Value) -> Markup {
let script = PreEscaped(format!(
r#"
<script type="module">
-import Component from "/static/xeact/{name}.js";
+import Component from "/static/xeact/{name}.js?cacheBuster={uuid}";
const g = (name) => document.getElementById(name);
const x = (elem) => {{