PWA update: ordinary fetches during SKIP_WAITING can still delay activation past the fallback
Maintainers usually reply within 1 day
@mrgoonie is already working on this.
Since Dec 3, 2026.
Assessment
This issue has not been assessed yet.
Description
Follow-up to #239 and #247.
#247 removes the app's own /sw.js fetch from the update flow, which was the one fetch correlated with an update. The underlying trigger remains: any fetch from a controlled page that reaches the old (active) service worker within about 20 ms of SKIP_WAITING restarts it, and in CI traces the waiting worker then stayed installed past the page's 10 s fallback. The fallback unregisters and reloads, so the person still gets the new version, but through a slower path that drops the registration.
Open tabs still send ordinary traffic through the old worker during an update:
- BFF calls such as
/bff/session, which appears in both failing traces; - route chunks and other assets.
These are not tied to the update click, so they should be rarer than the old /sw.js fetch. How rare is not measured. The 0-in-100 matrix in #247 cannot show it either way: at 1 failure in 60, 0 in 100 happens about 19% of the time.
To do:
- Measure the residual rate. Run the update-flow e2e repeatedly with a forced non-
/sw.jsfetch (for example a BFF read) just afterSKIP_WAITING, against the #247 code. - If it reproduces, decide on a fix. Options include:
- the page holding its own requests for a short window around Reload now;
- the new worker claiming on a message instead of waiting for the old one to go idle;
- a longer or smarter fallback than unregister and reload.
- Find out why, in both failing traces, the other tab runs
runsWaitingVersiona third time right at the click. That would explain why the old fetch was the natural trigger.
#239 stays open until this is resolved.
- Dominant language
- No language data
- Stars
- 1
- Forks
- 2
- Avg merge
- 1h 51m
- Merged PRs (30d)
- 103
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nextlevelbuilder/dewee-desktop-app
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
nextlevelbuilder/dewee-desktop-app#277 · 1 comment ·
Maintainers usually reply within 1 day
-
bug in progress
Difficulty 3/5 1-2 days Newbie friendliness 72/100
nextlevelbuilder/dewee-desktop-app#271 · 1 comment ·
Maintainers usually reply within 1 day
-
PWA update: navigations and precached files can still hold activation after SKIP_WAITINGPossibly taken @mrgoonie claimed this today. Open
nextlevelbuilder/dewee-desktop-app#270 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 39/100
nextlevelbuilder/dewee-desktop-app#256 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 28/100
nextlevelbuilder/dewee-desktop-app#255 ·
Maintainers usually reply within 1 day