Ignore:
Timestamp:
19/01/13 15:01:51 (10 years ago)
Author:
fielding@…
Message:

clarify that If-Match and If-None-Match use the weak comparison function, since otherwise weak etags would never work; addresses #402

Location:
draft-ietf-httpbis/latest
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • draft-ietf-httpbis/latest/p4-conditional.html

    r2130 r2131  
    941941      <div id="rfc.figure.u.8"></div><pre class="inline"><span id="rfc.iref.g.7"></span>  <a href="#header.if-match" class="smpl">If-Match</a> = "*" / 1#<a href="#header.etag" class="smpl">entity-tag</a>
    942942</pre><p id="rfc.section.3.1.p.4">The If-Match condition is met if and only if any of the entity-tags listed in the If-Match field value match the entity-tag
    943          of the selected representation for the target resource (as per <a href="#entity.tag.comparison" title="Comparison">Section&nbsp;2.3.2</a>), or if "*" is given and any current representation exists for the target resource.
     943         of the selected representation using the weak comparison function (as per <a href="#entity.tag.comparison" title="Comparison">Section&nbsp;2.3.2</a>), or if "*" is given and any current representation exists for the target resource.
    944944      </p>
    945945      <p id="rfc.section.3.1.p.5">If the condition is met, the server <em class="bcp14">MAY</em> perform the request method.
     
    971971      <div id="rfc.figure.u.10"></div><pre class="inline"><span id="rfc.iref.g.8"></span>  <a href="#header.if-none-match" class="smpl">If-None-Match</a> = "*" / 1#<a href="#header.etag" class="smpl">entity-tag</a>
    972972</pre><p id="rfc.section.3.2.p.5">The If-None-Match condition is met if and only if none of the entity-tags listed in the If-None-Match field value match the
    973          entity-tag of the selected representation for the target resource (as per <a href="#entity.tag.comparison" title="Comparison">Section&nbsp;2.3.2</a>), or if "*" is given and no current representation exists for that resource.
     973         entity-tag of the selected representation using the weak comparison function (as per <a href="#entity.tag.comparison" title="Comparison">Section&nbsp;2.3.2</a>), or if "*" is given and no current representation exists for that resource.
    974974      </p>
    975975      <p id="rfc.section.3.2.p.6">If the condition is not met, the server <em class="bcp14">MUST NOT</em> perform the requested method. Instead, if the request method was GET or HEAD, the server <em class="bcp14">SHOULD</em> respond with a <a href="#status.304" class="smpl">304 (Not Modified)</a> status code, including the cache-related header fields (particularly <a href="#header.etag" class="smpl">ETag</a>) of the selected representation that has a matching entity-tag. For all other request methods, the server <em class="bcp14">MUST</em> respond with a <a href="#status.412" class="smpl">412 (Precondition
  • draft-ietf-httpbis/latest/p4-conditional.xml

    r2130 r2131  
    671671   The If-Match condition is met if and only if any of the entity-tags listed
    672672   in the If-Match field value match the entity-tag of the selected
    673    representation for the target resource (as per <xref
     673   representation using the weak comparison function (as per <xref
    674674   target="entity.tag.comparison"/>), or if "*" is given and any current
    675675   representation exists for the target resource.
     
    729729   The If-None-Match condition is met if and only if none of the entity-tags
    730730   listed in the If-None-Match field value match the entity-tag of the selected
    731    representation for the target resource (as per <xref
     731   representation using the weak comparison function (as per <xref
    732732   target="entity.tag.comparison"/>), or if "*" is given and no current
    733733   representation exists for that resource.
Note: See TracChangeset for help on using the changeset viewer.