source: draft-ietf-httpbis/05/p4-conditional.html

Last change on this file was 2726, checked in by julian.reschke@…, 9 years ago

update to latest version of rfc2629.xslt, regen all HTML

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/html;charset=utf-8
File size: 94.0 KB
1<!DOCTYPE html
2  PUBLIC "-//W3C//DTD HTML 4.01//EN">
3<html lang="en">
4   <head profile="">
5      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6      <title>HTTP/1.1, part 4: Conditional Requests</title><style type="text/css" title="Xml2Rfc (sans serif)">
7a {
8  text-decoration: none;
10a.smpl {
11  color: black;
13a:hover {
14  text-decoration: underline;
16a:active {
17  text-decoration: underline;
19address {
20  margin-top: 1em;
21  margin-left: 2em;
22  font-style: normal;
24body {
25  color: black;
26  font-family: cambria, helvetica, arial, sans-serif;
27  font-size: 11pt;
28  margin-right: 2em;
30cite {
31  font-style: normal;
33dl {
34  margin-left: 2em;
36ul.empty {
37  list-style-type: none;
39ul.empty li {
40  margin-top: .5em;
42dl p {
43  margin-left: 0em;
45dt {
46  margin-top: .5em;
48h1 {
49  font-size: 130%;
50  line-height: 21pt;
51  page-break-after: avoid;
52} {
54  page-break-before: always;
56h2 {
57  font-size: 120%;
58  line-height: 15pt;
59  page-break-after: avoid;
61h3 {
62  font-size: 110%;
63  page-break-after: avoid;
65h4, h5, h6 {
66  page-break-after: avoid;
68h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
69  color: black;
71img {
72  margin-left: 3em;
74li {
75  margin-left: 2em;
77ol {
78  margin-left: 2em;
79} {
81  list-style-type: lower-alpha;
82} {
84  list-style-type: upper-alpha;
86ol p {
87  margin-left: 0em;
89p {
90  margin-left: 2em;
92pre {
93  margin-left: 3em;
94  background-color: lightyellow;
95  padding: .25em;
96  page-break-inside: avoid;
98pre.text2 {
99  border-style: dotted;
100  border-width: 1px;
101  background-color: #f0f0f0;
102  width: 69em;
104pre.inline {
105  background-color: white;
106  padding: 0em;
108pre.text {
109  border-style: dotted;
110  border-width: 1px;
111  background-color: #f8f8f8;
112  width: 69em;
114pre.drawing {
115  border-style: solid;
116  border-width: 1px;
117  background-color: #f8f8f8;
118  padding: 2em;
120table {
121  margin-left: 2em;
122} {
124  vertical-align: top;
125  border-color: gray;
126} th {
128  border-color: gray;
129} td {
131  border-color: gray;
133table.all {
134  border-style: solid;
135  border-width: 2px;
137table.full {
138  border-style: solid;
139  border-width: 2px;
140} td {
142  vertical-align: top;
144table.all td {
145  border-style: solid;
146  border-width: 1px;
148table.full td {
149  border-style: none solid;
150  border-width: 1px;
151} th {
153  vertical-align: top;
155table.all th {
156  border-style: solid;
157  border-width: 1px;
159table.full th {
160  border-style: solid;
161  border-width: 1px 1px 2px 1px;
163table.headers th {
164  border-style: none none solid none;
165  border-width: 2px;
167table.left {
168  margin-right: auto;
170table.right {
171  margin-left: auto;
172} {
174  margin-left: auto;
175  margin-right: auto;
177caption {
178  caption-side: bottom;
179  font-weight: bold;
180  font-size: 10pt;
181  margin-top: .5em;
184table.header {
185  border-spacing: 1px;
186  width: 95%;
187  font-size: 11pt;
188  color: white;
189} {
191  vertical-align: top;
193td.topnowrap {
194  vertical-align: top;
195  white-space: nowrap;
197table.header td {
198  background-color: gray;
199  width: 50%;
201table.header a {
202  color: white;
204td.reference {
205  vertical-align: top;
206  white-space: nowrap;
207  padding-right: 1em;
209thead {
210  display:table-header-group;
212ul.toc, ul.toc ul {
213  list-style: none;
214  margin-left: 1.5em;
215  padding-left: 0em;
217ul.toc li {
218  line-height: 150%;
219  font-weight: bold;
220  margin-left: 0em;
222ul.toc li li {
223  line-height: normal;
224  font-weight: normal;
225  font-size: 10pt;
226  margin-left: 0em;
228li.excluded {
229  font-size: 0pt;
231ul p {
232  margin-left: 0em;
234.title, .filename, h1, h2, h3, h4 {
235  font-family: candara, helvetica, arial, sans-serif;
237samp, tt, code, pre {
238  font: consolas, monospace;
240ul.ind, ul.ind ul {
241  list-style: none;
242  margin-left: 1.5em;
243  padding-left: 0em;
244  page-break-before: avoid;
246ul.ind li {
247  font-weight: bold;
248  line-height: 200%;
249  margin-left: 0em;
251ul.ind li li {
252  font-weight: normal;
253  line-height: 150%;
254  margin-left: 0em;
256.avoidbreak {
257  page-break-inside: avoid;
259.bcp14 {
260  font-style: normal;
261  text-transform: lowercase;
262  font-variant: small-caps;
264.comment {
265  background-color: yellow;
266} {
268  text-align: center;
270.error {
271  color: red;
272  font-style: italic;
273  font-weight: bold;
275.figure {
276  font-weight: bold;
277  text-align: center;
278  font-size: 10pt;
280.filename {
281  color: #333333;
282  font-size: 75%;
283  font-weight: bold;
284  line-height: 21pt;
285  text-align: center;
287.fn {
288  font-weight: bold;
290.left {
291  text-align: left;
293.right {
294  text-align: right;
296.title {
297  color: green;
298  font-size: 150%;
299  line-height: 18pt;
300  font-weight: bold;
301  text-align: center;
302  margin-top: 36pt;
304.warning {
305  font-size: 130%;
306  background-color: yellow;
310@media print {
311  .noprint {
312    display: none;
313  }
315  a {
316    color: black;
317    text-decoration: none;
318  }
320  table.header {
321    width: 90%;
322  }
324  td.header {
325    width: 50%;
326    color: black;
327    background-color: white;
328    vertical-align: top;
329    font-size: 110%;
330  }
332  ul.toc a:nth-child(2)::after {
333    content: leader('.') target-counter(attr(href), page);
334  }
336  ul.ind li li a {
337    content: target-counter(attr(href), page);
338  }
340  .print2col {
341    column-count: 2;
342    -moz-column-count: 2;
343    column-fill: auto;
344  }
347@page {
348  @top-left {
349       content: "Internet-Draft";
350  }
351  @top-right {
352       content: "November 2008";
353  }
354  @top-center {
355       content: "HTTP/1.1, Part 4";
356  }
357  @bottom-left {
358       content: "Fielding, et al.";
359  }
360  @bottom-center {
361       content: "Expires May 20, 2009";
362  }
363  @bottom-right {
364       content: "[Page " counter(page) "]";
365  }
368@page:first {
369    @top-left {
370      content: normal;
371    }
372    @top-right {
373      content: normal;
374    }
375    @top-center {
376      content: normal;
377    }
379</style><link rel="Contents" href="#rfc.toc">
380      <link rel="Author" href="#rfc.authors">
381      <link rel="Copyright" href="#rfc.copyright">
382      <link rel="Index" href="#rfc.index">
383      <link rel="Chapter" title="1 Introduction" href="#rfc.section.1">
384      <link rel="Chapter" title="2 Notational Conventions and Generic Grammar" href="#rfc.section.2">
385      <link rel="Chapter" title="3 Entity Tags" href="#rfc.section.3">
386      <link rel="Chapter" title="4 Status Code Definitions" href="#rfc.section.4">
387      <link rel="Chapter" title="5 Weak and Strong Validators" href="#rfc.section.5">
388      <link rel="Chapter" title="6 Rules for When to Use Entity Tags and Last-Modified Dates" href="#rfc.section.6">
389      <link rel="Chapter" title="7 Header Field Definitions" href="#rfc.section.7">
390      <link rel="Chapter" title="8 IANA Considerations" href="#rfc.section.8">
391      <link rel="Chapter" title="9 Security Considerations" href="#rfc.section.9">
392      <link rel="Chapter" title="10 Acknowledgments" href="#rfc.section.10">
393      <link rel="Chapter" href="#rfc.section.11" title="11 References">
394      <link rel="Appendix" title="A Compatibility with Previous Versions" href="#rfc.section.A">
395      <link rel="Appendix" title="B Change Log (to be removed by RFC Editor before publication)" href="#rfc.section.B">
396      <meta name="generator" content=", Revision 1.640, 2014/06/13 12:42:58, XSLT vendor: SAXON 8.9 from Saxonica">
397      <link rel="schema.dct" href="">
398      <meta name="dct.creator" content="Fielding, R.">
399      <meta name="dct.creator" content="Gettys, J.">
400      <meta name="dct.creator" content="Mogul, J.">
401      <meta name="dct.creator" content="Frystyk, H.">
402      <meta name="dct.creator" content="Masinter, L.">
403      <meta name="dct.creator" content="Leach, P.">
404      <meta name="dct.creator" content="Berners-Lee, T.">
405      <meta name="dct.creator" content="Lafon, Y.">
406      <meta name="dct.creator" content="Reschke, J. F.">
407      <meta name="dct.identifier" content="urn:ietf:id:draft-ietf-httpbis-p4-conditional-05">
408      <meta name="dct.issued" scheme="ISO8601" content="2008-11-16">
409      <meta name="dct.replaces" content="urn:ietf:rfc:2616">
410      <meta name="dct.abstract" content="The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypermedia information systems. HTTP has been in use by the World Wide Web global information initiative since 1990. This document is Part 4 of the seven-part specification that defines the protocol referred to as &#34;HTTP/1.1&#34; and, taken together, obsoletes RFC 2616. Part 4 defines request header fields for indicating conditional requests and the rules for constructing responses to those requests.">
411      <meta name="description" content="The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypermedia information systems. HTTP has been in use by the World Wide Web global information initiative since 1990. This document is Part 4 of the seven-part specification that defines the protocol referred to as &#34;HTTP/1.1&#34; and, taken together, obsoletes RFC 2616. Part 4 defines request header fields for indicating conditional requests and the rules for constructing responses to those requests.">
412   </head>
413   <body>
414      <table class="header">
415         <tbody>
416            <tr>
417               <td class="left">Network Working Group</td>
418               <td class="right">R. Fielding, Editor</td>
419            </tr>
420            <tr>
421               <td class="left">Internet-Draft</td>
422               <td class="right">Day Software</td>
423            </tr>
424            <tr>
425               <td class="left">Obsoletes: <a href="">2616</a> (if approved)
426               </td>
427               <td class="right">J. Gettys</td>
428            </tr>
429            <tr>
430               <td class="left">Intended status: Standards Track</td>
431               <td class="right">One Laptop per Child</td>
432            </tr>
433            <tr>
434               <td class="left">Expires: May 20, 2009</td>
435               <td class="right">J. Mogul</td>
436            </tr>
437            <tr>
438               <td class="left"></td>
439               <td class="right">HP</td>
440            </tr>
441            <tr>
442               <td class="left"></td>
443               <td class="right">H. Frystyk</td>
444            </tr>
445            <tr>
446               <td class="left"></td>
447               <td class="right">Microsoft</td>
448            </tr>
449            <tr>
450               <td class="left"></td>
451               <td class="right">L. Masinter</td>
452            </tr>
453            <tr>
454               <td class="left"></td>
455               <td class="right">Adobe Systems</td>
456            </tr>
457            <tr>
458               <td class="left"></td>
459               <td class="right">P. Leach</td>
460            </tr>
461            <tr>
462               <td class="left"></td>
463               <td class="right">Microsoft</td>
464            </tr>
465            <tr>
466               <td class="left"></td>
467               <td class="right">T. Berners-Lee</td>
468            </tr>
469            <tr>
470               <td class="left"></td>
471               <td class="right">W3C/MIT</td>
472            </tr>
473            <tr>
474               <td class="left"></td>
475               <td class="right">Y. Lafon, Editor</td>
476            </tr>
477            <tr>
478               <td class="left"></td>
479               <td class="right">W3C</td>
480            </tr>
481            <tr>
482               <td class="left"></td>
483               <td class="right">J. Reschke, Editor</td>
484            </tr>
485            <tr>
486               <td class="left"></td>
487               <td class="right">greenbytes</td>
488            </tr>
489            <tr>
490               <td class="left"></td>
491               <td class="right">November 16, 2008</td>
492            </tr>
493         </tbody>
494      </table>
495      <p class="title">HTTP/1.1, part 4: Conditional Requests<br><span class="filename">draft-ietf-httpbis-p4-conditional-05</span></p>
496      <div id="rfc.status">
497         <h1><a href="#rfc.status">Status of this Memo</a></h1>
498         <p>By submitting this Internet-Draft, each author represents that any applicable patent or other IPR claims of which he or she
499            is aware have been or will be disclosed, and any of which he or she becomes aware will be disclosed, in accordance with Section
500            6 of BCP 79.
501         </p>
502         <p>Internet-Drafts are working documents of the Internet Engineering Task Force (IETF), its areas, and its working groups. Note
503            that other groups may also distribute working documents as Internet-Drafts.
504         </p>
505         <p>Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other
506            documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as “work
507            in progress”.
508         </p>
509         <p>The list of current Internet-Drafts can be accessed at <a href=""></a>.
510         </p>
511         <p>The list of Internet-Draft Shadow Directories can be accessed at <a href=""></a>.
512         </p>
513         <p>This Internet-Draft will expire on May 20, 2009.</p>
514      </div>
515      <h1 id="rfc.abstract"><a href="#rfc.abstract">Abstract</a></h1>
516      <p>The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypermedia information
517         systems. HTTP has been in use by the World Wide Web global information initiative since 1990. This document is Part 4 of the
518         seven-part specification that defines the protocol referred to as "HTTP/1.1" and, taken together, obsoletes RFC 2616. Part
519         4 defines request header fields for indicating conditional requests and the rules for constructing responses to those requests.
520      </p>
521      <h1 id="rfc.note.1"><a href="#rfc.note.1">Editorial Note (To be removed by RFC Editor)</a></h1>
522      <p>Discussion of this draft should take place on the HTTPBIS working group mailing list ( The current issues
523         list is at &lt;<a href=""></a>&gt; and related documents (including fancy diffs) can be found at &lt;<a href=""></a>&gt;.
524      </p>
525      <p>The changes in this draft are summarized in <a href="#changes.since.04" title="Since draft-ietf-httpbis-p4-conditional-04">Appendix&nbsp;B.6</a>.
526      </p>
527      <hr class="noprint">
528      <h1 class="np" id="rfc.toc"><a href="#rfc.toc">Table of Contents</a></h1>
529      <ul class="toc">
530         <li><a href="#rfc.section.1">1.</a>&nbsp;&nbsp;&nbsp;<a href="#introduction">Introduction</a><ul>
531               <li><a href="#rfc.section.1.1">1.1</a>&nbsp;&nbsp;&nbsp;<a href="#intro.requirements">Requirements</a></li>
532            </ul>
533         </li>
534         <li><a href="#rfc.section.2">2.</a>&nbsp;&nbsp;&nbsp;<a href="#notation">Notational Conventions and Generic Grammar</a></li>
535         <li><a href="#rfc.section.3">3.</a>&nbsp;&nbsp;&nbsp;<a href="#entity.tags">Entity Tags</a></li>
536         <li><a href="#rfc.section.4">4.</a>&nbsp;&nbsp;&nbsp;<a href="#rfc.section.4">Status Code Definitions</a><ul>
537               <li><a href="#rfc.section.4.1">4.1</a>&nbsp;&nbsp;&nbsp;<a href="#status.304">304 Not Modified</a></li>
538               <li><a href="#rfc.section.4.2">4.2</a>&nbsp;&nbsp;&nbsp;<a href="#status.412">412 Precondition Failed</a></li>
539            </ul>
540         </li>
541         <li><a href="#rfc.section.5">5.</a>&nbsp;&nbsp;&nbsp;<a href="#weak.and.strong.validators">Weak and Strong Validators</a></li>
542         <li><a href="#rfc.section.6">6.</a>&nbsp;&nbsp;&nbsp;<a href="">Rules for When to Use Entity Tags and Last-Modified Dates</a></li>
543         <li><a href="#rfc.section.7">7.</a>&nbsp;&nbsp;&nbsp;<a href="#header.fields">Header Field Definitions</a><ul>
544               <li><a href="#rfc.section.7.1">7.1</a>&nbsp;&nbsp;&nbsp;<a href="#header.etag">ETag</a></li>
545               <li><a href="#rfc.section.7.2">7.2</a>&nbsp;&nbsp;&nbsp;<a href="#header.if-match">If-Match</a></li>
546               <li><a href="#rfc.section.7.3">7.3</a>&nbsp;&nbsp;&nbsp;<a href="#header.if-modified-since">If-Modified-Since</a></li>
547               <li><a href="#rfc.section.7.4">7.4</a>&nbsp;&nbsp;&nbsp;<a href="#header.if-none-match">If-None-Match</a></li>
548               <li><a href="#rfc.section.7.5">7.5</a>&nbsp;&nbsp;&nbsp;<a href="#header.if-unmodified-since">If-Unmodified-Since</a></li>
549               <li><a href="#rfc.section.7.6">7.6</a>&nbsp;&nbsp;&nbsp;<a href="#header.last-modified">Last-Modified</a></li>
550            </ul>
551         </li>
552         <li><a href="#rfc.section.8">8.</a>&nbsp;&nbsp;&nbsp;<a href="#IANA.considerations">IANA Considerations</a><ul>
553               <li><a href="#rfc.section.8.1">8.1</a>&nbsp;&nbsp;&nbsp;<a href="#message.header.registration">Message Header Registration</a></li>
554            </ul>
555         </li>
556         <li><a href="#rfc.section.9">9.</a>&nbsp;&nbsp;&nbsp;<a href="#security.considerations">Security Considerations</a></li>
557         <li><a href="#rfc.section.10">10.</a>&nbsp;&nbsp;&nbsp;<a href="#ack">Acknowledgments</a></li>
558         <li><a href="#rfc.section.11">11.</a>&nbsp;&nbsp;&nbsp;<a href="#rfc.references">References</a><ul>
559               <li><a href="#rfc.section.11.1">11.1</a>&nbsp;&nbsp;&nbsp;<a href="#rfc.references.1">Normative References</a></li>
560               <li><a href="#rfc.section.11.2">11.2</a>&nbsp;&nbsp;&nbsp;<a href="#rfc.references.2">Informative References</a></li>
561            </ul>
562         </li>
563         <li><a href="#rfc.section.A">A.</a>&nbsp;&nbsp;&nbsp;<a href="#compatibility">Compatibility with Previous Versions</a><ul>
564               <li><a href="#rfc.section.A.1">A.1</a>&nbsp;&nbsp;&nbsp;<a href="#changes.from.rfc.2616">Changes from RFC 2616</a></li>
565            </ul>
566         </li>
567         <li><a href="#rfc.section.B">B.</a>&nbsp;&nbsp;&nbsp;<a href="#change.log">Change Log (to be removed by RFC Editor before publication)</a><ul>
568               <li><a href="#rfc.section.B.1">B.1</a>&nbsp;&nbsp;&nbsp;<a href="#rfc.section.B.1">Since RFC2616</a></li>
569               <li><a href="#rfc.section.B.2">B.2</a>&nbsp;&nbsp;&nbsp;<a href="#rfc.section.B.2">Since draft-ietf-httpbis-p4-conditional-00</a></li>
570               <li><a href="#rfc.section.B.3">B.3</a>&nbsp;&nbsp;&nbsp;<a href="#rfc.section.B.3">Since draft-ietf-httpbis-p4-conditional-01</a></li>
571               <li><a href="#rfc.section.B.4">B.4</a>&nbsp;&nbsp;&nbsp;<a href="#changes.since.02">Since draft-ietf-httpbis-p4-conditional-02</a></li>
572               <li><a href="#rfc.section.B.5">B.5</a>&nbsp;&nbsp;&nbsp;<a href="#changes.since.03">Since draft-ietf-httpbis-p4-conditional-03</a></li>
573               <li><a href="#rfc.section.B.6">B.6</a>&nbsp;&nbsp;&nbsp;<a href="#changes.since.04">Since draft-ietf-httpbis-p4-conditional-04</a></li>
574            </ul>
575         </li>
576         <li><a href="#rfc.index">Index</a></li>
577         <li><a href="#rfc.authors">Authors' Addresses</a></li>
578         <li><a href="#rfc.ipr">Intellectual Property and Copyright Statements</a></li>
579      </ul>
580      <div id="introduction">
581         <h1 id="rfc.section.1" class="np"><a href="#rfc.section.1">1.</a>&nbsp;<a href="#introduction">Introduction</a></h1>
582         <p id="rfc.section.1.p.1">This document defines HTTP/1.1 response metadata for indicating potential changes to payload content, including modification
583            time stamps and opaque entity-tags, and the HTTP conditional request mechanisms that allow preconditions to be placed on a
584            request method. Conditional GET requests allow for efficient cache updates. Other conditional request methods are used to
585            protect against overwriting or misunderstanding the state of a resource that has been changed unbeknownst to the requesting
586            client.
587         </p>
588         <p id="rfc.section.1.p.2">This document is currently disorganized in order to minimize the changes between drafts and enable reviewers to see the smaller
589            errata changes. The next draft will reorganize the sections to better reflect the content. In particular, the sections on
590            resource metadata will be discussed first and then followed by each conditional request-header, concluding with a definition
591            of precedence and the expectation of ordering strong validator checks before weak validator checks. It is likely that more
592            content from <a href="#Part6" id="rfc.xref.Part6.1"><cite title="HTTP/1.1, part 6: Caching">[Part6]</cite></a> will migrate to this part, where appropriate. The current mess reflects how widely dispersed these topics and associated requirements
593            had become in <a href="#RFC2616" id="rfc.xref.RFC2616.1"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2616]</cite></a>.
594         </p>
595         <div id="intro.requirements">
596            <h2 id="rfc.section.1.1"><a href="#rfc.section.1.1">1.1</a>&nbsp;<a href="#intro.requirements">Requirements</a></h2>
597            <p id="rfc.section.1.1.p.1">The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL"
598               in this document are to be interpreted as described in <a href="#RFC2119" id="rfc.xref.RFC2119.1"><cite title="Key words for use in RFCs to Indicate Requirement Levels">[RFC2119]</cite></a>.
599            </p>
600            <p id="rfc.section.1.1.p.2">An implementation is not compliant if it fails to satisfy one or more of the <em class="bcp14">MUST</em> or <em class="bcp14">REQUIRED</em> level requirements for the protocols it implements. An implementation that satisfies all the <em class="bcp14">MUST</em> or <em class="bcp14">REQUIRED</em> level and all the <em class="bcp14">SHOULD</em> level requirements for its protocols is said to be "unconditionally compliant"; one that satisfies all the <em class="bcp14">MUST</em> level requirements but not all the <em class="bcp14">SHOULD</em> level requirements for its protocols is said to be "conditionally compliant."
601            </p>
602         </div>
603      </div>
604      <div id="notation">
605         <h1 id="rfc.section.2"><a href="#rfc.section.2">2.</a>&nbsp;<a href="#notation">Notational Conventions and Generic Grammar</a></h1>
606         <p id="rfc.section.2.p.1">This specification uses the ABNF syntax defined in <a href="p1-messaging.html#notation.abnf" title="ABNF Extension: #rule">Section 2.1</a> of <a href="#Part1" id="rfc.xref.Part1.1"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a> and the core rules defined in <a href="p1-messaging.html#basic.rules" title="Basic Rules">Section 2.2</a> of <a href="#Part1" id="rfc.xref.Part1.2"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>:
607         </p>
608         <div id="rfc.figure.u.1"></div><pre class="inline">  <a href="#notation" class="smpl">quoted-string</a> = &lt;quoted-string, defined in <a href="#Part1" id="rfc.xref.Part1.3"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>, <a href="p1-messaging.html#basic.rules" title="Basic Rules">Section 2.2</a>&gt;
609  <a href="#notation" class="smpl">OWS</a>           = &lt;OWS, defined in <a href="#Part1" id="rfc.xref.Part1.4"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>, <a href="p1-messaging.html#basic.rules" title="Basic Rules">Section 2.2</a>&gt;
610</pre><div id="abnf.dependencies">
611            <p id="rfc.section.2.p.3"> The ABNF rules below are defined in other parts:</p>
612         </div>
613         <div id="rfc.figure.u.2"></div><pre class="inline">  <a href="#abnf.dependencies" class="smpl">HTTP-date</a>     = &lt;HTTP-date, defined in <a href="#Part1" id="rfc.xref.Part1.5"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>, <a href="" title="Full Date">Section 3.3.1</a>&gt;
615      <div id="entity.tags">
616         <h1 id="rfc.section.3"><a href="#rfc.section.3">3.</a>&nbsp;<a href="#entity.tags">Entity Tags</a></h1>
617         <p id="rfc.section.3.p.1">Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the
618            ETag (<a href="#header.etag" id="rfc.xref.header.etag.1" title="ETag">Section&nbsp;7.1</a>), If-Match (<a href="#header.if-match" id="rfc.xref.header.if-match.1" title="If-Match">Section&nbsp;7.2</a>), If-None-Match (<a href="#header.if-none-match" id="rfc.xref.header.if-none-match.1" title="If-None-Match">Section&nbsp;7.4</a>), and If-Range (<a href="p5-range.html#header.if-range" title="If-Range">Section 6.3</a> of <a href="#Part5" id="rfc.xref.Part5.1"><cite title="HTTP/1.1, part 5: Range Requests and Partial Responses">[Part5]</cite></a>) header fields. The definition of how they are used and compared as cache validators is in <a href="#weak.and.strong.validators" title="Weak and Strong Validators">Section&nbsp;5</a>. An entity tag consists of an opaque quoted string, possibly prefixed by a weakness indicator.
619         </p>
620         <div id="rfc.figure.u.3"></div><pre class="inline"><span id="rfc.iref.g.1"></span><span id="rfc.iref.g.2"></span><span id="rfc.iref.g.3"></span>  <a href="#entity.tags" class="smpl">entity-tag</a> = [ <a href="#entity.tags" class="smpl">weak</a> ] <a href="#entity.tags" class="smpl">opaque-tag</a>
621  <a href="#entity.tags" class="smpl">weak</a>       = "W/"
622  <a href="#entity.tags" class="smpl">opaque-tag</a> = <a href="#notation" class="smpl">quoted-string</a>
623</pre><p id="rfc.section.3.p.3">A "strong entity tag" <em class="bcp14">MAY</em> be shared by two entities of a resource only if they are equivalent by octet equality.
624         </p>
625         <p id="rfc.section.3.p.4">A "weak entity tag," indicated by the "W/" prefix, <em class="bcp14">MAY</em> be shared by two entities of a resource only if the entities are equivalent and could be substituted for each other with no
626            significant change in semantics. A weak entity tag can only be used for weak comparison.
627         </p>
628         <p id="rfc.section.3.p.5">An entity tag <em class="bcp14">MUST</em> be unique across all versions of all entities associated with a particular resource. A given entity tag value <em class="bcp14">MAY</em> be used for entities obtained by requests on different URIs. The use of the same entity tag value in conjunction with entities
629            obtained by requests on different URIs does not imply the equivalence of those entities.
630         </p>
631      </div>
632      <div>
633         <h1 id="rfc.section.4"><a href="#rfc.section.4">4.</a>&nbsp;Status Code Definitions
634         </h1>
635         <div id="status.304">
636            <div id="rfc.iref.3.1"></div>
637            <div id="rfc.iref.s.1"></div>
638            <h2 id="rfc.section.4.1"><a href="#rfc.section.4.1">4.1</a>&nbsp;<a href="#status.304">304 Not Modified</a></h2>
639            <p id="rfc.section.4.1.p.1">If the client has performed a conditional GET request and access is allowed, but the document has not been modified, the server <em class="bcp14">SHOULD</em> respond with this status code. The 304 response <em class="bcp14">MUST NOT</em> contain a message-body, and thus is always terminated by the first empty line after the header fields.
640            </p>
641            <p id="rfc.section.4.1.p.2">The response <em class="bcp14">MUST</em> include the following header fields:
642            </p>
643            <ul>
644               <li>
645                  <p>Date, unless its omission is required by <a href="p1-messaging.html#clockless.origin.server.operation" title="Clockless Origin Server Operation">Section 8.3.1</a> of <a href="#Part1" id="rfc.xref.Part1.6"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>.
646                  </p>
647                  <p>If a clockless origin server obeys these rules, and proxies and clients add their own Date to any response received without
648                     one (as already specified by <a href="" title="Date">Section 8.3</a> of <a href="#Part1" id="rfc.xref.Part1.7"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>, caches will operate correctly.
649                  </p>
650               </li>
651               <li>
652                  <p>ETag and/or Content-Location, if the header would have been sent in a 200 response to the same request.</p>
653               </li>
654               <li>
655                  <p>Expires, Cache-Control, and/or Vary, if the field-value might differ from that sent in any previous response for the same
656                     variant.
657                  </p>
658               </li>
659            </ul>
660            <p id="rfc.section.4.1.p.3">If the conditional GET used a strong cache validator (see <a href="#weak.and.strong.validators" title="Weak and Strong Validators">Section&nbsp;5</a>), the response <em class="bcp14">SHOULD NOT</em> include other entity-headers. Otherwise (i.e., the conditional GET used a weak validator), the response <em class="bcp14">MUST NOT</em> include other entity-headers; this prevents inconsistencies between cached entity-bodies and updated headers.
661            </p>
662            <p id="rfc.section.4.1.p.4">If a 304 response indicates an entity not currently cached, then the cache <em class="bcp14">MUST</em> disregard the response and repeat the request without the conditional.
663            </p>
664            <p id="rfc.section.4.1.p.5">If a cache uses a received 304 response to update a cache entry, the cache <em class="bcp14">MUST</em> update the entry to reflect any new field values given in the response.
665            </p>
666         </div>
667         <div id="status.412">
668            <div id="rfc.iref.4.1"></div>
669            <div id="rfc.iref.s.2"></div>
670            <h2 id="rfc.section.4.2"><a href="#rfc.section.4.2">4.2</a>&nbsp;<a href="#status.412">412 Precondition Failed</a></h2>
671            <p id="rfc.section.4.2.p.1">The precondition given in one or more of the request-header fields evaluated to false when it was tested on the server. This
672               response code allows the client to place preconditions on the current resource metainformation (header field data) and thus
673               prevent the requested method from being applied to a resource other than the one intended.
674            </p>
675         </div>
676      </div>
677      <div id="weak.and.strong.validators">
678         <h1 id="rfc.section.5"><a href="#rfc.section.5">5.</a>&nbsp;<a href="#weak.and.strong.validators">Weak and Strong Validators</a></h1>
679         <p id="rfc.section.5.p.1">Since both origin servers and caches will compare two validators to decide if they represent the same or different entities,
680            one normally would expect that if the entity (the entity-body or any entity-headers) changes in any way, then the associated
681            validator would change as well. If this is true, then we call this validator a "strong validator."
682         </p>
683         <p id="rfc.section.5.p.2">However, there might be cases when a server prefers to change the validator only on semantically significant changes, and
684            not when insignificant aspects of the entity change. A validator that does not always change when the resource changes is
685            a "weak validator."
686         </p>
687         <p id="rfc.section.5.p.3">Entity tags are normally "strong validators," but the protocol provides a mechanism to tag an entity tag as "weak." One can
688            think of a strong validator as one that changes whenever the bits of an entity changes, while a weak value changes whenever
689            the meaning of an entity changes. Alternatively, one can think of a strong validator as part of an identifier for a specific
690            entity, while a weak validator is part of an identifier for a set of semantically equivalent entities.
691         </p>
692         <ul class="empty">
693            <li><b>Note:</b> One example of a strong validator is an integer that is incremented in stable storage every time an entity is changed.
694            </li>
695            <li>An entity's modification time, if represented with one-second resolution, could be a weak validator, since it is possible
696               that the resource might be modified twice during a single second.
697            </li>
698            <li>Support for weak validators is optional. However, weak validators allow for more efficient caching of equivalent objects;
699               for example, a hit counter on a site is probably good enough if it is updated every few days or weeks, and any value during
700               that period is likely "good enough" to be equivalent.
701            </li>
702         </ul>
703         <p id="rfc.section.5.p.4">A "use" of a validator is either when a client generates a request and includes the validator in a validating header field,
704            or when a server compares two validators.
705         </p>
706         <p id="rfc.section.5.p.5">Strong validators are usable in any context. Weak validators are only usable in contexts that do not depend on exact equality
707            of an entity. For example, either kind is usable for a conditional GET of a full entity. However, only a strong validator
708            is usable for a sub-range retrieval, since otherwise the client might end up with an internally inconsistent entity.
709         </p>
710         <p id="rfc.section.5.p.6">Clients <em class="bcp14">MUST NOT</em> use weak validators in range requests (<a href="#Part5" id="rfc.xref.Part5.2"><cite title="HTTP/1.1, part 5: Range Requests and Partial Responses">[Part5]</cite></a>).
711         </p>
712         <p id="rfc.section.5.p.7">The only function that HTTP/1.1 defines on validators is comparison. There are two validator comparison functions, depending
713            on whether the comparison context allows the use of weak validators or not:
714         </p>
715         <ul>
716            <li>The strong comparison function: in order to be considered equal, both opaque-tags <em class="bcp14">MUST</em> be identical character-by-character, and both <em class="bcp14">MUST NOT</em> be weak.
717            </li>
718            <li>The weak comparison function: in order to be considered equal, both opaque-tags <em class="bcp14">MUST</em> be identical character-by-character.
719            </li>
720         </ul>
721         <p id="rfc.section.5.p.8">The example below shows the results for a set of entity tag pairs, and both the weak and strong comparison function results:</p>
722         <div id="rfc.table.u.1">
723            <table class="tt full left" cellpadding="3" cellspacing="0">
724               <thead>
725                  <tr>
726                     <th>ETag 1</th>
727                     <th>ETag 2</th>
728                     <th>Strong Comparison</th>
729                     <th>Weak Comparison</th>
730                  </tr>
731               </thead>
732               <tbody>
733                  <tr>
734                     <td class="left">W/"1"</td>
735                     <td class="left">W/"1"</td>
736                     <td class="left">no match</td>
737                     <td class="left">match</td>
738                  </tr>
739                  <tr>
740                     <td class="left">W/"1"</td>
741                     <td class="left">W/"2"</td>
742                     <td class="left">no match</td>
743                     <td class="left">no match</td>
744                  </tr>
745                  <tr>
746                     <td class="left">W/"1"</td>
747                     <td class="left">"1"</td>
748                     <td class="left">no match</td>
749                     <td class="left">match</td>
750                  </tr>
751                  <tr>
752                     <td class="left">"1"</td>
753                     <td class="left">"1"</td>
754                     <td class="left">match</td>
755                     <td class="left">match</td>
756                  </tr>
757               </tbody>
758            </table>
759         </div>
760         <p id="rfc.section.5.p.9">An entity tag is strong unless it is explicitly tagged as weak. <a href="#entity.tags" title="Entity Tags">Section&nbsp;3</a> gives the syntax for entity tags.
761         </p>
762         <p id="rfc.section.5.p.10">A Last-Modified time, when used as a validator in a request, is implicitly weak unless it is possible to deduce that it is
763            strong, using the following rules:
764         </p>
765         <ul>
766            <li>The validator is being compared by an origin server to the actual current validator for the entity and,</li>
767            <li>That origin server reliably knows that the associated entity did not change twice during the second covered by the presented
768               validator.
769            </li>
770         </ul>
771         <p id="rfc.section.5.p.11">or </p>
772         <ul>
773            <li>The validator is about to be used by a client in an If-Modified-Since or If-Unmodified-Since header, because the client has
774               a cache entry for the associated entity, and
775            </li>
776            <li>That cache entry includes a Date value, which gives the time when the origin server sent the original response, and</li>
777            <li>The presented Last-Modified time is at least 60 seconds before the Date value.</li>
778         </ul>
779         <p id="rfc.section.5.p.12">or </p>
780         <ul>
781            <li>The validator is being compared by an intermediate cache to the validator stored in its cache entry for the entity, and</li>
782            <li>That cache entry includes a Date value, which gives the time when the origin server sent the original response, and</li>
783            <li>The presented Last-Modified time is at least 60 seconds before the Date value.</li>
784         </ul>
785         <p id="rfc.section.5.p.13">This method relies on the fact that if two different responses were sent by the origin server during the same second, but
786            both had the same Last-Modified time, then at least one of those responses would have a Date value equal to its Last-Modified
787            time. The arbitrary 60-second limit guards against the possibility that the Date and Last-Modified values are generated from
788            different clocks, or at somewhat different times during the preparation of the response. An implementation <em class="bcp14">MAY</em> use a value larger than 60 seconds, if it is believed that 60 seconds is too short.
789         </p>
790         <p id="rfc.section.5.p.14">If a client wishes to perform a sub-range retrieval on a value for which it has only a Last-Modified time and no opaque validator,
791            it <em class="bcp14">MAY</em> do this only if the Last-Modified time is strong in the sense described here.
792         </p>
793         <p id="rfc.section.5.p.15">A cache or origin server receiving a conditional range request (<a href="#Part5" id="rfc.xref.Part5.3"><cite title="HTTP/1.1, part 5: Range Requests and Partial Responses">[Part5]</cite></a>) <em class="bcp14">MUST</em> use the strong comparison function to evaluate the condition.
794         </p>
795         <p id="rfc.section.5.p.16">These rules allow HTTP/1.1 caches and clients to safely perform sub-range retrievals on values that have been obtained from
796            HTTP/1.0 servers.
797         </p>
798      </div>
799      <div id="">
800         <h1 id="rfc.section.6"><a href="#rfc.section.6">6.</a>&nbsp;<a href="">Rules for When to Use Entity Tags and Last-Modified Dates</a></h1>
801         <p id="rfc.section.6.p.1">We adopt a set of rules and recommendations for origin servers, clients, and caches regarding when various validator types
802            ought to be used, and for what purposes.
803         </p>
804         <p id="rfc.section.6.p.2">HTTP/1.1 origin servers: </p>
805         <ul>
806            <li><em class="bcp14">SHOULD</em> send an entity tag validator unless it is not feasible to generate one.
807            </li>
808            <li><em class="bcp14">MAY</em> send a weak entity tag instead of a strong entity tag, if performance considerations support the use of weak entity tags,
809               or if it is unfeasible to send a strong entity tag.
810            </li>
811            <li><em class="bcp14">SHOULD</em> send a Last-Modified value if it is feasible to send one, unless the risk of a breakdown in semantic transparency that could
812               result from using this date in an If-Modified-Since header would lead to serious problems.
813            </li>
814         </ul>
815         <p id="rfc.section.6.p.3">In other words, the preferred behavior for an HTTP/1.1 origin server is to send both a strong entity tag and a Last-Modified
816            value.
817         </p>
818         <p id="rfc.section.6.p.4">In order to be legal, a strong entity tag <em class="bcp14">MUST</em> change whenever the associated entity changes in any way. A weak entity tag <em class="bcp14">SHOULD</em> change whenever the associated entity changes in a semantically significant way.
819         </p>
820         <ul class="empty">
821            <li><b>Note:</b> in order to provide semantically transparent caching, an origin server must avoid reusing a specific strong entity tag value
822               for two different entities, or reusing a specific weak entity tag value for two semantically different entities. Cache entries
823               might persist for arbitrarily long periods, regardless of expiration times, so it might be inappropriate to expect that a
824               cache will never again attempt to validate an entry using a validator that it obtained at some point in the past.
825            </li>
826         </ul>
827         <p id="rfc.section.6.p.5">HTTP/1.1 clients: </p>
828         <ul>
829            <li>If an entity tag has been provided by the origin server, <em class="bcp14">MUST</em> use that entity tag in any cache-conditional request (using If-Match or If-None-Match).
830            </li>
831            <li>If only a Last-Modified value has been provided by the origin server, <em class="bcp14">SHOULD</em> use that value in non-subrange cache-conditional requests (using If-Modified-Since).
832            </li>
833            <li>If only a Last-Modified value has been provided by an HTTP/1.0 origin server, <em class="bcp14">MAY</em> use that value in subrange cache-conditional requests (using If-Unmodified-Since:). The user agent <em class="bcp14">SHOULD</em> provide a way to disable this, in case of difficulty.
834            </li>
835            <li>If both an entity tag and a Last-Modified value have been provided by the origin server, <em class="bcp14">SHOULD</em> use both validators in cache-conditional requests. This allows both HTTP/1.0 and HTTP/1.1 caches to respond appropriately.
836            </li>
837         </ul>
838         <p id="rfc.section.6.p.6">An HTTP/1.1 origin server, upon receiving a conditional request that includes both a Last-Modified date (e.g., in an If-Modified-Since
839            or If-Unmodified-Since header field) and one or more entity tags (e.g., in an If-Match, If-None-Match, or If-Range header
840            field) as cache validators, <em class="bcp14">MUST NOT</em> return a response status of 304 (Not Modified) unless doing so is consistent with all of the conditional header fields in
841            the request.
842         </p>
843         <p id="rfc.section.6.p.7">An HTTP/1.1 caching proxy, upon receiving a conditional request that includes both a Last-Modified date and one or more entity
844            tags as cache validators, <em class="bcp14">MUST NOT</em> return a locally cached response to the client unless that cached response is consistent with all of the conditional header
845            fields in the request.
846         </p>
847         <ul class="empty">
848            <li><b>Note:</b> The general principle behind these rules is that HTTP/1.1 servers and clients should transmit as much non-redundant information
849               as is available in their responses and requests. HTTP/1.1 systems receiving this information will make the most conservative
850               assumptions about the validators they receive.
851            </li>
852            <li>HTTP/1.0 clients and caches will ignore entity tags. Generally, last-modified values received or used by these systems will
853               support transparent and efficient caching, and so HTTP/1.1 origin servers should provide Last-Modified values. In those rare
854               cases where the use of a Last-Modified value as a validator by an HTTP/1.0 system could result in a serious problem, then
855               HTTP/1.1 origin servers should not provide one.
856            </li>
857         </ul>
858      </div>
859      <div id="header.fields">
860         <h1 id="rfc.section.7"><a href="#rfc.section.7">7.</a>&nbsp;<a href="#header.fields">Header Field Definitions</a></h1>
861         <p id="rfc.section.7.p.1">This section defines the syntax and semantics of HTTP/1.1 header fields related to conditional requests.</p>
862         <p id="rfc.section.7.p.2">For entity-header fields, both sender and recipient refer to either the client or the server, depending on who sends and who
863            receives the entity.
864         </p>
865         <div id="header.etag">
866            <div id="rfc.iref.e.1"></div>
867            <div id="rfc.iref.h.1"></div>
868            <h2 id="rfc.section.7.1"><a href="#rfc.section.7.1">7.1</a>&nbsp;<a href="#header.etag">ETag</a></h2>
869            <p id="rfc.section.7.1.p.1">The response-header field "ETag" provides the current value of the entity tag (see <a href="#entity.tags" title="Entity Tags">Section&nbsp;3</a>) for the requested variant. The headers used with entity tags are described in Sections <a href="#header.if-match" id="rfc.xref.header.if-match.2" title="If-Match">7.2</a> and <a href="#header.if-none-match" id="rfc.xref.header.if-none-match.2" title="If-None-Match">7.4</a> of this document, and in <a href="p5-range.html#header.if-range" title="If-Range">Section 6.3</a> of <a href="#Part5" id="rfc.xref.Part5.4"><cite title="HTTP/1.1, part 5: Range Requests and Partial Responses">[Part5]</cite></a>. The entity tag <em class="bcp14">MAY</em> be used for comparison with other entities from the same resource (see <a href="#weak.and.strong.validators" title="Weak and Strong Validators">Section&nbsp;5</a>).
870            </p>
871            <div id="rfc.figure.u.4"></div><pre class="inline"><span id="rfc.iref.g.4"></span><span id="rfc.iref.g.5"></span>  <a href="#header.etag" class="smpl">ETag</a>   = "ETag" ":" <a href="#notation" class="smpl">OWS</a> <a href="#header.etag" class="smpl">ETag-v</a>
872  <a href="#header.etag" class="smpl">ETag-v</a> = <a href="#entity.tags" class="smpl">entity-tag</a>
873</pre><div id="rfc.figure.u.5"></div>
874            <p>Examples:</p><pre class="text">  ETag: "xyzzy"
875  ETag: W/"xyzzy"
876  ETag: ""
877</pre><p id="rfc.section.7.1.p.4">The ETag response-header field value, an entity tag, provides for an "opaque" cache validator. This might allow more reliable
878               validation in situations where it is inconvenient to store modification dates, where the one-second resolution of HTTP date
879               values is not sufficient, or where the origin server wishes to avoid certain paradoxes that might arise from the use of modification
880               dates.
881            </p>
882            <p id="rfc.section.7.1.p.5">The principle behind entity tags is that only the service author knows the semantics of a resource well enough to select an
883               appropriate cache validation mechanism, and the specification of any validator comparison function more complex than byte-equality
884               would open up a can of worms. Thus, comparisons of any other headers (except Last-Modified, for compatibility with HTTP/1.0)
885               are never used for purposes of validating a cache entry.
886            </p>
887         </div>
888         <div id="header.if-match">
889            <div id="rfc.iref.i.1"></div>
890            <div id="rfc.iref.h.2"></div>
891            <h2 id="rfc.section.7.2"><a href="#rfc.section.7.2">7.2</a>&nbsp;<a href="#header.if-match">If-Match</a></h2>
892            <p id="rfc.section.7.2.p.1">The request-header field "If-Match" is used with a method to make it conditional. A client that has one or more entities previously
893               obtained from the resource can verify that one of those entities is current by including a list of their associated entity
894               tags in the If-Match header field. Entity tags are defined in <a href="#entity.tags" title="Entity Tags">Section&nbsp;3</a>. The purpose of this feature is to allow efficient updates of cached information with a minimum amount of transaction overhead.
895               It is also used, on updating requests, to prevent inadvertent modification of the wrong version of a resource. As a special
896               case, the value "*" matches any current entity of the resource.
897            </p>
898            <div id="rfc.figure.u.6"></div><pre class="inline"><span id="rfc.iref.g.6"></span><span id="rfc.iref.g.7"></span>  <a href="#header.if-match" class="smpl">If-Match</a>   = "If-Match" ":" <a href="#notation" class="smpl">OWS</a> <a href="#header.if-match" class="smpl">If-Match-v</a>
899  <a href="#header.if-match" class="smpl">If-Match-v</a> = "*" / 1#<a href="#entity.tags" class="smpl">entity-tag</a>
900</pre><p id="rfc.section.7.2.p.3">If any of the entity tags match the entity tag of the entity that would have been returned in the response to a similar GET
901               request (without the If-Match header) on that resource, or if "*" is given and any current entity exists for that resource,
902               then the server <em class="bcp14">MAY</em> perform the requested method as if the If-Match header field did not exist.
903            </p>
904            <p id="rfc.section.7.2.p.4">A server <em class="bcp14">MUST</em> use the strong comparison function (see <a href="#weak.and.strong.validators" title="Weak and Strong Validators">Section&nbsp;5</a>) to compare the entity tags in If-Match.
905            </p>
906            <p id="rfc.section.7.2.p.5">If none of the entity tags match, or if "*" is given and no current entity exists, the server <em class="bcp14">MUST NOT</em> perform the requested method, and <em class="bcp14">MUST</em> return a 412 (Precondition Failed) response. This behavior is most useful when the client wants to prevent an updating method,
907               such as PUT, from modifying a resource that has changed since the client last retrieved it.
908            </p>
909            <p id="rfc.section.7.2.p.6">If the request would, without the If-Match header field, result in anything other than a 2xx or 412 status, then the If-Match
910               header <em class="bcp14">MUST</em> be ignored.
911            </p>
912            <p id="rfc.section.7.2.p.7">The meaning of "If-Match: *" is that the method <em class="bcp14">SHOULD</em> be performed if the representation selected by the origin server (or by a cache, possibly using the Vary mechanism, see <a href="p6-cache.html#header.vary" title="Vary">Section 16.5</a> of <a href="#Part6" id="rfc.xref.Part6.2"><cite title="HTTP/1.1, part 6: Caching">[Part6]</cite></a>) exists, and <em class="bcp14">MUST NOT</em> be performed if the representation does not exist.
913            </p>
914            <p id="rfc.section.7.2.p.8">A request intended to update a resource (e.g., a PUT) <em class="bcp14">MAY</em> include an If-Match header field to signal that the request method <em class="bcp14">MUST NOT</em> be applied if the entity corresponding to the If-Match value (a single entity tag) is no longer a representation of that resource.
915               This allows the user to indicate that they do not wish the request to be successful if the resource has been changed without
916               their knowledge. Examples:
917            </p>
918            <div id="rfc.figure.u.7"></div><pre class="text">  If-Match: "xyzzy"
919  If-Match: "xyzzy", "r2d2xxxx", "c3piozzzz"
920  If-Match: *
921</pre><p id="rfc.section.7.2.p.10">The result of a request having both an If-Match header field and either an If-None-Match or an If-Modified-Since header fields
922               is undefined by this specification.
923            </p>
924         </div>
925         <div id="header.if-modified-since">
926            <div id="rfc.iref.i.2"></div>
927            <div id="rfc.iref.h.3"></div>
928            <h2 id="rfc.section.7.3"><a href="#rfc.section.7.3">7.3</a>&nbsp;<a href="#header.if-modified-since">If-Modified-Since</a></h2>
929            <p id="rfc.section.7.3.p.1">The request-header field "If-Modified-Since" is used with a method to make it conditional: if the requested variant has not
930               been modified since the time specified in this field, an entity will not be returned from the server; instead, a 304 (Not
931               Modified) response will be returned without any message-body.
932            </p>
933            <div id="rfc.figure.u.8"></div><pre class="inline"><span id="rfc.iref.g.8"></span><span id="rfc.iref.g.9"></span>  <a href="#header.if-modified-since" class="smpl">If-Modified-Since</a>   = "If-Modified-Since" ":" <a href="#notation" class="smpl">OWS</a>
934                        <a href="#header.if-modified-since" class="smpl">If-Modified-Since-v</a>
935  <a href="#header.if-modified-since" class="smpl">If-Modified-Since-v</a> = <a href="#abnf.dependencies" class="smpl">HTTP-date</a>
936</pre><p id="rfc.section.7.3.p.3">An example of the field is:</p>
937            <div id="rfc.figure.u.9"></div><pre class="text">  If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT
938</pre><p id="rfc.section.7.3.p.5">A GET method with an If-Modified-Since header and no Range header requests that the identified entity be transferred only
939               if it has been modified since the date given by the If-Modified-Since header. The algorithm for determining this includes
940               the following cases:
941            </p>
942            <ol>
943               <li>If the request would normally result in anything other than a 200 (OK) status, or if the passed If-Modified-Since date is
944                  invalid, the response is exactly the same as for a normal GET. A date which is later than the server's current time is invalid.
945               </li>
946               <li>If the variant has been modified since the If-Modified-Since date, the response is exactly the same as for a normal GET.</li>
947               <li>If the variant has not been modified since a valid If-Modified-Since date, the server <em class="bcp14">SHOULD</em> return a 304 (Not Modified) response.
948               </li>
949            </ol>
950            <p id="rfc.section.7.3.p.6">The purpose of this feature is to allow efficient updates of cached information with a minimum amount of transaction overhead. </p>
951            <ul class="empty">
952               <li><b>Note:</b> The Range request-header field modifies the meaning of If-Modified-Since; see <a href="p5-range.html#header.range" title="Range">Section 6.4</a> of <a href="#Part5" id="rfc.xref.Part5.5"><cite title="HTTP/1.1, part 5: Range Requests and Partial Responses">[Part5]</cite></a> for full details.
953               </li>
954               <li><b>Note:</b> If-Modified-Since times are interpreted by the server, whose clock might not be synchronized with the client.
955               </li>
956               <li><b>Note:</b> When handling an If-Modified-Since header field, some servers will use an exact date comparison function, rather than a less-than
957                  function, for deciding whether to send a 304 (Not Modified) response. To get best results when sending an If-Modified-Since
958                  header field for cache validation, clients are advised to use the exact date string received in a previous Last-Modified header
959                  field whenever possible.
960               </li>
961               <li><b>Note:</b> If a client uses an arbitrary date in the If-Modified-Since header instead of a date taken from the Last-Modified header for
962                  the same request, the client should be aware of the fact that this date is interpreted in the server's understanding of time.
963                  The client should consider unsynchronized clocks and rounding problems due to the different encodings of time between the
964                  client and server. This includes the possibility of race conditions if the document has changed between the time it was first
965                  requested and the If-Modified-Since date of a subsequent request, and the possibility of clock-skew-related problems if the
966                  If-Modified-Since date is derived from the client's clock without correction to the server's clock. Corrections for different
967                  time bases between client and server are at best approximate due to network latency.
968               </li>
969            </ul>
970            <p id="rfc.section.7.3.p.7">The result of a request having both an If-Modified-Since header field and either an If-Match or an If-Unmodified-Since header
971               fields is undefined by this specification.
972            </p>
973         </div>
974         <div id="header.if-none-match">
975            <div id="rfc.iref.i.3"></div>
976            <div id="rfc.iref.h.4"></div>
977            <h2 id="rfc.section.7.4"><a href="#rfc.section.7.4">7.4</a>&nbsp;<a href="#header.if-none-match">If-None-Match</a></h2>
978            <p id="rfc.section.7.4.p.1">The request-header field "If-None-Match" is used with a method to make it conditional. A client that has one or more entities
979               previously obtained from the resource can verify that none of those entities is current by including a list of their associated
980               entity tags in the If-None-Match header field. The purpose of this feature is to allow efficient updates of cached information
981               with a minimum amount of transaction overhead. It is also used to prevent a method (e.g. PUT) from inadvertently modifying
982               an existing resource when the client believes that the resource does not exist.
983            </p>
984            <p id="rfc.section.7.4.p.2">As a special case, the value "*" matches any current entity of the resource.</p>
985            <div id="rfc.figure.u.10"></div><pre class="inline"><span id="rfc.iref.g.10"></span><span id="rfc.iref.g.11"></span>  <a href="#header.if-none-match" class="smpl">If-None-Match</a>   = "If-None-Match" ":" <a href="#notation" class="smpl">OWS</a> <a href="#header.if-none-match" class="smpl">If-None-Match-v</a>
986  <a href="#header.if-none-match" class="smpl">If-None-Match-v</a> = "*" / 1#<a href="#entity.tags" class="smpl">entity-tag</a>
987</pre><p id="rfc.section.7.4.p.4">If any of the entity tags match the entity tag of the entity that would have been returned in the response to a similar GET
988               request (without the If-None-Match header) on that resource, or if "*" is given and any current entity exists for that resource,
989               then the server <em class="bcp14">MUST NOT</em> perform the requested method, unless required to do so because the resource's modification date fails to match that supplied
990               in an If-Modified-Since header field in the request. Instead, if the request method was GET or HEAD, the server <em class="bcp14">SHOULD</em> respond with a 304 (Not Modified) response, including the cache-related header fields (particularly ETag) of one of the entities
991               that matched. For all other request methods, the server <em class="bcp14">MUST</em> respond with a status of 412 (Precondition Failed).
992            </p>
993            <p id="rfc.section.7.4.p.5">See <a href="#weak.and.strong.validators" title="Weak and Strong Validators">Section&nbsp;5</a> for rules on how to determine if two entity tags match.
994            </p>
995            <p id="rfc.section.7.4.p.6">If none of the entity tags match, then the server <em class="bcp14">MAY</em> perform the requested method as if the If-None-Match header field did not exist, but <em class="bcp14">MUST</em> also ignore any If-Modified-Since header field(s) in the request. That is, if no entity tags match, then the server <em class="bcp14">MUST NOT</em> return a 304 (Not Modified) response.
996            </p>
997            <p id="rfc.section.7.4.p.7">If the request would, without the If-None-Match header field, result in anything other than a 2xx or 304 status, then the
998               If-None-Match header <em class="bcp14">MUST</em> be ignored. (See <a href="" title="Rules for When to Use Entity Tags and Last-Modified Dates">Section&nbsp;6</a> for a discussion of server behavior when both If-Modified-Since and If-None-Match appear in the same request.)
999            </p>
1000            <p id="rfc.section.7.4.p.8">The meaning of "If-None-Match: *" is that the method <em class="bcp14">MUST NOT</em> be performed if the representation selected by the origin server (or by a cache, possibly using the Vary mechanism, see <a href="p6-cache.html#header.vary" title="Vary">Section 16.5</a> of <a href="#Part6" id="rfc.xref.Part6.3"><cite title="HTTP/1.1, part 6: Caching">[Part6]</cite></a>) exists, and <em class="bcp14">SHOULD</em> be performed if the representation does not exist. This feature is intended to be useful in preventing races between PUT operations.
1001            </p>
1002            <p id="rfc.section.7.4.p.9">Examples:</p>
1003            <div id="rfc.figure.u.11"></div><pre class="text">  If-None-Match: "xyzzy"
1004  If-None-Match: W/"xyzzy"
1005  If-None-Match: "xyzzy", "r2d2xxxx", "c3piozzzz"
1006  If-None-Match: W/"xyzzy", W/"r2d2xxxx", W/"c3piozzzz"
1007  If-None-Match: *
1008</pre><p id="rfc.section.7.4.p.11">The result of a request having both an If-None-Match header field and either an If-Match or an If-Unmodified-Since header
1009               fields is undefined by this specification.
1010            </p>
1011         </div>
1012         <div id="header.if-unmodified-since">
1013            <div id="rfc.iref.i.4"></div>
1014            <div id="rfc.iref.h.5"></div>
1015            <h2 id="rfc.section.7.5"><a href="#rfc.section.7.5">7.5</a>&nbsp;<a href="#header.if-unmodified-since">If-Unmodified-Since</a></h2>
1016            <p id="rfc.section.7.5.p.1">The request-header field "If-Unmodified-Since" is used with a method to make it conditional. If the requested resource has
1017               not been modified since the time specified in this field, the server <em class="bcp14">SHOULD</em> perform the requested operation as if the If-Unmodified-Since header were not present.
1018            </p>
1019            <p id="rfc.section.7.5.p.2">If the requested variant has been modified since the specified time, the server <em class="bcp14">MUST NOT</em> perform the requested operation, and <em class="bcp14">MUST</em> return a 412 (Precondition Failed).
1020            </p>
1021            <div id="rfc.figure.u.12"></div><pre class="inline"><span id="rfc.iref.g.12"></span><span id="rfc.iref.g.13"></span>  <a href="#header.if-unmodified-since" class="smpl">If-Unmodified-Since</a>   = "If-Unmodified-Since" ":" <a href="#notation" class="smpl">OWS</a>
1022                          <a href="#header.if-unmodified-since" class="smpl">If-Unmodified-Since-v</a>
1023  <a href="#header.if-unmodified-since" class="smpl">If-Unmodified-Since-v</a> = <a href="#abnf.dependencies" class="smpl">HTTP-date</a>
1024</pre><p id="rfc.section.7.5.p.4">An example of the field is:</p>
1025            <div id="rfc.figure.u.13"></div><pre class="text">  If-Unmodified-Since: Sat, 29 Oct 1994 19:43:31 GMT
1026</pre><p id="rfc.section.7.5.p.6">If the request normally (i.e., without the If-Unmodified-Since header) would result in anything other than a 2xx or 412 status,
1027               the If-Unmodified-Since header <em class="bcp14">SHOULD</em> be ignored.
1028            </p>
1029            <p id="rfc.section.7.5.p.7">If the specified date is invalid, the header is ignored.</p>
1030            <p id="rfc.section.7.5.p.8">The result of a request having both an If-Unmodified-Since header field and either an If-None-Match or an If-Modified-Since
1031               header fields is undefined by this specification.
1032            </p>
1033         </div>
1034         <div id="header.last-modified">
1035            <div id="rfc.iref.l.1"></div>
1036            <div id="rfc.iref.h.6"></div>
1037            <h2 id="rfc.section.7.6"><a href="#rfc.section.7.6">7.6</a>&nbsp;<a href="#header.last-modified">Last-Modified</a></h2>
1038            <p id="rfc.section.7.6.p.1">The entity-header field "Last-Modified" indicates the date and time at which the origin server believes the variant was last
1039               modified.
1040            </p>
1041            <div id="rfc.figure.u.14"></div><pre class="inline"><span id="rfc.iref.g.14"></span><span id="rfc.iref.g.15"></span>  <a href="#header.last-modified" class="smpl">Last-Modified</a>   = "Last-Modified" ":" <a href="#notation" class="smpl">OWS</a> <a href="#header.last-modified" class="smpl">Last-Modified-v</a>
1042  <a href="#header.last-modified" class="smpl">Last-Modified-v</a> = <a href="#abnf.dependencies" class="smpl">HTTP-date</a>
1043</pre><p id="rfc.section.7.6.p.3">An example of its use is</p>
1044            <div id="rfc.figure.u.15"></div><pre class="text">  Last-Modified: Tue, 15 Nov 1994 12:45:26 GMT
1045</pre><p id="rfc.section.7.6.p.5">The exact meaning of this header field depends on the implementation of the origin server and the nature of the original resource.
1046               For files, it may be just the file system last-modified time. For entities with dynamically included parts, it may be the
1047               most recent of the set of last-modify times for its component parts. For database gateways, it may be the last-update time
1048               stamp of the record. For virtual objects, it may be the last time the internal state changed.
1049            </p>
1050            <p id="rfc.section.7.6.p.6">An origin server <em class="bcp14">MUST NOT</em> send a Last-Modified date which is later than the server's time of message origination. In such cases, where the resource's
1051               last modification would indicate some time in the future, the server <em class="bcp14">MUST</em> replace that date with the message origination date.
1052            </p>
1053            <p id="rfc.section.7.6.p.7">An origin server <em class="bcp14">SHOULD</em> obtain the Last-Modified value of the entity as close as possible to the time that it generates the Date value of its response.
1054               This allows a recipient to make an accurate assessment of the entity's modification time, especially if the entity changes
1055               near the time that the response is generated.
1056            </p>
1057            <p id="rfc.section.7.6.p.8">HTTP/1.1 servers <em class="bcp14">SHOULD</em> send Last-Modified whenever feasible.
1058            </p>
1059            <p id="rfc.section.7.6.p.9">The Last-Modified entity-header field value is often used as a cache validator. In simple terms, a cache entry is considered
1060               to be valid if the entity has not been modified since the Last-Modified value.
1061            </p>
1062         </div>
1063      </div>
1064      <div id="IANA.considerations">
1065         <h1 id="rfc.section.8"><a href="#rfc.section.8">8.</a>&nbsp;<a href="#IANA.considerations">IANA Considerations</a></h1>
1066         <div id="message.header.registration">
1067            <h2 id="rfc.section.8.1"><a href="#rfc.section.8.1">8.1</a>&nbsp;<a href="#message.header.registration">Message Header Registration</a></h2>
1068            <p id="rfc.section.8.1.p.1">The Message Header Registry located at &lt;<a href=""></a>&gt; should be updated with the permanent registrations below (see <a href="#RFC3864" id="rfc.xref.RFC3864.1"><cite title="Registration Procedures for Message Header Fields">[RFC3864]</cite></a>):
1069            </p>
1070            <div id="rfc.table.1">
1071               <div id="iana.header.registration.table"></div>
1072               <table class="tt full left" cellpadding="3" cellspacing="0">
1073                  <thead>
1074                     <tr>
1075                        <th>Header Field Name</th>
1076                        <th>Protocol</th>
1077                        <th>Status</th>
1078                        <th>Reference</th>
1079                     </tr>
1080                  </thead>
1081                  <tbody>
1082                     <tr>
1083                        <td class="left">ETag</td>
1084                        <td class="left">http</td>
1085                        <td class="left">standard</td>
1086                        <td class="left"><a href="#header.etag" id="rfc.xref.header.etag.2" title="ETag">Section&nbsp;7.1</a>
1087                        </td>
1088                     </tr>
1089                     <tr>
1090                        <td class="left">If-Match</td>
1091                        <td class="left">http</td>
1092                        <td class="left">standard</td>
1093                        <td class="left"><a href="#header.if-match" id="rfc.xref.header.if-match.3" title="If-Match">Section&nbsp;7.2</a>
1094                        </td>
1095                     </tr>
1096                     <tr>
1097                        <td class="left">If-Modified-Since</td>
1098                        <td class="left">http</td>
1099                        <td class="left">standard</td>
1100                        <td class="left"><a href="#header.if-modified-since" id="rfc.xref.header.if-modified-since.1" title="If-Modified-Since">Section&nbsp;7.3</a>
1101                        </td>
1102                     </tr>
1103                     <tr>
1104                        <td class="left">If-None-Match</td>
1105                        <td class="left">http</td>
1106                        <td class="left">standard</td>
1107                        <td class="left"><a href="#header.if-none-match" id="rfc.xref.header.if-none-match.3" title="If-None-Match">Section&nbsp;7.4</a>
1108                        </td>
1109                     </tr>
1110                     <tr>
1111                        <td class="left">If-Unmodified-Since</td>
1112                        <td class="left">http</td>
1113                        <td class="left">standard</td>
1114                        <td class="left"><a href="#header.if-unmodified-since" id="rfc.xref.header.if-unmodified-since.1" title="If-Unmodified-Since">Section&nbsp;7.5</a>
1115                        </td>
1116                     </tr>
1117                     <tr>
1118                        <td class="left">Last-Modified</td>
1119                        <td class="left">http</td>
1120                        <td class="left">standard</td>
1121                        <td class="left"><a href="#header.last-modified" id="rfc.xref.header.last-modified.1" title="Last-Modified">Section&nbsp;7.6</a>
1122                        </td>
1123                     </tr>
1124                  </tbody>
1125               </table>
1126            </div>
1127            <p id="rfc.section.8.1.p.2">The change controller is: "IETF ( - Internet Engineering Task Force".</p>
1128         </div>
1129      </div>
1130      <div id="security.considerations">
1131         <h1 id="rfc.section.9"><a href="#rfc.section.9">9.</a>&nbsp;<a href="#security.considerations">Security Considerations</a></h1>
1132         <p id="rfc.section.9.p.1">No additional security considerations have been identified beyond those applicable to HTTP in general <a href="#Part1" id="rfc.xref.Part1.8"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>.
1133         </p>
1134      </div>
1135      <div id="ack">
1136         <h1 id="rfc.section.10"><a href="#rfc.section.10">10.</a>&nbsp;<a href="#ack">Acknowledgments</a></h1>
1137      </div>
1138      <h1 id="rfc.references"><a id="rfc.section.11" href="#rfc.section.11">11.</a> References
1139      </h1>
1140      <h2 id="rfc.references.1"><a href="#rfc.section.11.1" id="rfc.section.11.1">11.1</a> Normative References
1141      </h2>
1142      <table>
1143         <tr>
1144            <td class="reference"><b id="Part1">[Part1]</b></td>
1145            <td class="top"><a href="" title="Day Software">Fielding, R., Ed.</a>, <a href="" title="One Laptop per Child">Gettys, J.</a>, <a href="" title="Hewlett-Packard Company">Mogul, J.</a>, <a href="" title="Microsoft Corporation">Frystyk, H.</a>, <a href="" title="Adobe Systems, Incorporated">Masinter, L.</a>, <a href="" title="Microsoft Corporation">Leach, P.</a>, <a href="" title="World Wide Web Consortium">Berners-Lee, T.</a>, <a href="" title="World Wide Web Consortium">Lafon, Y., Ed.</a>, and <a href="" title="greenbytes GmbH">J. Reschke, Ed.</a>, “<a href="">HTTP/1.1, part 1: URIs, Connections, and Message Parsing</a>”, Internet-Draft&nbsp;draft-ietf-httpbis-p1-messaging-05 (work in progress), November&nbsp;2008.
1146            </td>
1147         </tr>
1148         <tr>
1149            <td class="reference"><b id="Part5">[Part5]</b></td>
1150            <td class="top"><a href="" title="Day Software">Fielding, R., Ed.</a>, <a href="" title="One Laptop per Child">Gettys, J.</a>, <a href="" title="Hewlett-Packard Company">Mogul, J.</a>, <a href="" title="Microsoft Corporation">Frystyk, H.</a>, <a href="" title="Adobe Systems, Incorporated">Masinter, L.</a>, <a href="" title="Microsoft Corporation">Leach, P.</a>, <a href="" title="World Wide Web Consortium">Berners-Lee, T.</a>, <a href="" title="World Wide Web Consortium">Lafon, Y., Ed.</a>, and <a href="" title="greenbytes GmbH">J. Reschke, Ed.</a>, “<a href="">HTTP/1.1, part 5: Range Requests and Partial Responses</a>”, Internet-Draft&nbsp;draft-ietf-httpbis-p5-range-05 (work in progress), November&nbsp;2008.
1151            </td>
1152         </tr>
1153         <tr>
1154            <td class="reference"><b id="Part6">[Part6]</b></td>
1155            <td class="top"><a href="" title="Day Software">Fielding, R., Ed.</a>, <a href="" title="One Laptop per Child">Gettys, J.</a>, <a href="" title="Hewlett-Packard Company">Mogul, J.</a>, <a href="" title="Microsoft Corporation">Frystyk, H.</a>, <a href="" title="Adobe Systems, Incorporated">Masinter, L.</a>, <a href="" title="Microsoft Corporation">Leach, P.</a>, <a href="" title="World Wide Web Consortium">Berners-Lee, T.</a>, <a href="" title="World Wide Web Consortium">Lafon, Y., Ed.</a>, and <a href="" title="greenbytes GmbH">J. Reschke, Ed.</a>, “<a href="">HTTP/1.1, part 6: Caching</a>”, Internet-Draft&nbsp;draft-ietf-httpbis-p6-cache-05 (work in progress), November&nbsp;2008.
1156            </td>
1157         </tr>
1158         <tr>
1159            <td class="reference"><b id="RFC2119">[RFC2119]</b></td>
1160            <td class="top"><a href="" title="Harvard University">Bradner, S.</a>, “<a href="">Key words for use in RFCs to Indicate Requirement Levels</a>”, BCP&nbsp;14, RFC&nbsp;2119, March&nbsp;1997.
1161            </td>
1162         </tr>
1163      </table>
1164      <h2 id="rfc.references.2"><a href="#rfc.section.11.2" id="rfc.section.11.2">11.2</a> Informative References
1165      </h2>
1166      <table>
1167         <tr>
1168            <td class="reference"><b id="RFC2616">[RFC2616]</b></td>
1169            <td class="top"><a href="" title="University of California, Irvine">Fielding, R.</a>, <a href="" title="W3C">Gettys, J.</a>, <a href="" title="Compaq Computer Corporation">Mogul, J.</a>, <a href="" title="MIT Laboratory for Computer Science">Frystyk, H.</a>, <a href="" title="Xerox Corporation">Masinter, L.</a>, <a href="" title="Microsoft Corporation">Leach, P.</a>, and <a href="" title="W3C">T. Berners-Lee</a>, “<a href="">Hypertext Transfer Protocol -- HTTP/1.1</a>”, RFC&nbsp;2616, June&nbsp;1999.
1170            </td>
1171         </tr>
1172         <tr>
1173            <td class="reference"><b id="RFC3864">[RFC3864]</b></td>
1174            <td class="top"><a href="" title="Nine by Nine">Klyne, G.</a>, <a href="" title="BEA Systems">Nottingham, M.</a>, and <a href="" title="HP Labs">J. Mogul</a>, “<a href="">Registration Procedures for Message Header Fields</a>”, BCP&nbsp;90, RFC&nbsp;3864, September&nbsp;2004.
1175            </td>
1176         </tr>
1177      </table>
1178      <div id="compatibility">
1179         <h1 id="rfc.section.A" class="np"><a href="#rfc.section.A">A.</a>&nbsp;<a href="#compatibility">Compatibility with Previous Versions</a></h1>
1180         <div id="changes.from.rfc.2616">
1181            <h2 id="rfc.section.A.1"><a href="#rfc.section.A.1">A.1</a>&nbsp;<a href="#changes.from.rfc.2616">Changes from RFC 2616</a></h2>
1182            <p id="rfc.section.A.1.p.1">Allow weak entity tags in all requests except range requests (Sections <a href="#weak.and.strong.validators" title="Weak and Strong Validators">5</a> and <a href="#header.if-none-match" id="rfc.xref.header.if-none-match.4" title="If-None-Match">7.4</a>).
1183            </p>
1184         </div>
1185      </div>
1186      <div id="change.log">
1187         <h1 id="rfc.section.B"><a href="#rfc.section.B">B.</a>&nbsp;<a href="#change.log">Change Log (to be removed by RFC Editor before publication)</a></h1>
1188         <div>
1189            <h2 id="rfc.section.B.1"><a href="#rfc.section.B.1">B.1</a>&nbsp;Since RFC2616
1190            </h2>
1191            <p id="rfc.section.B.1.p.1">Extracted relevant partitions from <a href="#RFC2616" id="rfc.xref.RFC2616.2"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2616]</cite></a>.
1192            </p>
1193         </div>
1194         <div>
1195            <h2 id="rfc.section.B.2"><a href="#rfc.section.B.2">B.2</a>&nbsp;Since draft-ietf-httpbis-p4-conditional-00
1196            </h2>
1197            <p id="rfc.section.B.2.p.1">Closed issues: </p>
1198            <ul>
1199               <li>&lt;<a href=""></a>&gt;: "Normative and Informative references"
1200               </li>
1201            </ul>
1202            <p id="rfc.section.B.2.p.2">Other changes: </p>
1203            <ul>
1204               <li>Move definitions of 304 and 412 condition codes from Part2.</li>
1205            </ul>
1206         </div>
1207         <div>
1208            <h2 id="rfc.section.B.3"><a href="#rfc.section.B.3">B.3</a>&nbsp;Since draft-ietf-httpbis-p4-conditional-01
1209            </h2>
1210            <p id="rfc.section.B.3.p.1">Ongoing work on ABNF conversion (&lt;<a href=""></a>&gt;):
1211            </p>
1212            <ul>
1213               <li>Add explicit references to BNF syntax and rules imported from other parts of the specification.</li>
1214            </ul>
1215         </div>
1216         <div id="changes.since.02">
1217            <h2 id="rfc.section.B.4"><a href="#rfc.section.B.4">B.4</a>&nbsp;<a href="#changes.since.02">Since draft-ietf-httpbis-p4-conditional-02</a></h2>
1218            <p id="rfc.section.B.4.p.1">Closed issues: </p>
1219            <ul>
1220               <li>&lt;<a href=""></a>&gt;: "Weak ETags on non-GET requests"
1221               </li>
1222            </ul>
1223            <p id="rfc.section.B.4.p.2">Ongoing work on IANA Message Header Registration (&lt;<a href=""></a>&gt;):
1224            </p>
1225            <ul>
1226               <li>Reference RFC 3984, and update header registrations for headers defined in this document.</li>
1227            </ul>
1228         </div>
1229         <div id="changes.since.03">
1230            <h2 id="rfc.section.B.5"><a href="#rfc.section.B.5">B.5</a>&nbsp;<a href="#changes.since.03">Since draft-ietf-httpbis-p4-conditional-03</a></h2>
1231            <p id="rfc.section.B.5.p.1">Closed issues: </p>
1232            <ul>
1233               <li>&lt;<a href=""></a>&gt;: "Examples for ETag matching"
1234               </li>
1235               <li>&lt;<a href=""></a>&gt;: "'entity value' undefined"
1236               </li>
1237               <li>&lt;<a href=""></a>&gt;: "bogus 2068 Date header reference"
1238               </li>
1239            </ul>
1240         </div>
1241         <div id="changes.since.04">
1242            <h2 id="rfc.section.B.6"><a href="#rfc.section.B.6">B.6</a>&nbsp;<a href="#changes.since.04">Since draft-ietf-httpbis-p4-conditional-04</a></h2>
1243            <p id="rfc.section.B.6.p.1">Ongoing work on ABNF conversion (&lt;<a href=""></a>&gt;):
1244            </p>
1245            <ul>
1246               <li>Use "/" instead of "|" for alternatives.</li>
1247               <li>Introduce new ABNF rules for "bad" whitespace ("BWS"), optional whitespace ("OWS") and required whitespace ("RWS").</li>
1248               <li>Rewrite ABNFs to spell out whitespace rules, factor out header value format definitions.</li>
1249            </ul>
1250         </div>
1251      </div>
1252      <h1 id="rfc.index"><a href="#rfc.index">Index</a></h1>
1253      <p class="noprint"><a href="#rfc.index.3">3</a> <a href="#rfc.index.4">4</a> <a href="#rfc.index.E">E</a> <a href="#rfc.index.G">G</a> <a href="#rfc.index.H">H</a> <a href="#rfc.index.I">I</a> <a href="#rfc.index.L">L</a> <a href="#rfc.index.P">P</a> <a href="#rfc.index.R">R</a> <a href="#rfc.index.S">S</a>
1254      </p>
1255      <div class="print2col">
1256         <ul class="ind">
1257            <li><a id="rfc.index.3" href="#rfc.index.3"><b>3</b></a><ul>
1258                  <li>304 Not Modified (status code)&nbsp;&nbsp;<a href="#rfc.iref.3.1"><b>4.1</b></a></li>
1259               </ul>
1260            </li>
1261            <li><a id="rfc.index.4" href="#rfc.index.4"><b>4</b></a><ul>
1262                  <li>412 Precondition Failed (status code)&nbsp;&nbsp;<a href="#rfc.iref.4.1"><b>4.2</b></a></li>
1263               </ul>
1264            </li>
1265            <li><a id="rfc.index.E" href="#rfc.index.E"><b>E</b></a><ul>
1266                  <li>ETag header&nbsp;&nbsp;<a href="#rfc.xref.header.etag.1">3</a>, <a href="#rfc.iref.e.1"><b>7.1</b></a>, <a href="#rfc.xref.header.etag.2">8.1</a></li>
1267               </ul>
1268            </li>
1269            <li><a id="rfc.index.G" href="#rfc.index.G"><b>G</b></a><ul>
1270                  <li><tt>Grammar</tt>&nbsp;&nbsp;
1271                     <ul>
1272                        <li><tt>entity-tag</tt>&nbsp;&nbsp;<a href="#rfc.iref.g.1"><b>3</b></a></li>
1273                        <li><tt>ETag</tt>&nbsp;&nbsp;<a href="#rfc.iref.g.4"><b>7.1</b></a></li>
1274                        <li><tt>ETag-v</tt>&nbsp;&nbsp;<a href="#rfc.iref.g.5"><b>7.1</b></a></li>
1275                        <li><tt>If-Match</tt>&nbsp;&nbsp;<a href="#rfc.iref.g.6"><b>7.2</b></a></li>
1276                        <li><tt>If-Match-v</tt>&nbsp;&nbsp;<a href="#rfc.iref.g.7"><b>7.2</b></a></li>
1277                        <li><tt>If-Modified-Since</tt>&nbsp;&nbsp;<a href="#rfc.iref.g.8"><b>7.3</b></a></li>
1278                        <li><tt>If-Modified-Since-v</tt>&nbsp;&nbsp;<a href="#rfc.iref.g.9"><b>7.3</b></a></li>
1279                        <li><tt>If-None-Match</tt>&nbsp;&nbsp;<a href="#rfc.iref.g.10"><b>7.4</b></a></li>
1280                        <li><tt>If-None-Match-v</tt>&nbsp;&nbsp;<a href="#rfc.iref.g.11"><b>7.4</b></a></li>
1281                        <li><tt>If-Unmodified-Since</tt>&nbsp;&nbsp;<a href="#rfc.iref.g.12"><b>7.5</b></a></li>
1282                        <li><tt>If-Unmodified-Since-v</tt>&nbsp;&nbsp;<a href="#rfc.iref.g.13"><b>7.5</b></a></li>
1283                        <li><tt>Last-Modified</tt>&nbsp;&nbsp;<a href="#rfc.iref.g.14"><b>7.6</b></a></li>
1284                        <li><tt>Last-Modified-v</tt>&nbsp;&nbsp;<a href="#rfc.iref.g.15"><b>7.6</b></a></li>
1285                        <li><tt>opaque-tag</tt>&nbsp;&nbsp;<a href="#rfc.iref.g.3"><b>3</b></a></li>
1286                        <li><tt>weak</tt>&nbsp;&nbsp;<a href="#rfc.iref.g.2"><b>3</b></a></li>
1287                     </ul>
1288                  </li>
1289               </ul>
1290            </li>
1291            <li><a id="rfc.index.H" href="#rfc.index.H"><b>H</b></a><ul>
1292                  <li>Headers&nbsp;&nbsp;
1293                     <ul>
1294                        <li>ETag&nbsp;&nbsp;<a href="#rfc.xref.header.etag.1">3</a>, <a href="#rfc.iref.h.1"><b>7.1</b></a>, <a href="#rfc.xref.header.etag.2">8.1</a></li>
1295                        <li>If-Match&nbsp;&nbsp;<a href="#rfc.xref.header.if-match.1">3</a>, <a href="#rfc.xref.header.if-match.2">7.1</a>, <a href="#rfc.iref.h.2"><b>7.2</b></a>, <a href="#rfc.xref.header.if-match.3">8.1</a></li>
1296                        <li>If-Modified-Since&nbsp;&nbsp;<a href="#rfc.iref.h.3"><b>7.3</b></a>, <a href="#rfc.xref.header.if-modified-since.1">8.1</a></li>
1297                        <li>If-None-Match&nbsp;&nbsp;<a href="#rfc.xref.header.if-none-match.1">3</a>, <a href="#rfc.xref.header.if-none-match.2">7.1</a>, <a href="#rfc.iref.h.4"><b>7.4</b></a>, <a href="#rfc.xref.header.if-none-match.3">8.1</a>, <a href="#rfc.xref.header.if-none-match.4">A.1</a></li>
1298                        <li>If-Unmodified-Since&nbsp;&nbsp;<a href="#rfc.iref.h.5"><b>7.5</b></a>, <a href="#rfc.xref.header.if-unmodified-since.1">8.1</a></li>
1299                        <li>Last-Modified&nbsp;&nbsp;<a href="#rfc.iref.h.6"><b>7.6</b></a>, <a href="#rfc.xref.header.last-modified.1">8.1</a></li>
1300                     </ul>
1301                  </li>
1302               </ul>
1303            </li>
1304            <li><a id="rfc.index.I" href="#rfc.index.I"><b>I</b></a><ul>
1305                  <li>If-Match header&nbsp;&nbsp;<a href="#rfc.xref.header.if-match.1">3</a>, <a href="#rfc.xref.header.if-match.2">7.1</a>, <a href="#rfc.iref.i.1"><b>7.2</b></a>, <a href="#rfc.xref.header.if-match.3">8.1</a></li>
1306                  <li>If-Modified-Since header&nbsp;&nbsp;<a href="#rfc.iref.i.2"><b>7.3</b></a>, <a href="#rfc.xref.header.if-modified-since.1">8.1</a></li>
1307                  <li>If-None-Match header&nbsp;&nbsp;<a href="#rfc.xref.header.if-none-match.1">3</a>, <a href="#rfc.xref.header.if-none-match.2">7.1</a>, <a href="#rfc.iref.i.3"><b>7.4</b></a>, <a href="#rfc.xref.header.if-none-match.3">8.1</a>, <a href="#rfc.xref.header.if-none-match.4">A.1</a></li>
1308                  <li>If-Unmodified-Since header&nbsp;&nbsp;<a href="#rfc.iref.i.4"><b>7.5</b></a>, <a href="#rfc.xref.header.if-unmodified-since.1">8.1</a></li>
1309               </ul>
1310            </li>
1311            <li><a id="rfc.index.L" href="#rfc.index.L"><b>L</b></a><ul>
1312                  <li>Last-Modified header&nbsp;&nbsp;<a href="#rfc.iref.l.1"><b>7.6</b></a>, <a href="#rfc.xref.header.last-modified.1">8.1</a></li>
1313               </ul>
1314            </li>
1315            <li><a id="rfc.index.P" href="#rfc.index.P"><b>P</b></a><ul>
1316                  <li><em>Part1</em>&nbsp;&nbsp;<a href="#rfc.xref.Part1.1">2</a>, <a href="#rfc.xref.Part1.2">2</a>, <a href="#rfc.xref.Part1.3">2</a>, <a href="#rfc.xref.Part1.4">2</a>, <a href="#rfc.xref.Part1.5">2</a>, <a href="#rfc.xref.Part1.6">4.1</a>, <a href="#rfc.xref.Part1.7">4.1</a>, <a href="#rfc.xref.Part1.8">9</a>, <a href="#Part1"><b>11.1</b></a><ul>
1317                        <li><em>Section 2.1</em>&nbsp;&nbsp;<a href="#rfc.xref.Part1.1">2</a></li>
1318                        <li><em>Section 2.2</em>&nbsp;&nbsp;<a href="#rfc.xref.Part1.2">2</a>, <a href="#rfc.xref.Part1.3">2</a>, <a href="#rfc.xref.Part1.4">2</a></li>
1319                        <li><em>Section 3.3.1</em>&nbsp;&nbsp;<a href="#rfc.xref.Part1.5">2</a></li>
1320                        <li><em>Section 8.3.1</em>&nbsp;&nbsp;<a href="#rfc.xref.Part1.6">4.1</a></li>
1321                        <li><em>Section 8.3</em>&nbsp;&nbsp;<a href="#rfc.xref.Part1.7">4.1</a></li>
1322                     </ul>
1323                  </li>
1324                  <li><em>Part5</em>&nbsp;&nbsp;<a href="#rfc.xref.Part5.1">3</a>, <a href="#rfc.xref.Part5.2">5</a>, <a href="#rfc.xref.Part5.3">5</a>, <a href="#rfc.xref.Part5.4">7.1</a>, <a href="#rfc.xref.Part5.5">7.3</a>, <a href="#Part5"><b>11.1</b></a><ul>
1325                        <li><em>Section 6.3</em>&nbsp;&nbsp;<a href="#rfc.xref.Part5.1">3</a>, <a href="#rfc.xref.Part5.4">7.1</a></li>
1326                        <li><em>Section 6.4</em>&nbsp;&nbsp;<a href="#rfc.xref.Part5.5">7.3</a></li>
1327                     </ul>
1328                  </li>
1329                  <li><em>Part6</em>&nbsp;&nbsp;<a href="#rfc.xref.Part6.1">1</a>, <a href="#rfc.xref.Part6.2">7.2</a>, <a href="#rfc.xref.Part6.3">7.4</a>, <a href="#Part6"><b>11.1</b></a><ul>
1330                        <li><em>Section 16.5</em>&nbsp;&nbsp;<a href="#rfc.xref.Part6.2">7.2</a>, <a href="#rfc.xref.Part6.3">7.4</a></li>
1331                     </ul>
1332                  </li>
1333               </ul>
1334            </li>
1335            <li><a id="rfc.index.R" href="#rfc.index.R"><b>R</b></a><ul>
1336                  <li><em>RFC2119</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC2119.1">1.1</a>, <a href="#RFC2119"><b>11.1</b></a></li>
1337                  <li><em>RFC2616</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC2616.1">1</a>, <a href="#RFC2616"><b>11.2</b></a>, <a href="#rfc.xref.RFC2616.2">B.1</a></li>
1338                  <li><em>RFC3864</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC3864.1">8.1</a>, <a href="#RFC3864"><b>11.2</b></a></li>
1339               </ul>
1340            </li>
1341            <li><a id="rfc.index.S" href="#rfc.index.S"><b>S</b></a><ul>
1342                  <li>Status Codes&nbsp;&nbsp;
1343                     <ul>
1344                        <li>304 Not Modified&nbsp;&nbsp;<a href="#rfc.iref.s.1"><b>4.1</b></a></li>
1345                        <li>412 Precondition Failed&nbsp;&nbsp;<a href="#rfc.iref.s.2"><b>4.2</b></a></li>
1346                     </ul>
1347                  </li>
1348               </ul>
1349            </li>
1350         </ul>
1351      </div>
1352      <div class="avoidbreak">
1353         <h1 id="rfc.authors"><a href="#rfc.authors">Authors' Addresses</a></h1>
1354         <p><b>Roy T. Fielding</b>
1355            (editor)
1356            <br>Day Software<br>23 Corporate Plaza DR, Suite 280<br>Newport Beach, CA&nbsp;92660<br>USA<br>Phone: <a href="tel:+1-949-706-5300">+1-949-706-5300</a><br>Fax: <a href="fax:+1-949-706-5305">+1-949-706-5305</a><br>EMail: <a href=""></a><br>URI: <a href=""></a></p>
1357         <p><b>Jim Gettys</b><br>One Laptop per Child<br>21 Oak Knoll Road<br>Carlisle, MA&nbsp;01741<br>USA<br>EMail: <a href=""></a><br>URI: <a href=""></a></p>
1358         <p><b>Jeffrey C. Mogul</b><br>Hewlett-Packard Company<br>HP Labs, Large Scale Systems Group<br>1501 Page Mill Road, MS 1177<br>Palo Alto, CA&nbsp;94304<br>USA<br>EMail: <a href=""></a></p>
1359         <p><b>Henrik Frystyk Nielsen</b><br>Microsoft Corporation<br>1 Microsoft Way<br>Redmond, WA&nbsp;98052<br>USA<br>EMail: <a href=""></a></p>
1360         <p><b>Larry Masinter</b><br>Adobe Systems, Incorporated<br>345 Park Ave<br>San Jose, CA&nbsp;95110<br>USA<br>EMail: <a href=""></a><br>URI: <a href=""></a></p>
1361         <p><b>Paul J. Leach</b><br>Microsoft Corporation<br>1 Microsoft Way<br>Redmond, WA&nbsp;98052<br>EMail: <a href=""></a></p>
1362         <p><b>Tim Berners-Lee</b><br>World Wide Web Consortium<br>MIT Computer Science and Artificial Intelligence Laboratory<br>The Stata Center, Building 32<br>32 Vassar Street<br>Cambridge, MA&nbsp;02139<br>USA<br>EMail: <a href=""></a><br>URI: <a href=""></a></p>
1363         <p><b>Yves Lafon</b>
1364            (editor)
1365            <br>World Wide Web Consortium<br>W3C / ERCIM<br>2004, rte des Lucioles<br>Sophia-Antipolis, AM&nbsp;06902<br>France<br>EMail: <a href=""></a><br>URI: <a href=""></a></p>
1366         <p><b>Julian F. Reschke</b>
1367            (editor)
1368            <br>greenbytes GmbH<br>Hafenweg 16<br>Muenster, NW&nbsp;48155<br>Germany<br>Phone: <a href="tel:+492512807760">+49 251 2807760</a><br>Fax: <a href="fax:+492512807761">+49 251 2807761</a><br>EMail: <a href=""></a><br>URI: <a href=""></a></p>
1369      </div>
1370      <div id="rfc.copyright">
1371         <h1><a href="#rfc.copyright">Full Copyright Statement</a></h1>
1372         <p>Copyright © The IETF Trust (2008).</p>
1373         <p>This document is subject to the rights, licenses and restrictions contained in BCP 78, and except as set forth therein, the
1374            authors retain all their rights.
1375         </p>
1376         <p>This document and the information contained herein are provided on an “AS IS” basis and THE CONTRIBUTOR, THE ORGANIZATION
1380         </p>
1381      </div>
1382      <div id="rfc.ipr">
1383         <h1><a href="#rfc.ipr">Intellectual Property</a></h1>
1384         <p>The IETF takes no position regarding the validity or scope of any Intellectual Property Rights or other rights that might
1385            be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any
1386            license under such rights might or might not be available; nor does it represent that it has made any independent effort to
1387            identify any such rights. Information on the procedures with respect to rights in RFC documents can be found in BCP 78 and
1388            BCP 79.
1389         </p>
1390         <p>Copies of IPR disclosures made to the IETF Secretariat and any assurances of licenses to be made available, or the result
1391            of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementers or users
1392            of this specification can be obtained from the IETF on-line IPR repository at <a href=""></a>.
1393         </p>
1394         <p>The IETF invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary
1395            rights that may cover technology that may be required to implement this standard. Please address the information to the IETF
1396            at <a href=""></a>.
1397         </p>
1398      </div>
1399   </body>
Note: See TracBrowser for help on using the repository browser.