--- Chris Pressey <chris_pressey@...> wrote: > Hello again,
> I think I have come up with an absolutely minimal logic for an
> origin server reacting to If-* headers that remains conditionally
> compliant with RFC 2616, but I would appreciate a sanity check.
>
> The pseudocode is:
Oops, let me make a tiny revision:
> if If-Match is present and it is not "*"
> respond with 412 Precondition Failed
> if If-None-Match is "*"
> begin
> if the request method is neither "GET" nor "HEAD"
> respond with 412 Precondition Failed
> if neither If-Modified-Since nor If-Unmodified-Since is present
> respond with 501 Not Implemented
> end
if If-Unmodified-Since is present
respond with 412 Precondition Failed
> otherwise respond with the requested resource
...in other words, pessimistically assume the resource has changed.
-Chris
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca