diff options
| author | Adam Soltys <[email protected]> | 2026-10-07 08:34:13 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-07 08:34:13 -0700 |
| commit | 6d288aeb194d2765282cf9fd72bd1f5fdd747a71 (patch) | |
| tree | 9ea340ae990af7e675d0871a80d4d3cdd9b0ac4a /tools/sw-reload-test.js | |
| parent | a6bae186071e7e07136a37f63864d0bf578edd16 (diff) | |
| parent | d04f10db5e3c007db2cd8a5f9e12eff55bc1c653 (diff) | |
| download | coinosv3-6d288aeb194d2765282cf9fd72bd1f5fdd747a71.tar.gz coinosv3-6d288aeb194d2765282cf9fd72bd1f5fdd747a71.zip | |
Merge branch 'worktree-agent-ab051145d709af327'
Diffstat (limited to 'tools/sw-reload-test.js')
| -rw-r--r-- | tools/sw-reload-test.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/sw-reload-test.js b/tools/sw-reload-test.js index a869d9d..7a41c7f 100644 --- a/tools/sw-reload-test.js +++ b/tools/sw-reload-test.js @@ -32,7 +32,9 @@ const server = Bun.serve({ if (p === '/' || p === '/index.html') return new Response(current.html, { headers: { 'content-type': 'text/html', 'cache-control': 'no-store' } }); // The worker precaches the shell during install and addAll rejects on any // miss — a 404 here means it never activates and the test proves nothing. - const f = Bun.file('dist' + p); + // The split build names its entry after the token (app-<token>.js), so + // a restamped build asks for app-deadbeef….js: the same file. + const f = Bun.file('dist' + p.replace(/deadbeef0000\d/, token)); return new Response(f, { headers: { 'cache-control': 'no-store' } }); }, }); |
