Skip to content

Revalidate examples on every load instead of trusting the ten-minute page cache - #5

Merged
O6lvl4 merged 1 commit into
mainfrom
examples-fetch-no-cache
Sep 23, 2026
Merged

O6lvl4 merged 1 commit into
mainfrom
examples-fetch-no-cache

Conversation

@O6lvl4

@O6lvl4 O6lvl4 commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

GitHub Pages serves examples/* with cache-control: max-age=600, and app.js fetched them with the default cache mode, so a visitor who opened an example within ten minutes before a deploy kept the old copy without any request being made — seen today right after #4 landed (the old truchet, with its E041, was still loaded from the browser cache while the server already returned the fixed file).

fetch(..., { cache: 'no-cache' }) on the manifest and the example files revalidates against the ETag on every load; when nothing changed the server answers 304 and no body is transferred.

…t hidden by the ten-minute page cache

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@O6lvl4
O6lvl4 merged commit 958ddea into main Sep 23, 2026
1 check passed
@O6lvl4
O6lvl4 deleted the examples-fetch-no-cache branch September 23, 2026 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant