Skip to content

Commit

Permalink
fix(projects): avoid retrieving cached HTML (#605)
Browse files Browse the repository at this point in the history
  • Loading branch information
Azir-11 authored Aug 21, 2024
1 parent 7fa5590 commit ef6cf93
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 @@ -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();

Expand Down

0 comments on commit ef6cf93

Please sign in to comment.