-
Notifications
You must be signed in to change notification settings - Fork 331
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
Accept header for prefetch #1485
Conversation
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.
Editorial suggestion: it'd probably be best to <dfn>
the "document Accept
header value" (or similar name) as a constant, somewhere out in https://whatpr.org/fetch/1485.html#miscellaneous . Defining it as a per-algorithm variable doesn't seem necessary.
Looking at the HTML issue I think we might have to resolve w3c/resource-hints#74 as part of this issue, though it depends a bit on where the header needs to be exposed. |
Special-casing prefetches makes it so that `Vary: Accept` makes the browser erroneously reject the prefetched response. This was previously unspecified, See whatwg/fetch#1485 Bug: 626081 Change-Id: I2c99f4f1abd2556fdf456d877588b346a22fd677
Special-casing prefetches makes it so that `Vary: Accept` makes the browser erroneously reject the prefetched response. Also changed the SXG ?q= value for the frame accept header, as it was done for prefetch (and should have been done for the frame accept header). For now CORS prefetches remain untouched, as changing them to the >128bytes frame accept headers would cause incompatibility due to a CORS-preflight requirement. This was previously unspecified, See whatwg/fetch#1485 Bug: 626081 Change-Id: I2c99f4f1abd2556fdf456d877588b346a22fd677
Special-casing prefetches makes it so that `Vary: Accept` makes the browser erroneously reject the prefetched response. Also changed the SXG ?q= value for the frame accept header, as it was done for prefetch (and should have been done for the frame accept header). For now CORS prefetches remain untouched, as changing them to the >128bytes frame accept headers would cause incompatibility due to a CORS-preflight requirement. This was previously unspecified, See whatwg/fetch#1485 Bug: 626081 Change-Id: I2c99f4f1abd2556fdf456d877588b346a22fd677
Special-casing prefetches makes it so that `Vary: Accept` makes the browser erroneously reject the prefetched response. Also changed the SXG ?q= value for the frame accept header, as it was done for prefetch (and should have been done for the frame accept header). For now CORS prefetches remain untouched, as changing them to the >128bytes frame accept headers would cause incompatibility due to a CORS-preflight requirement. This was previously unspecified, See whatwg/fetch#1485 Bug: 626081 Change-Id: I2c99f4f1abd2556fdf456d877588b346a22fd677
Special-casing prefetches makes it so that `Vary: Accept` makes the browser erroneously reject the prefetched response. Also changed the SXG ?q= value for the frame accept header, as it was done for prefetch (and should have been done for the frame accept header). For now CORS prefetches remain untouched, as changing them to the >128bytes frame accept headers would cause incompatibility due to a CORS-preflight requirement. This was previously unspecified, See whatwg/fetch#1485 Bug: 626081 Change-Id: I2c99f4f1abd2556fdf456d877588b346a22fd677
Special-casing prefetches makes it so that `Vary: Accept` makes the browser erroneously reject the prefetched response. Also changed the SXG ?q= value for the frame accept header, as it was done for prefetch (and should have been done for the frame accept header). For now CORS prefetches remain untouched, as changing them to the >128bytes frame accept headers would cause incompatibility due to a CORS-preflight requirement. This was previously unspecified, See whatwg/fetch#1485 Bug: 626081 Change-Id: I2c99f4f1abd2556fdf456d877588b346a22fd677
Special-casing prefetches makes it so that `Vary: Accept` makes the browser erroneously reject the prefetched response. Also changed the SXG ?q= value for the frame accept header, as it was done for prefetch (and should have been done for the frame accept header). For now CORS prefetches remain untouched, as changing them to the >128bytes frame accept headers would cause incompatibility due to a CORS-preflight requirement. This was previously unspecified, See whatwg/fetch#1485 Bug: 626081 Change-Id: I2c99f4f1abd2556fdf456d877588b346a22fd677
Special-casing prefetches makes it so that `Vary: Accept` makes the browser erroneously reject the prefetched response. Also changed the SXG ?q= value for the frame accept header, as it was done for prefetch (and should have been done for the frame accept header). For now CORS prefetches remain untouched, as changing them to the >128bytes frame accept headers would cause incompatibility due to a CORS-preflight requirement. This was previously unspecified, See whatwg/fetch#1485 Bug: 626081 Change-Id: I2c99f4f1abd2556fdf456d877588b346a22fd677
Special-casing prefetches makes it so that `Vary: Accept` makes the browser erroneously reject the prefetched response. Also changed the SXG ?q= value for the frame accept header, as it was done for prefetch (and should have been done for the frame accept header). For now CORS prefetches remain untouched, as changing them to the >128bytes frame accept headers would cause incompatibility due to a CORS-preflight requirement. This was previously unspecified, See whatwg/fetch#1485 Bug: 626081 Change-Id: I2c99f4f1abd2556fdf456d877588b346a22fd677 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4069726 Reviewed-by: Matt Menke <mmenke@chromium.org> Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> Auto-Submit: Noam Rosenthal <nrosenthal@chromium.org> Cr-Commit-Position: refs/heads/main@{#1083806}
Special-casing prefetches makes it so that `Vary: Accept` makes the browser erroneously reject the prefetched response. Also changed the SXG ?q= value for the frame accept header, as it was done for prefetch (and should have been done for the frame accept header). For now CORS prefetches remain untouched, as changing them to the >128bytes frame accept headers would cause incompatibility due to a CORS-preflight requirement. This was previously unspecified, See whatwg/fetch#1485 Bug: 626081 Change-Id: I2c99f4f1abd2556fdf456d877588b346a22fd677 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4069726 Reviewed-by: Matt Menke <mmenke@chromium.org> Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> Auto-Submit: Noam Rosenthal <nrosenthal@chromium.org> Cr-Commit-Position: refs/heads/main@{#1083806}
Special-casing prefetches makes it so that `Vary: Accept` makes the browser erroneously reject the prefetched response. Also changed the SXG ?q= value for the frame accept header, as it was done for prefetch (and should have been done for the frame accept header). For now CORS prefetches remain untouched, as changing them to the >128bytes frame accept headers would cause incompatibility due to a CORS-preflight requirement. This was previously unspecified, See whatwg/fetch#1485 Bug: 626081 Change-Id: I2c99f4f1abd2556fdf456d877588b346a22fd677 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4069726 Reviewed-by: Matt Menke <mmenke@chromium.org> Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> Auto-Submit: Noam Rosenthal <nrosenthal@chromium.org> Cr-Commit-Position: refs/heads/main@{#1083806}
…ches., a=testonly Automatic update from web-platform-tests Use the frame `Accept` header for prefetches. Special-casing prefetches makes it so that `Vary: Accept` makes the browser erroneously reject the prefetched response. Also changed the SXG ?q= value for the frame accept header, as it was done for prefetch (and should have been done for the frame accept header). For now CORS prefetches remain untouched, as changing them to the >128bytes frame accept headers would cause incompatibility due to a CORS-preflight requirement. This was previously unspecified, See whatwg/fetch#1485 Bug: 626081 Change-Id: I2c99f4f1abd2556fdf456d877588b346a22fd677 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4069726 Reviewed-by: Matt Menke <mmenke@chromium.org> Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> Auto-Submit: Noam Rosenthal <nrosenthal@chromium.org> Cr-Commit-Position: refs/heads/main@{#1083806} -- wpt-commits: 9eb3b189dae1f06fed09df71442227527b860c6b wpt-pr: 37469
…ches., a=testonly Automatic update from web-platform-tests Use the frame `Accept` header for prefetches. Special-casing prefetches makes it so that `Vary: Accept` makes the browser erroneously reject the prefetched response. Also changed the SXG ?q= value for the frame accept header, as it was done for prefetch (and should have been done for the frame accept header). For now CORS prefetches remain untouched, as changing them to the >128bytes frame accept headers would cause incompatibility due to a CORS-preflight requirement. This was previously unspecified, See whatwg/fetch#1485 Bug: 626081 Change-Id: I2c99f4f1abd2556fdf456d877588b346a22fd677 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4069726 Reviewed-by: Matt Menke <mmenke@chromium.org> Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> Auto-Submit: Noam Rosenthal <nrosenthal@chromium.org> Cr-Commit-Position: refs/heads/main@{#1083806} -- wpt-commits: 9eb3b189dae1f06fed09df71442227527b860c6b wpt-pr: 37469
@annevk all checkboxes are ticked. |
That's resolved in #1576 |
fetch.bs
Outdated
@@ -4189,16 +4191,20 @@ the request. | |||
<ol> | |||
<li><p>Let <var>value</var> be `<code>*/*</code>`. | |||
|
|||
|
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 has a newline too many.
Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
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.
Looks good with the nit commit I pushed. (Once the HTML PR is approved I will merge this.)
Together with whatwg/html#8111
(See WHATWG Working Mode: Changes for more details.)
Preview | Diff