W3C home > Mailing lists > Public > ietf-http-wg@w3.org > July to September 2007

Re: NEW ISSUE: Content-Coding vs ETags

From: Henrik Nordstrom <henrik@henriknordstrom.net>
Date: Sun, 30 Sep 2007 23:15:54 +0200
To: Julian Reschke <julian.reschke@gmx.de>
Cc: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Message-Id: <1191186954.23717.11.camel@henriknordstrom.net>
On sön, 2007-09-30 at 20:20 +0200, Julian Reschke wrote:

> ...as summarized today by Sam Ruby 
> (<http://intertwingly.net/blog/2007/09/30/Etag-vs-Encoding>).
> My feeling is that over here there is indeed consensus that using 
> Content Coding indeed is a case of server driven content-negotiation; 
> but it's also pretty clear that there are places in the spec that could 
> be read differently. Let's clarify those.

Any specific areas you have in mind, other than a lot of people getting
this wrong by making assumptions and not reading the specs?

> Related to that, it's (IMHO) also not clear at all whether you need to 
> use "Vary" on the response if the request didn't contain the header 
> you're varying on. My reading was that yes, you need to do so, but 
> that's not what IIS7 does (which at least gets the ETag right), and as 
> far as I recall, Henrik N. argued the other way in the past.

No, I have always argued that Vary must lists the headers you looked for
in determining which variant to respond with, not only the headers your
found in the request. A non-existing header is also a value, and has
different outcome on the server decision than an existing header with a
certain value so it must be listed in Vary or caching of vary:ing
responses will fail very badly.

Others have asked if this is needed, but the specs is pretty clear on
this I think.

I have even argued that Vary should list all headers you might look for
when determining the variant (on a per resource basis) but after
discussion here agrees that it's just the headers you looked for when
determining the outcome of the given request, which may be different for
another request depending on the variance capabilities of the resource.
(i.e. English page existing in both normal and gzip:ed content-encoding,
while Swedish page only in normal encoding).


Received on Sunday, 30 September 2007 21:16:11 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 11:10:43 UTC