diff options
| author | Xe Iaso <me@xeiaso.net> | 2023-04-02 12:50:04 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2023-04-02 12:50:11 -0400 |
| commit | d0c06374d761fe046b3ec921836244fe5f96b83c (patch) | |
| tree | 04bbf72d280a6cfd62b808c80e8b6ee3f7d3a7a4 /lib | |
| parent | 9e2255a4eac6c0cdfdec12ac9157d6e9d763f4cf (diff) | |
| download | xesite-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.rs | 2 |
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) => {{ |
