-
Notifications
You must be signed in to change notification settings - Fork 25.3k
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
feat(service-worker): add the option to prefer network for navigation… #38565
feat(service-worker): add the option to prefer network for navigation… #38565
Conversation
6d061f5
to
bfa9d7e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, @klemenoslaj 🎉
I left some minor comments, but otherwise lgtm. Impressive work (esp. for a first-time contribution) 🙇
8cbc687
to
63b2763
Compare
63b2763
to
ac19cce
Compare
ac19cce
to
0e3a0c0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gkalpak I made the suggested changes. Please have a look.
47ebeca
to
015fbf8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, this is pretty close to ready 🎉
Here's another round of review (just minor comments) 😃
54e9347
to
51d3afc
Compare
9281001
to
60c547c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx for making the changes, @klemenoslaj 👍
The code looks great. Just some more comments regarding docs 📖
60c547c
to
23f6bda
Compare
a52c5b3
to
21009e8
Compare
You can preview 21009e8 at https://pr38565-21009e8.ngbuilds.io/. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never mind! I didn't realize that @aikidave had already reviewed! I had it up partially completed yesterday. Deleting my comments!
Review comments deleted by reviewer.
21009e8
to
f84d919
Compare
You can preview f84d919 at https://pr38565-f84d919.ngbuilds.io/. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A minor comment, but nothing blocking. Otherwise, LGTM.
Reviewed-for: required-docs-approvers
… requests This commit introduces a new option for the service worker, called `navigationRequestStrategy`, which adds the possibility to force the service worker to always create a network request for navigation requests. This enables the server redirects while retaining the offline behavior. Fixes angular#38194
f84d919
to
2025600
Compare
You can preview 2025600 at https://pr38565-2025600.ngbuilds.io/. |
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. |
… requests
This commit introduces a new option for the service worker, called
navigationRequestStrategy
, which adds the possibility to force the service workerto always create a network request for navigation requests.
This enables the server redirects while retaining the offline behavior.
Fixes #38194
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #38194, #36099
What is the new behavior?
After enabling the
freashnessForNavigationUrls
flag, the navigation requests will always go through the network.This will enable the HTTP redirects.
Does this PR introduce a breaking change?
Other information