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
fix(service-worker): detect new version even if files are identical to an old one #26006
fix(service-worker): detect new version even if files are identical to an old one #26006
Conversation
You can preview d12a118 at https://pr26006-d12a118.ngbuilds.io/. |
d12a118
to
ca19ce5
Compare
You can preview ca19ce5 at https://pr26006-ca19ce5.ngbuilds.io/. |
You can preview 79fa1bc at https://pr26006-79fa1bc.ngbuilds.io/. |
79fa1bc
to
94ad278
Compare
You can preview 94ad278 at https://pr26006-94ad278.ngbuilds.io/. |
@gkalpak can you please rebase this to get rid of the pending pullapprove status? thanks |
…o an old one Previously, if an app version contained the same files as an older version (e.g. making a change, then rolling it back), the SW would not detect it as the latest version (and update clients). This commit fixes it by adding a `timestamp` field in `ngsw.json`, which makes each build unique (with sufficiently high probability). Fixes angular#24338
…tical to an old one
94ad278
to
b158057
Compare
…o an old one (#26006) Previously, if an app version contained the same files as an older version (e.g. making a change, then rolling it back), the SW would not detect it as the latest version (and update clients). This commit fixes it by adding a `timestamp` field in `ngsw.json`, which makes each build unique (with sufficiently high probability). Fixes #24338 PR Close #26006
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. |
PR Checklist
Docs have been added / updated (for bug fixes / features)PR Type
What is the current behavior?
If an app version (aka manifest) contains the same files as an older version (e.g. making a change, then rolling it back), the SW would not detect it as the latest version (and update clients).
Issue Number: #24338
What is the new behavior?
A new
timestamp
field is added inngsw.json
(based on the current date), which makes each build unique (with sufficiently high probability).Does this PR introduce a breaking change?
Other information
Fixes #24338.