forked from angular/angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(service-worker): keep serving clients on older versions if latest…
… is invalidated (angular#31865) Previously, when the latest version was invalidated (e.g. due to a hash mismatch), the SW entered a degraded `EXISTING_CLIENTS_ONLY` mode and removed _all_ clients from its client-version map (essentially stopping to serve any clients). Based on the code and surrounding comments, the intention seems to have been to only remove clients that were on the invalidated version, but keep other clients on older versions. This commit fixes it by only unassigning clients what were on the latest version and keep clients assigned to older versions. PR Close angular#31865
- Loading branch information
Showing
2 changed files
with
89 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters