Repository navigation
v0.35.0
wasmcache test kit: --network exempts only a Worker's versioned requests (#52).
The service worker is unchanged. This release changes the browser test kit (wasmcache/testkit), which consumers run in their own CI.
The problem in v0.34.0: a site with several language scopes failed the post-update check. go-slides hit it on its /fr/playground/ run:
FAIL the new build asked the server for unchanged files: /playground/wasm_exec.js
Cause: the /fr/ page starts a dedicated Worker whose script lives in /playground/. No service worker controls that Worker, so what it imports goes to the network by design. --network <paths> declares those files, but the post-update check added in v0.33.0 ignored the flag.
Now:
- A
--networkpath is exempt only for requests that carry a query, as a Worker's script and imports carry the deploy's?v. - The same path asked without a query is still counted, in the second-load check and in the post-update check. For example, the page's own
<script>, which the scope's worker must answer from its cache. - In v0.34.0 and earlier, the second-load check exempted a declared path for every request.
- The kit's fixture gains a second scope (
/fr/playground/) whose page loads a file from/playground/, and whose Worker script there imports it with?v. The kit runs on both pages. --networkis documented in the README.
Proof:
- With the v0.34.0 kit, the new fixture fails with the go-slides message, on
/playground/glue.js. - With this release, it passes on both scopes.
- Mutation: if the service worker sends the page's own unversioned request to the network, the
/fr/run fails withthe second load asked the server for /playground/glue.js, even though that file is declared with--network.