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

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

From: Zhong Yu <zhong.j.yu@gmail.com>
Date: Wed, 4 Jul 2012 11:30:00 -0500
Message-ID: <CACuKZqGOYV0zWHabmDbVWkECqRF+e98a3qZF8RJ7joYLkdQxYA@mail.gmail.com>
To: Mark Nottingham <mnot@mnot.net>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
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

Zhong Yu
Received on Wednesday, 4 July 2012 16:30:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:02 UTC