Skip to content

Commit

Permalink
no-store ?
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtyMaury committed Aug 31, 2024
1 parent 441807b commit 3f63f67
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy static content to Pages

on:
push:
branches: ['main']
branches: [ 'main' ]

workflow_dispatch:

Expand All @@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3f63f67

Please sign in to comment.