-
Notifications
You must be signed in to change notification settings - Fork 823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
waitUntil called on event that is already finished in NetworkFirst strategy #1386
Comments
The underlying code is workbox/packages/workbox-strategies/NetworkFirst.mjs Lines 220 to 229 in 49f3d21
There's some |
Also reproduced on: |
We have been noticing the same issue happening. It's hardly impossible to reproduce but we got it on a handful of machines, what happened (or at least i think) we had some backend issue's and the service workers kicked in during this time. At that moment something is going south and i'm getting this exact same issue. I can confirm that on version 3.0.1 it was stopping the service worker all together and serving empty files. I've updated to version 3.2.0 and at least the service worker is now returning content. All though it seems impossible to recover the service worker after this has happened unless you forcefully unregister the service worker and reinitialize it. My caching strategy is mixed between staleWhileRevalidate, cacheFirst and preCache. I wish i could put a case together were I could 100% replicate it but it's near impossible at this moment. Do you have any pointers for me in how to recover the service worker after something like this happens? Thanks |
Library Affected:
workbox-strategies
Browser & Platform:
webview with User-Agent:Mozilla/5.0 (Linux; Android 6.0.1; SM-A510F Build/MMB29K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/56.0.2924.87 Mobile Safari/537.36
Issue or Feature Request Description:
Reported by @beatrizdemiguelperez on Slack:
The text was updated successfully, but these errors were encountered: