Skip to content

Commit

Permalink
fix(projects): avoid retrieving cached HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Sep 8, 2024
1 parent f8b29c4 commit 75df11c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/plugins/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,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();

Expand Down

0 comments on commit 75df11c

Please sign in to comment.