Skip to content

chore: no-cache headers for static assets - #26

Merged
valeboth merged 1 commit into
mainfrom
chore/asset-cache-headers
Aug 26, 2026
Merged

chore: no-cache headers for static assets#26
valeboth merged 1 commit into
mainfrom
chore/asset-cache-headers

Conversation

@valeboth

Copy link
Copy Markdown
Owner

Adds public/_headers with Cache-Control: no-cache for all assets, so a new deploy reaches phones immediately (no stale app.js/style.css cached). Files are tiny → the revalidation 304s are negligible.

Note: relies on Workers Static Assets honoring _headers. If a served asset doesn't show the header after deploy, tell me and I'll switch to setting it via the Worker.

Add public/_headers so app.js/style.css/index.html always revalidate — a new deploy
reaches devices immediately without a hard refresh. Files are tiny, so 304s are cheap.
@valeboth
valeboth merged commit f26064e into main Aug 26, 2026
1 check passed
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