11.07.2015 Views

Network Working Group R. Fielding Request for Comments: 2616 ...

Network Working Group R. Fielding Request for Comments: 2616 ...

Network Working Group R. Fielding Request for Comments: 2616 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Since date is derived from the client's clock without correctionto the server's clock. Corrections <strong>for</strong> different time basesbetween client and server are at best approximate due to networklatency.The result of a request having both an If-Modified-Since header fieldand either an If-Match or an If-Unmodified-Since header fields isundefined by this specification.14.26 If-None-MatchThe If-None-Match request-header field is used with a method to makeit conditional. A client that has one or more entities previouslyobtained from the resource can verify that none of those entities iscurrent by including a list of their associated entity tags in theIf-None-Match header field. The purpose of this feature is to allowefficient updates of cached in<strong>for</strong>mation with a minimum amount oftransaction overhead. It is also used to prevent a method (e.g. PUT)from inadvertently modifying an existing resource when the clientbelieves that the resource does not exist.As a special case, the value "*" matches any current entity of theresource.If-None-Match = "If-None-Match" ":" ( "*" | 1#entity-tag )If any of the entity tags match the entity tag of the entity thatwould have been returned in the response to a similar GET request(without the If-None-Match header) on that resource, or if "*" isgiven and any current entity exists <strong>for</strong> that resource, then theserver MUST NOT per<strong>for</strong>m the requested method, unless required to doso because the resource's modification date fails to match thatsupplied in an If-Modified-Since header field in the request.Instead, if the request method was GET or HEAD, the server SHOULDrespond with a 304 (Not Modified) response, including the cacherelatedheader fields (particularly ETag) of one of the entities thatmatched. For all other request methods, the server MUST respond witha status of 412 (Precondition Failed).See section 13.3.3 <strong>for</strong> rules on how to determine if two entities tagsmatch. The weak comparison function can only be used with GET or HEADrequests.<strong>Fielding</strong>, et al. Standards Track [Page 132]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!