Add content hash to stylesheet URL; start pull-releases records
Branch feature/css-cache-busting · version 0.2.1
What changed
- Hashed stylesheet URL: pages link to
/static/style.css?v=<hash>, where<hash>is the first 10 hex digits of the stylesheet's SHA-256. A changed stylesheet gets a new URL, so browsers fetch it on the next page load with no hard refresh needed. - Caching: requests carrying the current hash are cached for a year (
immutable). Plain or outdated URLs keep the 1-hour cache. - Pull-release records: new
pull-releases/folder with one subfolder per PR, each holding aREADME.md(title and changes) and desktop and mobile screenshots. Records for the two earlier PRs are included, with screenshots taken from builds of their final commits. - Version: 0.2.1.
Notes
- There is no visible change in this PR; the screenshots match 002.
pull-releases/is not part of the app: it isn't built into the binary or deployed.
Testing
- All tests pass with the race detector (
go test -race ./...). - New test: the link's hash matches the file's SHA-256, plus Cache-Control for the hashed, plain and wrong-hash URLs.
- Built and ran locally; the hash matched
sha256sum static/style.cssand the cache headers were correct.
Screenshots
From the branch's build (a5ee315) running locally.
| Desktop | Mobile |
|---|---|
![]() |
![]() |
🤖 Generated with Claude Code

