Re: Confusion in preconditions

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 UTC