Add per-file asset hashes and a rollback-compatible server manifest

This commit is contained in:
Jonathan Sykes
2026-10-07 22:57:41 +08:00
parent ad85cb6eb4
commit 6cb00d5073
8 changed files with 509 additions and 82 deletions

View File

@@ -8,7 +8,8 @@
3. Add importable `server/asset-manifest.js`; integrate boot-time recursive
hashing, stamped index, manifest endpoint, per-file headers and rollback into
`server/server.js`. Register module tests in `server/package.json`.
4. Stamp safe HTML resource URLs (CSS/JS, font preloads, webmanifest). Retain
4. Stamp HTML CSS/JS resource URLs. Keep font preloads consistent with
fonts.css and retain the existing webmanifest URL. Retain
plain JS-created worker/import URLs: introducing a new helper would require
modifying the unchanged worker's shell or frontend callers. Inventory these
exceptions explicitly in the report. Hash every recursively served file,