4.1.0
What's New?
The 4.1.0
release brings with it a number of fixes to make the command-line sw-precache
interface compatible with a wider array of configuration options, along with additional control over the generated service worker file's lifecycle, and clarifications and enhancements to the documentation.
It also fixes a bug that prevented the service worker from falling back to a network response when a cached entry is manually deleted from the cache.
New skipWaiting
and clientsClaim
options
Developers can now opt-out of using skipWaiting()
and clients.claim()
, in the generated service worker file, via the new skipWaiting
and clientsClaim
options. They both are enabled by default, which matches the behavior in previous versions of sw-precache
.
Significant PRs Since Previous Release
- Adds skipWaiting and clientsClaim options
- Make the SW more resilient to caches being manually cleared.
Thanks
Thanks to @yangchenyun, @eauc, @dandv, @TalAter, @Alexendoo, @TimvdLippe, @asolove, and @ithinkihaveacat for their PR contributions!