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

Re: Confusion in preconditions

From: Amos Jeffries <squid3@treenet.co.nz>
Date: Thu, 02 Feb 2012 19:03:51 +1300
Message-ID: <4F2A2747.1020208@treenet.co.nz>
To: Zhong Yu <zhong.j.yu@gmail.com>
CC: ietf-http-wg@w3.org
On 2/02/2012 4:38 a.m., Zhong Yu wrote:
> On Wed, Feb 1, 2012 at 1:39 AM, Amos Jeffries<squid3@treenet.co.nz>  wrote:
>> On 01.02.2012 19:11, Zhong Yu wrote:
>> I am pushing to have the conditionals interpreted as a AND condition between
>> all present conditionals.
>>
>>   if anything needs a special status response ->  do that
>>   if any of the conditions is invalid =>  412 status
>>   if ( (If-Match x) AND (If-None-Match y or z) AND (if-modified-since T) AND
>> ... ) =>  2xx status
>>   otherwise 304 status
> I don't quite understand. According to the current draft -
>
> 1) If there's a single If-Match condition and it tests false, we
> should return 412.

That would be "special status....".

> 2) If there's a single If-None-Match condition and it tests false (and
> the method is GET/HEAD), we should return 304.

"otherwise ..."

>
> Your pseudo code doesn't seem to behave this way.
>
> Zhong yu
Received on Thursday, 2 February 2012 06:04:35 GMT

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