Skip to content

Commit ef6cf93

Browse files
authored
fix(projects): avoid retrieving cached HTML (#605)
1 parent 7fa5590 commit ef6cf93

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/plugins/app.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ export function setupAppVersionNotification() {
5252
}
5353

5454
async function getHtmlBuildTime() {
55-
const baseURL = import.meta.env.VITE_BASE_URL;
56-
57-
const res = await fetch(`${baseURL}index.html`);
55+
const res = await fetch(`/index.html?time=${Date.now()}`);
5856

5957
const html = await res.text();
6058

0 commit comments

Comments
 (0)