Skip to content
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

Editorial: Move No-Vary-Search to IETF HTTPbis #338

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions no-vary-search.bs
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ spec: RFC8941; urlPrefix: https://www.rfc-editor.org/rfc/rfc8941.html

<h2 id="status-and-venue">Status and venue note</h2>

This document is being written as a web-style specification in the WICG for now, because that's the tooling and venue the author is familiar with. Its purpose is to nail down some details of the processing model in order to make writing and testing prototypes easier.

In the longer term, we envision this header being specified in a HTTPWG RFC, alongside whatever portion of the processing model can be shared among its various consumers. (That is, between both web platform specifications such as [[FETCH]], and HTTP specifications such as future modifications to [[RFC9111]].) It's just incubating in WICG for now.
Work on this document has moved to the IETF HTTP working group. The <a href="https://httpwg.org/http-extensions/draft-ietf-httpbis-no-vary-search.html">latest draft</a> and <a href="https://github.com/httpwg/http-extensions/labels/no-vary-search">issue tracker</a> can be found there.

<h2 id="header-definition">HTTP header field definition</h2>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should gut this spec entirely, maybe replacing it with a (client-side) redirect.


Expand Down
4 changes: 4 additions & 0 deletions no-vary-search.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# The `No-Vary-Search` HTTP response header

> [!IMPORTANT]
> Work on this feature has moved to the IETF HTTP working group.
> The [latest draft](https://httpwg.org/http-extensions/draft-ietf-httpbis-no-vary-search.html) and [issue tracker](https://github.com/httpwg/http-extensions/labels/no-vary-search) can be found there.

Caching is useful for making web pages load faster, and thus creating better user experiences. Prominent caches on the web platform include the HTTP cache, as well as the subjects of this repository, the prefetch and prerender caches.

One of the most important cache keys for web resources is the resource's URL. However, sometimes multiple URLs can represent the same resource. This leads to caches not always being as helpful as they could be: if the browser has the resource cached under one URL, but the resource is then requested under another, the cached version will be ignored.
Expand Down
12 changes: 6 additions & 6 deletions prefetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ spec: nav-speculation; urlPrefix: prerendering.html
text: getting the supported loading modes; url: get-the-supported-loading-modes
text: uncredentialed-prefetch; for: Supports-Loading-Mode; url: supports-loading-mode-uncredentialed-prefetch
text: prerendering traversable; url: prerendering-traversable
spec: nav-speculation; urlPrefix: no-vary-search.html
spec: no-vary-search; urlPrefix: https://httpwg.org/http-extensions/draft-ietf-httpbis-no-vary-search.html
type: dfn
text: URL search variance; url: url-search-variance
text: obtain a URL search variance; url: obtain-a-url-search-variance
text: equivalent modulo search variance; url: equivalent-modulo-search-variance
text: URL search variance; url: name-data-model
text: obtain a URL search variance; url: name-obtain-a-url-search-varianc
text: equivalent modulo search variance; url: name-comparing
spec: resource-timing; urlPrefix: https://w3c.github.io/resource-timing/
type: dfn; for: PerformanceResourceTiming; text: delivery type; url: dfn-delivery-type
</pre>
Expand Down Expand Up @@ -785,10 +785,10 @@ The following parameters are defined for the "`prefetch`" token:

See <a href="speculation-rules.html#security-considerations">Security considerations (Speculation Rules)</a>.

For the integration of this spec with No-Vary-Search, see <a href="no-vary-search.html#security-considerations">No-Vary-Search Security considerations</a>.
For the integration of this spec with No-Vary-Search, see <a href="https://httpwg.org/http-extensions/draft-ietf-httpbis-no-vary-search.html#name-security-considerations">No-Vary-Search Security considerations</a>.

<h2 id="privacy-considerations">Privacy considerations</h2>

See <a href="speculation-rules.html#privacy-considerations">Privacy considerations (Speculation Rules)</a>.

For the integration of this spec with No-Vary-Search, see <a href="no-vary-search.html#privacy-considerations">No-Vary-Search Privacy considerations</a>.
For the integration of this spec with No-Vary-Search, see <a href="https://httpwg.org/http-extensions/draft-ietf-httpbis-no-vary-search.html#name-privacy-considerations">No-Vary-Search Privacy considerations</a>.
14 changes: 7 additions & 7 deletions prerendering.bs
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ spec: picture-in-picture; urlPrefix: https://w3c.github.io/picture-in-picture/
spec: mediacapture-main; urlPrefix: https://w3c.github.io/mediacapture-main/
type: dfn
text: device change notification steps; url: dfn-device-change-notification-steps
spec: nav-speculation; urlPrefix: no-vary-search.html
spec: no-vary-search; urlPrefix: https://httpwg.org/http-extensions/draft-ietf-httpbis-no-vary-search.html
type: dfn
text: URL search variance; url: url-search-variance
text: default URL search variance; url: default-url-search-variance
text: obtain a URL search variance; url: obtain-a-url-search-variance
text: equivalent modulo search variance; url: equivalent-modulo-search-variance
text: URL search variance; url: name-data-model
text: default URL search variance; url: iref-default-url-search-variance
text: obtain a URL search variance; url: name-obtain-a-url-search-varianc
text: equivalent modulo search variance; url: name-comparing
spec: nav-speculation; urlPrefix: prefetch.html
type: dfn
text: supports prefetch; url: supports-prefetch
Expand Down Expand Up @@ -1018,14 +1018,14 @@ More complicated cases:

See <a href="speculation-rules.html#security-considerations">Security considerations (Speculation Rules)</a>.

For the integration of this spec with No-Vary-Search, see <a href="no-vary-search.html#security-considerations">No-Vary-Search Security considerations</a>.
For the integration of this spec with No-Vary-Search, see <a href="https://httpwg.org/http-extensions/draft-ietf-httpbis-no-vary-search.html#name-security-considerations">No-Vary-Search Security considerations</a>.

<p class="issue">Add security considerations that are specific to prerendering. See <a href="https://github.com/WICG/nav-speculation/issues/319">issue #319</a>.</p>

<h2 id="privacy-considerations">Privacy considerations</h2>

See <a href="speculation-rules.html#privacy-considerations">Privacy considerations (Speculation Rules)</a>.

For the integration of this spec with No-Vary-Search, see <a href="no-vary-search.html#privacy-considerations">No-Vary-Search Privacy considerations</a>.
For the integration of this spec with No-Vary-Search, see <a href="https://httpwg.org/http-extensions/draft-ietf-httpbis-no-vary-search.html#name-privacy-considerations">No-Vary-Search Privacy considerations</a>.

<p class="issue">Add privacy considerations that are specific to prerendering. See <a href="https://github.com/WICG/nav-speculation/issues/319">issue #319</a>.</p>
12 changes: 6 additions & 6 deletions speculation-rules.bs
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ spec: nav-speculation; urlPrefix: prerendering.html
text: start referrer-initiated prerendering; url: start-referrer-initiated-prerendering
text: prerendering traversable; url: prerendering-traversable
text: activate; for: prerendering traversable; url: prerendering-traversable-activate
spec: nav-speculation; urlPrefix: no-vary-search.html
spec: no-vary-search; urlPrefix: https://httpwg.org/http-extensions/draft-ietf-httpbis-no-vary-search.html
type: dfn
text: URL search variance; url: url-search-variance
text: default URL search variance; url: default-url-search-variance
text: obtain a URL search variance hint; url: obtain-a-url-search-variance-hint
text: equivalent modulo search variance; url: equivalent-modulo-search-variance
text: URL search variance; url: name-data-model
text: default URL search variance; url: iref-default-url-search-variance
text: obtain a URL search variance; url: name-obtain-a-url-search-varianc
text: equivalent modulo search variance; url: name-comparing
</pre>
<style>
/* domintro from https://resources.whatwg.org/standard.css */
Expand Down Expand Up @@ -422,7 +422,7 @@ add the following step
1. Let |noVarySearchHint| be the [=default URL search variance=].
1. If |input|["`expects_no_vary_search`"] [=map/exists=]:
1. If |input|["`expects_no_vary_search`"] is not a [=string=], then return null.
1. Set |noVarySearchHint| to the result of [=obtaining a URL search variance hint=] given |input|["`expects_no_vary_search`"].
1. Set |noVarySearchHint| to the result of [=obtaining a URL search variance=] given |input|["`expects_no_vary_search`"].
1. Return a [=speculation rule=] with
: [=speculation rule/URLs=]
:: |urls|
Expand Down