1.3 KiB
1.3 KiB
P9.5 H5 Cache Acceleration Contract
Revision:
p9.5-h5-cache-r1
Required Behavior
For immutable files below a Gallery runtime-html item:
- HTML may remain short-lived so entry changes are discovered promptly.
- JavaScript, WebAssembly, PCK and worklet payloads use a one-year private, immutable browser cache.
- File responses expose a stable strong ETag.
- Matching
If-None-Matchand validIf-Modified-Sincerequests return304without a response body. - The current signed item redirect, artifact-scoped cookie, MIME types, content lengths and CSP remain valid.
Acceptance Checks
- The existing signed P9.5 URL still redirects and returns HTTP 200.
index.wasm,index.pckandindex.jsreturnCache-Control: private, max-age=31536000, immutableand an ETag.- Conditional requests for those exact resources return HTTP 304.
- Unauthorized artifact access remains rejected.
- A fresh service process passes a local deterministic response test before the persistent Gallery service is restarted.
- The service restart retains the same item and returns the new headers from the public HTTPS endpoint.
First-load compression is an optional second step. It must report measured source and compressed bytes and may not be enabled without an executable Godot browser smoke check.