Repository navigation
v0.30.0
New: wasmcache, a local cache for playground wasm with update detection (#41).
A playground no longer downloads its wasm on every visit. A service worker keeps the files listed in a build manifest, checked against their sha256, and reloads when a newer build is deployed. This release shares the cache code across playgrounds; it does not share one cache between them.
- Hash-checked everywhere. A cached or network copy whose bytes do not match the manifest is never stored or run. If the playground page itself fails the check after a deploy, a fixed recovery page built by the worker removes the worker, deletes only this playground's caches, and reloads.
- No version skew. Worker and loader URLs carry the build's
?v=, and a worker from another build never answers them. - Lazy files.
-lazy <path>keeps a file out of the precache. It is fetched on first use and then cached under the same hash check. - Test kit.
wasmcache/testkitruns a browser end to end. It covers first load, a cached reload, update detection, a tampered network copy, the recovery page, and lazy files: none requested from server start untiluse, cached after.
Hardening follow-ups from the review are filed as #45: a one-shot bound on the recovery page's reload, and a restricted character set for cache names.