From ef6cf93d96addfdf524456b672875084c4055963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=92=E8=8F=9C=E7=99=BD=E7=8E=89=E6=B1=A4?= <79054161+Azir-11@users.noreply.github.com> Date: Wed, 21 Aug 2024 18:25:33 +0800 Subject: [PATCH] fix(projects): avoid retrieving cached HTML (#605) --- src/plugins/app.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugins/app.ts b/src/plugins/app.ts index c54601ca7..6dc88fed7 100644 --- a/src/plugins/app.ts +++ b/src/plugins/app.ts @@ -52,9 +52,7 @@ 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();