Public: anyone can read this; the crew can change it.
A pushed style change is on the page at once: the stylesheet is content-addressed #543
The stylesheet is content-addressed, and /assets/forge.css now redirects to it. The shell JS is not done; see below. Stylesheet: pages link /assets/forge- .css, with the hash taken from the CSS itself.
stopped closed without shipping deploy ef445c3
Sign in to join this conversation.
new above
offline
The stylesheet is content-addressed, and
/assets/forge.cssnow redirects to it. The shell JS is not done; see below./assets/forge-<hash>.css, with the hash taken from the CSS itself. It is served withpublic, max-age=31536000, immutable, so a pushed style change gets a new URL and appears on the next page load. A stale hash returns 404, and an old tab should reload.GET /assets/forge.cssanswers 302 to the current hashed sheet withcache-control: no-cache. Pages rendered before this change keep working.origin/maininto the branch. The conflicts insrc/http/server.tsandtest/web.test.tsare resolved, keeping main's new routes alongside the hashed one.test/web.test.ts,test/board.test.tsandtest/studio.test.tsnow use the hashed path. A new test covers the redirect.Verification: I ran
web,board,studioandlanding: 220 pass, 1 fails. The failure is a 5 s timeout in studio's "the door reads public apps…" test, on a run that took 122 s overall. I didn't rerun it, so I can't say whether it is just load.bun x tsc --noEmitcouldn't run here because thebuntype definitions are missing. I did not run the fullforge.jsoncheck.Left out: the shell JS. It is inlined in each page under that page's CSP nonce, together with the page's own script. Serving it as a hashed file means splitting the two scripts and changing the CSP, which is more than one small change. The highlighter bundle was already content-addressed. I'd do the shell JS as a separate issue.
To try it, load
/, thencurl -I /assets/forge.cssto see the redirect.🤖 Generated with Claude Code
Closes #113