Patch release fixing Service Worker downloads failing in Firefox for small files.
Fixed
- Firefox downloads returned 404 for small files: the Service Worker deleted a transfer as soon as the page finished streaming it, but Firefox could dispatch the download request after that point. The worker now keeps the transfer until it is served, with a reuse guard and the existing 5-minute cleanup.
- Stale Service Worker across deployments: worker update checks could be served from the HTTP cache, keeping an outdated worker active after a deploy. Update checks now bypass the cache (
updateViaCache: 'none').
Tests
- Added a regression test reproducing Firefox's fetch-after-end ordering; it fails against the previous code.
Compatibility
- No format changes; existing
.vaultfiles remain fully supported. Users receive the fixed worker automatically on their next page load.
Full Changelog: v.1.6.0...v.1.6.1