Repository navigation
FF115 Add Sec-Purpose HTTP header - #20169
Merged
Merged
Conversation
hamishwillee
commented
Jun 23, 2023
| "support": { | ||
| "chrome": { | ||
| "version_added": false, | ||
| "notes": "Chrome uses the legacy <code>Purpose: prefetch</code> header to indicate a request is a prefetch. See <a href='https://crbug.com/1358419'>bug 1358419</a>." |
Contributor
Author
There was a problem hiding this comment.
I am not treating Purpose as an alias because I don't know whether it really is - that depends on how it is deprecated, or if it lives in parallel, or what.
9 of 10 tasks
hamishwillee
commented
Jun 23, 2023
hamishwillee
commented
Jun 26, 2023
Contributor
Author
|
FYI @Elchi3 @queengooborg |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FF115 adds support for
Sec-Purposeheader in https://bugzilla.mozilla.org/show_bug.cgi?id=1836328.The other browsers are not supported according to https://wpt.fyi/results/preload/prefetch-headers.https.html?label=experimental&label=master&aligned in Chrome 116, Safari 172.
Sec-Purpose: prefetchis the new way to indicate a request is a prefetch request. In Firefox it replacesX-moz: prefetchand in Chromium it will replacePurpose: prefetch, though it has not been implemented yet.I want to avoid adding data for
X-moz: prefetchandPurpose: prefetchas both are effectively non-standard, and it is difficult enough to capture what is happening withSec-Purpose.Related docs work can be tracked in mdn/content#27171