Skip to content

Link the shell with the engine version, past CDN caches (0.6.2) - #27

Merged
pierg merged 1 commit into
mainfrom
shell-version
Nov 15, 2026
Merged

pierg merged 1 commit into
mainfrom
shell-version

Conversation

@pierg

@pierg pierg commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Why

After the 0.6.1 upgrade, notes.pierg.dev kept serving the old shell: Cloudflare caches .js and .css by default, and the server's log shows readers' requests for the page but none for /shell/folio.js. The origin was serving the new file with Cache-Control: no-cache.

What

render.rewrite links the shell as /shell/folio.js?v=<version> and /shell/folio.css?v=<version> (under --base too), so each folio version is a new address for any cache. The server and the exported site ignore the query. Spec: model §14. Version 0.6.2.

Gate

python -m pytest -q: 377 passed, 2 skipped. cd docs && folio check: 0 errors.

@pierg
pierg merged commit 340359c into main Nov 15, 2026
4 of 5 checks passed
@pierg
pierg deleted the shell-version branch November 15, 2026 19:28
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