| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| workbox-v4.0.0-beta.0.tar.gz | 2018-11-06 | 102.0 kB | |
| workbox-v4.0.0-beta.0.zip | 2018-11-06 | 155.5 kB | |
| README.md | 2018-11-06 | 2.2 kB | |
| Workbox v4.0.0-beta.0 source code.tar.gz | 2018-11-06 | 571.7 kB | |
| Workbox v4.0.0-beta.0 source code.zip | 2018-11-06 | 903.7 kB | |
| Totals: 5 Items | 1.7 MB | 0 | |
The first beta release of Workbox v4 includes the following developer-visible changes from the previous alpha release.
🎉 What's New?
-
[BREAKING CHANGE] The
workbox.backgroundSync.Queueclass has been updated to give developers much control over how failed requests are replayed when asyncevent occurs. Previously, developers could only add requests to the queue (there was no option to remove them). Now they have low-level methods to push, pop, shift, and unshift requests. For the full list of changes and use cases, see [#1710]. -
[BREAKING CHANGE]
workbox-precachingwill default to confirming that allResponses cached during installation have a non-error (less than400) HTTP status code. If anyResponses have an error code, theinstallphase will now fail. (The next time the service worker starts up, installation will be re-attempted.) Developers who need to precacheResponses that have a 4xx or 5xx status code (e.g., precaching a/not-found.htmlURL that is served with a status code of404) can opt-in to allowing that by passing in a customcacheWillUpdateplugin to theworkbox.precaching.PrecacheController'sinstallmethod. -
[BREAKING CHANGE]
workbox-range-requestswill now check to see if theResponseobject it's processing already has an HTTP status code of 206 (indicating that it contains partial content). If so, it will just pass it through unmodified. (#1721) -
workbox.routing.Routernow includes aroutesgetter method, giving developers access to the underlyingMapof routes that have been registered for a given router. (#1714) -
Improved logging when using
workbox.routing.NavigationRoute. When a URL matches the blacklist, there's now a message logged with higher priority when using the development builds. (#1741) -
When using
workbox-precaching, the temporary cache is now cleaned up following service worker activation. (#1736)