- From: Daniel Franke <dfoxfranke@gmail.com>
- Date: Wed, 30 Sep 2026 19:22:06 -0400
- To: RFC Errata System <rfc-editor@rfc-editor.org>
- Cc: gorry@erg.abdn.ac.uk, mnot@mnot.net, julian.reschke@gmx.de, francesca.palombini@ericsson.com, mt@lowentropy.net, fielding@gbiv.com, mbishop@evequefou.be, ietf-http-wg@w3.org
- Message-ID: <CAJm83bC7z5is9WofccS=X6iJ6LXStOFeFJETc6xfUSREEyqZXw@mail.gmail.com>
I now think that I made a mistake by trying to address body reuse across non-matching cache entries for the same resource with a patch to a section that concerns freshening of stored responses. These are distinct concerns which the current text doesn't adequately separate, and properly addressing that separation requires a larger update than the errata mechanism is suited for. I request that this erratum be held for document update. I may at some point submit an I-D supplying that update, but I don't plan to begin work on that until I've released the implementation I'm developing. On Wed, Sep 30, 2026, 17:43 Daniel Franke <dfoxfranke@gmail.com> wrote: > I'm having second thoughts about this erratum. I maintain that some fix or > at least a clarification is needed here, but I'm no longer sure that my > proposed fix is the correct one. Suppose we change up the example I > originally gave, so that a cache has stored > > GET / > Accept-Language: fr, en; q=0.9 > > 200 OK > Vary: Accept-Language > Content-Language: en > ETag: "xyz" > > Later we receive > > GET / > Accept-Language: en, fr; q=0.9 > > We forward > > GET / > Accept-Language: en, fr; q=0.9 > If-None-Match: "xyz" > > and receive > > 304 Not Modified > Vary: Accept-Language > Content-Language: en > ETag: "xyz" > > In this case, we should be able to answer the client with the response > body cached from the original stored request, and it's quite unclear that > the current RFC 9111 text allows this. However, the current text of my > proposed change would also allow freshening that original cache entry, and > in the case here, that would be incorrect. The origin could have added a > French translation while leaving the English version of the page unchanged. > In that case, repeating the original request would now yield the French > version, so we should not be freshening it with a response that supplies > the English version. > > On Mon, Sep 28, 2026 at 11:11 AM <rfc-editor@rfc-editor.org> wrote: > >> The following errata report has been submitted for RFC9111, >> "HTTP Caching" >> >> -------------------------------------- >> You may review the report below and at: >> https://errata.rfc-editor.org/eid9185/ >> >> -------------------------------------- >> Type: Technical >> Reported by: Daniel Fox Franke <dfoxfranke@gmail.com> >> >> Section 4.3.4 says: >> >> Original Text >> ------------- >> The initial set of stored responses to update are those that could >> have been chosen for that request -- i.e., those that meet the >> requirements in Section 4, except the last requirement to be fresh, >> able to be served stale, or just validated. >> >> Corrected Text >> -------------- >> Replace the original paragraph with, >> >> The initial set consists of stored responses that satisfy all of >> the following conditions with respect to the request that >> elicited the 304 response: >> >> * The target URI matches that of the request. >> >> * The method associated with the stored response permits its use >> for the request. >> >> * Either the selecting request header fields match as specified >> in Section 4.1, or the stored response and the 304 response >> contain ETag field values that match using the strong >> comparison function defined in Section 8.8.3.2 of [HTTP]. >> >> At the end of Section 4.3.4, append >> >> When a response is identified for update through a strong >> entity-tag match despite a selecting-header mismatch, the cache >> MUST, for the purposes of Section 4.1, associate the updated >> response with the header fields of the request that elicited the >> 304 response. Subsequent matching uses those request header fields >> and the updated response's Vary field. The cache MAY retain a >> separate, unmodified entry associated with the original request. >> >> Notes >> ----- >> The choice to recast the affected paragraph as a list of criteria rather >> than a >> list of exceptions to the Section 4 requirements is editorial. The key >> technical >> change is to allow the initial set to include stored responses whose >> requests >> have nonmatching selecting request header fields if the stored response >> is a >> strong ETag match to the 304 response. >> >> Suppose we have a stored request, >> >> GET / >> Accept-Language: en, fr >> >> with response >> >> 200 OK >> Vary: Accept-Language >> Content-Language: en >> ETag: "xyz" >> >> We later receive a request, >> >> GET / >> Accept-Language: en, de >> >> Section 4.3.1 permits the cache to forward that request with >> >> If-None-Match: "xyz" >> >> If the selected representation at the origin still has the strong entity >> tag >> "xyz", the origin can respond: >> >> 304 Not Modified >> Vary: Accept-Language >> Content-Language: en >> ETag: "xyz" >> >> The strong ETag establishes that the stored representation is the >> representation >> selected for the validating request. Nevertheless, the current wording of >> Section 4.3.4 excludes the stored response before comparing the ETag, >> solely >> because its Accept-Language value does not match under Section 4.1. >> >> RFC 2616 and 7234 allowed this use of validation to resolve >> content-negotiation >> mismatches. The restriction added in RFC 9111 was intended to prevent a >> validation response from updating unrelated stored responses, >> particularly where >> validators do not uniquely identify a representation. HTTP Working Group >> issue #839 >> records the concern that a Last-Modified value treated as a strong >> validator could >> cause a 304 response to update distinct representations that share a >> modification >> timestamp. >> >> The correct text preserves the existing restriction in the cases that >> originally >> motivated it, while allowing a strong ETag match to perform the >> representation >> identification contemplated by Section 4.3.1. >> >> Instructions: >> ------------- >> This erratum is currently posted as "Reported". Please >> use "Reply All" to discuss whether it should be verified or >> rejected. When a decision is reached, the verifying party >> will log in to change the status and edit the report, if necessary. >> >> -------------------------------------- >> RFC9111 (draft-ietf-httpbis-cache) >> -------------------------------------- >> Title : HTTP Caching >> Publication Date : June 2022 >> Author(s) : R. Fielding, Ed., M. Nottingham, Ed., J. Reschke, >> Ed. >> Category : Internet Standard >> Source : httpbis (wit) >> Stream : IETF >> Verifying Party : IESG >> >
Received on Wednesday, 30 September 2026 23:22:20 UTC