mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-03 21:42:41 +03:00
Fixes the stale-shell PWA lockout after a deploy: navigationFallback now returns Response.error() instead of replaying a cached shell whose /_next/static chunk references are dead, and the worker is registered as /sw.js?v=<build-id> so each deploy is actually observed instead of never updating until a navigation to the new build first succeeds. Recreated onto release/v3.8.51 (original base was main, which had diverged too far for a clean retarget) — both commits cherry-picked and force-pushed to the contributor's branch (author preserved), then the PR's base edited in place. 4/4 focused tests passing (2 via vitest for the jsdom-environment PwaRegister suite, 2 via node:test for the service-worker fallback suite). Thanks for the fix!