Skip to content

fix(desktop): never cache responses whose CSP names the endpoints - #215

Merged
mellowcroc merged 1 commit into
mainfrom
fix/desktop-stale-csp
Nov 5, 2026
Merged

mellowcroc merged 1 commit into
mainfrom
fix/desktop-stale-csp

Conversation

@mellowcroc

Copy link
Copy Markdown
Collaborator

After changing endpoints, the desktop app's o1js worker could still be blocked from the new node: Chromium had cached the worker script (Next marks static chunks immutable) together with the Content-Security-Policy for the old endpoints. Proposals then failed with "Could not read the vault's on-chain state".

The desktop server now sends Cache-Control: no-store on everything it serves, and each launch clears the session's HTTP cache left by earlier releases. IndexedDB (compile cache, store checkpoints) is untouched.

🤖 Generated with Claude Code

Next serves static chunks as immutable, so Chromium kept the worker
script, with the Content-Security-Policy for the endpoints configured
when it was fetched. After switching endpoints the o1js worker could
not reach the new node and proposals failed to read the vault state.
The desktop server now sends no-store, and each launch clears the
HTTP cache left by earlier releases.
@mellowcroc
mellowcroc merged commit f198874 into main Nov 5, 2026
10 checks 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