W3C home > Mailing lists > Public > ietf-http-wg@w3.org > April to June 2009

RE: i37: Vary and non-existant headers

From: Brian Smith <brian@briansmith.org>
Date: Thu, 7 May 2009 19:48:21 -0500
To: "'Adrien de Croy'" <adrien@qbik.com>
Cc: "'HTTP Working Group'" <ietf-http-wg@w3.org>
Message-ID: <002101c9cf76$b0c1a0e0$1244e2a0$@org>
Adrien de Croy wrote:
> In the case of say Accept-Encoding, what if a server sends a vary tag
> with Accept-Encoding in it, yet there is no Content-Encoding field (e.g.
> no encoding, but the server selected on Accept-Encoding)?

That is the normal case. If the server decided to send a non-encoded version
due to the absence of an Accept-Encoding, then it has to include
Accept-Encoding in the Vary. 

> Or is that second-guessing the server and prohibited?

Yes, the cache must return what the server told it to return:

   If instead the cache receives a full response (i.e., one with a
   response body), it is used to satisfy the request and replace the
   stored response. [[anchor8: Should there be a requirement here?]]

and:

   If the server responds with 304 (Not
   Modified) and includes an entity tag or Content-Location that
   indicates the entity to be used, that cached response MUST be used
   to satisfy the presented request [...]

- Brian
Received on Friday, 8 May 2009 00:48:58 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 2 February 2023 18:43:19 UTC