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
How should we update workbox? #1754
Comments
First off, apologies that you and your users ran into issues. In general, updating Workbox from minor/patch release to minor/patch release is meant to be backwards compatible, and nothing specific should be necessary other than rebuilding and redeploying. Looking at your service worker, it seems that you're precaching a complete, versioned copy of all your sites resources. (Which is fine!) In the interval between v3.0.0-beta.0 and the current v3.6.3, there were a couple of updates made to the precaching logic that might have had a positive impact: Additionally, I took a peak at your build process, and found the following scripts:
It looks like |
@jeffposnick Ok, great! We will keep up with the latest changes from time to time then :). Hopefully, it will go smoothly next time.
We have configured Netlify to ran the command: The logs are public, you can find the latest here. |
Thanks for passing along that Netlify logging output—it does seem like the service worker generation is being run at the correct time. If your users do encounter any of these issues now that you've updated out of the older |
@oliviertassinari I'm curious about workbox and issues what your users had with caching: so, best solution was to add self.skipWaiting() - right? |
@chyvak1831 TL;DR using precaching without as skip activation logic for a service worker is worse that not using any service work. Never do it. We have changed the approach, the solution is way more scalable now:
|
Library Affected:
workbox-build
Browser & Platform:
all browsers
Issue or Feature Request Description:
This is a generic question around the upgrade strategy for workbox. We were using v3.0.0-beta.0 on Material-UI. Two weeks ago, we decided to upgrade to the latest version (v3.6.3) to keep up with the latest changes. However, the upgrade hasn't gone smoothly. Many people raised issues following the release of the upgrade:
So, I'm wondering. What's the “safe" way to update workbox? Thank you.
The text was updated successfully, but these errors were encountered: