Re: Last Call: <draft-ietf-httpbis-no-vary-search-07.txt> (The No-Vary-Search HTTP Caching Extension) to Proposed Standard

Hi Mark,

Thank you for the review!

I've uploaded https://github.com/httpwg/http-extensions/pull/3504 to
address these issues.

Best,
Nidhi Jaju

On Mon, Aug 10, 2026 at 11:56 AM Mark Nottingham <mnot@mnot.net> wrote:

> [Apologies for the very late review; this is the result of testing some
> new AI tooling that found issues which appear to have escaped previous
> reviews.]
>
> One piece of context: every substantive change in -07 was made to answer
> the Last Call reviews, in four PRs. Several of the problems below are
> collisions between the new text and text it was placed beside.
>
>
> ISSUES
>
> 1. "No-Vary-Search: key-order" alone parses to the default config, so the
> document's first example does nothing
>
> Section 5.1, step 5:
>
>    If both _value_["params"] and _value_["except"] exist or neither
>    exists, then return the default URL variation config.
>
> For the input "No-Vary-Search: key-order", neither exists, so step 5
> returns the default config -- "whose no-vary params is an empty list, vary
> params is *wildcard*, and vary on key order is true" (Section 4). What step
> 4 set from the key-order member is discarded. Table 1's first row and
> Section 1 both give that input as "vary on key order: false".
>
> Deleting "or neither exists" doesn't fix it. Step 2 creates the config and
> sets no field; only steps 6.3/6.5 and 7.3/7.5 populate no-vary params and
> vary params, and neither runs for this input. The clause is what populates
> them, and it does so by discarding key-order.
>
> Suggest a distinct path for the neither-present case that sets no-vary
> params to an empty list and vary params to *wildcard*, preserving what step
> 4 set. Table 2's explanation column ("params and except cannot both be
> present") needs correcting too.
>
>
> 2. Reuse is widened and invalidation is not mentioned
>
> Section 7 relaxes exactly one requirement, and scopes it to reuse: "To
> reuse a stored response, Section 4 of [HTTP-CACHING] requires that the
> presented target URI and that of the stored response match. If a cache
> implements the No-Vary-Search extension, this matching requirement is also
> satisfied if the URIs are equivalent modulo URL variation config".
>
> RFC 9111 Section 4.4 keeps its own notion of matching. Its MUST is over
> "all stored responses whose target URI matches the given URI"; everything
> wider is a MAY -- "A cache MAY invalidate other URIs ... other URIs might
> be discovered through mechanisms not specified in this document."
>
> So a stored 200 carrying No-Vary-Search: params=("utm_source"), followed
> by an unsafe request to the same path carrying that parameter, falls under
> a MUST that doesn't reach the stored response and a MAY that doesn't
> oblige. A conforming cache may go on serving the pre-mutation body for a
> URI the origin has said is equivalent. The draft doesn't mention
> invalidation at all.
>
> If "mechanisms not specified in this document" is meant to be the hook,
> worth saying so: it's a MAY, so two conforming caches will differ on
> whether a mutation is visible, and this is where a reader would look.
>
>
> 3. The condition for declining a modulo-match is storage order; RFC 9111's
> tie-break is Date
>
> Section 7: "Cache implementations MAY fail to reuse a stored response
> whose target URI matches _only_ modulo URL variation config, if the cache
> has more recently stored a response which: [...]"
>
> RFC 9111 Section 4: "When more than one suitable response is stored, a
> cache MUST use the most recent one (as determined by the Date header
> field)."
>
> Section 7 enlarges the set of responses satisfying Section 4's matching
> bullet, so it enlarges the set of "suitable" responses that MUST governs --
> then adds a discretion measured by storage time rather than Date. The two
> can disagree. Section 7's note makes it concrete: "Let exactMatch be
> cache[presentedTargetURI]. If it is a stored response that can be reused,
> return it" -- returned before any Date comparison, including where a
> modulo-match with a later Date is also suitable.
>
> The note is non-normative, so perhaps nothing is violated. I'd still like
> the interaction stated: this is the point I raised on the list in March
> 2024 -- where a cache has multiple stored responses with conflicting
> information about the cache key, the interaction needs specifying, as it
> did for Vary and Key/Variants -- and it hasn't been worked through since.
>
>
> 4. Say that the field is sent by origins
>
> Section 8 discharges the shared-cache risk onto the origin: "because the
> origin strictly controls the 'No-Vary-Search' response header field, it is
> the origin's responsibility to ensure that ignored parameters are safe to
> disregard for all users."
>
> The document never says who may set it. Section 1 describes the happy path
> -- "Origin servers send the 'No-Vary-Search' response header field to
> provide instructions to these caches" -- and the word "intermediary"
> doesn't appear anywhere in the document. RFC 9110 Section 16.3.2 asks a
> field definition to state "Under what conditions intermediaries are allowed
> to insert, delete, or modify the field's value."
>
> Section 3 or Section 7 should say the field is set by the origin, and what
> an intermediary may do with it. Two sentences, no mechanism changes, and
> it's what Section 8 already assumes.
>
>
> 5. Section 8's MUST NOT has no conformance target
>
>    Parameters MUST NOT be ignored if doing so would bypass
>    server processing required for safe response reuse.
>
> A cache can't evaluate this; it has no knowledge of the origin's
> processing. The party this binds is the origin, but the only sentence
> naming it is two paragraphs earlier and non-normative ("it is the origin's
> responsibility to ensure that ignored parameters are safe to disregard for
> all users"). Suggest "An origin MUST NOT declare a parameter as no-vary
> if...", or dropping the keyword.
>
>
> 6. Section 9 denies a privacy impact that text added in the same revision
> describes
>
> Section 9 opens: "we believe this proposal itself does not have privacy
> impacts. [...] Indeed, if a page were to encode user identifiers in its
> URI, the only ability this proposal gives is to _reduce_ such user tracking
> by preventing server processing of such user IDs (since the server is
> bypassed in favor of the cache)."
>
> Its next paragraph, new in -07: "an errant configuration that incorrectly
> ignores parameters related to user identity or private state could expose
> cached content meant for one user to another. While this mistake can occur
> with standard caching, the 'No-Vary-Search' response header field increases
> the surface area for such misconfigurations".
>
> The "only ... reduce" claim rests on the server being bypassed, which
> holds for a private cache. Section 1 puts shared caches in scope --
> "browser caches, content delivery networks, and forward proxies" -- and
> there it doesn't: collapsing the cache key removes nothing from the
> request, the intermediary still receives every distinct identifier, and
> what changes is who receives the response.
>
> Suggest withdrawing the blanket denial, stating the trade-off and why it's
> acceptable, and confining "only ... reduce" to the private-cache case.
>
>
> 7. The dictionary key space has no allocation policy
>
> Section 3: "The dictionary MAY contain entries whose keys are not one of
> key-order, params, and except, but their meaning is not defined by this
> specification. Implementations of this specification will ignore such
> entries (but future documents might assign meaning to such entries)."
>
> The ignore half needs no defence -- RFC 9651 Section 3.2 already requires
> it. What's missing is allocation: who assigns those keys, under what
> policy, with what review.
>
> Unknown keys are the one place the design fails open. Section 5.1's note:
> "such extensions will likely expand, rather than reduce, the set of
> requests that a cached response can match." That's a prediction doing
> safety work -- a future key that reduces the match set, ignored, makes a
> legacy cache match more than the origin intended.
>
> Two sibling httpbis fields with the same shape of key space each stood a
> registry up (RFC 9218 Section 4.3.1, RFC 9211 Section 4). Either a registry
> with a stated policy, or a sentence saying new keys require a document that
> updates this one -- plus the expand-not-reduce invariant as a constraint
> rather than a prediction.
>
>
> COMMENTS
>
> * Section 5.3.1: "This will result in a URL variation config whose vary
> params are « "é 気" »." The input is params=("%C3%A9+%E6%B0%97"), and
> Section 5.1 step 6.3 sets *no-vary* params from params while 6.5 sets vary
> params to *wildcard*; Table 1 agrees. Under the "vary params" reading the
> four equivalences that follow are wrong. Should this read "no-vary params"?
>
> * Section 5.3.1: "the percent-decoding step used by the User Agent
> produces a non-ASCII result." Section 1 says the extension is implemented
> by "browser caches, content delivery networks, and forward proxies". Both
> sentences are new in -07, from different PRs. Is "User Agent" intended?
>
> * Section 7 says "equivalent modulo URL variation config"; Section 6
> defines "equivalent modulo variation config", and the Index lists only the
> latter. One spelling should go.
>
> * Section 5.1 steps 6.1 and 7.1 test whether the value "is not an array",
> while Section 3 requires "an inner list of strings (Section 3.1.1 of
> [STRUCTURED-FIELDS])". "Array" isn't a Structured Fields term -- is Inner
> List meant?
>
> * Section 5.2 step 1: "Let _fieldValue_ be the result of parsing the
> 'No-Vary-Search' response header field from _response_ as a Dictionary".
> What is fieldValue when the field is absent, or when Structured Fields
> parsing fails? Section 5.1 step 1 handles null; nothing says the failure
> cases produce it.
>
> * Section 7: "servers SHOULD NOT send different non-empty values ... in
> response to requests for a given pathname over time". "pathname" is a
> WHATWG URL term, and it isn't clear whether the scope is
> per-authority-and-path or per-path.
>
> * The draft never mentions Vary or content negotiation. RFC 9110 Section
> 16.3.2 asks authors to consider "The scope of applicability for the
> information conveyed", warning that specifications expanding a response
> field's scope "will need to carefully consider issues such as content
> negotiation". Presumably RFC 9111 Section 4.1's secondary-key matching
> applies unchanged -- worth a sentence saying so?
>
>
> NITS
>
> * [FETCH] is listed under Normative References but is cited nowhere in the
> body. PR #3477 replaced its one citation with a direct RFC 9651 Section 4.2
> reference and left the entry behind.
>
> * [HTML] is listed under Informative References and is likewise never
> cited; Section 8's history.replaceState() mention carries a bare URL
> instead.
>
> * Section 6 step 1 compares "username, password" of the two URLs.
> Harmless, but the userinfo subcomponent isn't generated in http(s) URIs.
>
> --
> Mark Nottingham   https://mnot.net/
>
>

Received on Wednesday, 12 August 2026 05:34:46 UTC