From 38e94c92d7dc3245ba859b64e69502bfcd399822 Mon Sep 17 00:00:00 2001 From: Chubby Granny Chaser Date: Mon, 2 Dec 2024 18:44:03 +0000 Subject: [PATCH] fix: cache-busting external resources --- src/renderer/src/app.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/app.tsx b/src/renderer/src/app.tsx index 2406baab..bb2f096a 100644 --- a/src/renderer/src/app.tsx +++ b/src/renderer/src/app.tsx @@ -138,7 +138,7 @@ export function App() { }) .finally(() => { const $script = document.createElement("script"); - $script.src = import.meta.env.RENDERER_VITE_EXTERNAL_RESOURCES_URL; + $script.src = `${import.meta.env.RENDERER_VITE_EXTERNAL_RESOURCES_URL}?t=${Date.now()}`; document.head.appendChild($script); }); }, [fetchUserDetails, syncFriendRequests, updateUserDetails, dispatch]);