From a38d2ca3f6ed3837b168fa463b0742856b95e734 Mon Sep 17 00:00:00 2001 From: locdp Date: Sat, 24 Aug 2024 20:46:32 +0700 Subject: [PATCH] fix(core): avoid retrieving cached HTML #5 --- src/plugins/app.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/plugins/app.ts b/src/plugins/app.ts index a525cfd..4f68f33 100644 --- a/src/plugins/app.ts +++ b/src/plugins/app.ts @@ -53,13 +53,11 @@ export function setupAppVersionNotification() { } async function getHtmlBuildTime() { - const baseURL = import.meta.env.VITE_BASE_URL - - const res = await fetch(`${baseURL}index.html`) + const res = await fetch(`/index.html?time=${Date.now()}`) const html = await res.text() - const match = html.match(//) + const match = html.match(//) const buildTime = match?.[1] || ''