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

Re: If-None-Match + Range

From: Zhong Yu <zhong.j.yu@gmail.com>
Date: Mon, 16 Jan 2012 14:46:36 -0600
Message-ID: <CACuKZqHJz7y38nX02Y-q-EEX0fao5cgikdtMtiKfZGUhrFHf1g@mail.gmail.com>
To: "Roy T. Fielding" <fielding@gbiv.com>
Cc: Amos Jeffries <squid3@treenet.co.nz>, ietf-http-wg@w3.org
On Mon, Jan 16, 2012 at 2:08 PM, Roy T. Fielding <fielding@gbiv.com> wrote:
> 304 is the answer.

Thanks

> The text on precedence still needs work, but the conditions
> are tested before performing the requested method.

The current spec suggests a much more complex rule. The conditions are
ignored if it can be speculated that the request-sans-conditions would
fail. It's more like:

first, perform the request without conditions
    if it fails, return the failure. (conditions ignored)
    if it succeeds, test the conditions
        if conditions hold, return success
        if conditions fail, *rollback* the work done in first step
            and return 416 or 304

It would be nice if it's simplified as you just stated
    conditions are tested before performing the requested method.

Zhong Yu
Received on Monday, 16 January 2012 20:47:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 06:51:52 GMT