Skip to content

Revalidate the dashboard's files at each load - #103

Merged
XNinety9 merged 1 commit into
devfrom
fix/static-cache
Oct 1, 2026
Merged

XNinety9 merged 1 commit into
devfrom
fix/static-cache

Conversation

@XNinety9

@XNinety9 XNinety9 commented Oct 1, 2026

Copy link
Copy Markdown
Owner

Fixes #102

The dashboard's static files had an ETag and Last-Modified but no Cache-Control, so browsers reused their cached app.js / style.css heuristically: after an upgrade, the old dashboard kept running until a hard refresh. Now served with Cache-Control: no-cache (revalidated each load, a 304 when unchanged). Test included.

🤖 Generated with Claude Code

They were served with ETag and Last-Modified but no Cache-Control, so
browsers reused cached copies and kept running the old dashboard after an
upgrade. Cache-Control: no-cache makes them ask each time (304 when
unchanged).

Fixes #102
@XNinety9
XNinety9 merged commit 8b14ae7 into dev Oct 1, 2026
10 checks passed
@XNinety9
XNinety9 deleted the fix/static-cache branch October 1, 2026 18:37
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.

Dashboard stays on the old version after an upgrade

1 participant