diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6270e2e..47aec55 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,7 +2,7 @@ name: Deploy static content to Pages on: push: - branches: ['main'] + branches: [ 'main' ] workflow_dispatch: @@ -25,11 +25,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 cache: 'npm' - name: Install dependencies run: npm install diff --git a/src/main.tsx b/src/main.tsx index 0476d83..fcadeb4 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -29,7 +29,9 @@ function App() { React.useEffect(() => { const intervalReload = setInterval(() => { - void fetch('/buildTime.txt').then(async (response) => { + void fetch('/buildTime.txt', { + cache: "no-store" + }).then(async (response) => { const dateText = await response.text(); if (buildTime == null) { buildTime = dateText