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

Re: #241: clarify eval order/interaction of conditional headers

From: Mark Nottingham <mnot@mnot.net>
Date: Thu, 5 Jul 2012 09:37:42 +1000
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Message-Id: <A57DA9CB-2A8D-48F5-B748-FB8A8BAA753E@mnot.net>
To: Zhong Yu <zhong.j.yu@gmail.com>
Indeed, and testing my local install of Apache, it seems that it makes this exception too.

Thanks,


On 05/07/2012, at 2:30 AM, Zhong Yu wrote:

> I think there's a problem.
> 
> If both If-Non-Match and If-Mod-Since are given, and they are
> evaluated to TRUE and FALSE respectively, the algorithm yields 304 Not
> Modified.  The "Not Modified" response is totally wrong, since the
> ETag has been updated.
> 
> For example, if the current representation has  ETag=v1.0,
> Last-Mod=7/1, and the request has
>    If-Non-Match: v1.1
>    If-Mod-Since: 7/4
> the server should respond 200 with the current representation, not a 304.
> 
> The solution seems to be that, if both headers are given, only
> If-Non-Match should be looked at; the If-Mod-Since condition must be
> ignored.
> 
> Zhong Yu
> 

--
Mark Nottingham   http://www.mnot.net/
Received on Wednesday, 4 July 2012 23:38:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 4 July 2012 23:38:14 GMT