fix(service-worker): clear service worker cache in safety worker #43324
clear angular service worker cache in safety worker to ensure stale
Please check if your PR fulfills the following requirements:
What kind of change does this PR introduce?
What is the current behavior?
Currently, safety worker only unregisters old service worker, while leaving the service worker cache. This creates problem when cache contains broken contents and sometimes causes new service worker to serve the contents from the old cache. Hence failing the purpose of safety worker.
Issue Number: 43163
What is the new behavior?
After unregistering old service worker, clear cache of angular service worker. This ensure that the new service worker doesn't serve stale or broken contents.
Does this PR introduce a breaking change?
The text was updated successfully, but these errors were encountered:
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.
We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only
Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the
clear angular service worker cache in safety worker to ensure stale or broken contents are not served in future requests Fixes angular#43163
This issue has been automatically locked due to inactivity.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.