[P3] Hashed assets are not cached long-term as documented #39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Priority: P3
Type: deployment
Source: project review requested 2026-10-26 (second pass)
Location:
public/_headers; docs/DEPLOYMENT.md:50Problem and evidence
DEPLOYMENT.md says to cache hashed assets long-term, but
_headershas no/assets/*rule; the liveassets/index-B9WCiLOc.jsreturnscache-control: public, max-age=14400, must-revalidate. Impact is small because the service worker serves these offline.Suggested correction
Add
/assets/*withCache-Control: public, max-age=31536000, immutableand check it in the hosted asset check.Acceptance criteria
Release checks pass; after deployment the hosted check confirms the immutable rule on every hashed asset.
Scope: maintenance of the educational simulator. Preserve historical R1 acceptance and operational-validation limits.
Fixed on
maintenance/review-2026-10-27in875d42e— PR #40./assets/*immutable rule, release check (fails without the rule) and hosted asset check. Hosted confirmation follows the deploy on merge.Branch verification:
pnpm verify145 tests and release budgets; Chromium/Firefox/WebKit review, replay, compatibility and offline lifecycle checks; CI verify runs #111/#112 pass. Record:docs/MAINTENANCE-2026-10-27.md. Closes on merge of PR #40.Hosted confirmation after merging PR #40 (main
37ca650, deploy run #113 succeeded):check-hosted-assetsagainst https://dive.pt3r.dev/: HTML, CSS, deferred chunks and calculation worker are byte-identical to a local build of37ca650; MIME, security, index revalidation and hashed-asset caching headers pass./assets/*servesCache-Control: public, max-age=31536000, immutable.check-followup-browser(#28, #29, #30, #32, #33, #34, #38) andcheck-maintenance-browserpass.