source: draft-ietf-httpbis/latest/p6-cache.xml @ 1106

Last change on this file since 1106 was 1106, checked in by fielding@…, 9 years ago

Update my org after Adobe acquisition

  • Property svn:eol-style set to native
File size: 106.8 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<?xml-stylesheet type='text/xsl' href='../myxml2rfc.xslt'?>
3<!DOCTYPE rfc [
4  <!ENTITY MAY "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>MAY</bcp14>">
5  <!ENTITY MUST "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>MUST</bcp14>">
6  <!ENTITY MUST-NOT "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>MUST NOT</bcp14>">
7  <!ENTITY OPTIONAL "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>OPTIONAL</bcp14>">
8  <!ENTITY RECOMMENDED "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>RECOMMENDED</bcp14>">
9  <!ENTITY REQUIRED "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>REQUIRED</bcp14>">
10  <!ENTITY SHALL "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>SHALL</bcp14>">
11  <!ENTITY SHALL-NOT "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>SHALL NOT</bcp14>">
12  <!ENTITY SHOULD "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>SHOULD</bcp14>">
13  <!ENTITY SHOULD-NOT "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>SHOULD NOT</bcp14>">
14  <!ENTITY ID-VERSION "latest">
15  <!ENTITY ID-MONTH "February">
16  <!ENTITY ID-YEAR "2011">
17  <!ENTITY notation                    "<xref target='Part1' x:rel='#notation' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
18  <!ENTITY basic-rules                 "<xref target='Part1' x:rel='#basic.rules' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
19  <!ENTITY uri                         "<xref target='Part1' x:rel='#uri' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
20  <!ENTITY effective-request-uri      "<xref target='Part1' x:rel='#effective.request.uri' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
21  <!ENTITY messaging                   "<xref target='Part1' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
22  <!ENTITY conditional                 "<xref target='Part4' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
23  <!ENTITY partial                     "<xref target='Part5' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
24  <!ENTITY combining-byte-ranges       "<xref target='Part5' x:rel='#combining.byte.ranges' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
25  <!ENTITY full-date                   "<xref target='Part1' x:rel='#date.time.formats.full.date' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
26  <!ENTITY header-authorization        "<xref target='Part7' x:rel='#header.authorization' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
27  <!ENTITY header-connection           "<xref target='Part1' x:rel='#header.connection' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
28  <!ENTITY header-date                 "<xref target='Part1' x:rel='#header.date' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
29  <!ENTITY header-via                  "<xref target='Part1' x:rel='#header.via' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
30  <!ENTITY header-last-modified        "<xref target='Part4' x:rel='#header.last-modified' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
31  <!ENTITY header-fields               "<xref target='Part1' x:rel='#header.fields' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
32  <!ENTITY safe-methods                "<xref target='Part2' x:rel='#safe.methods' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
33  <!ENTITY weak-and-strong             "<xref target='Part4' x:rel='#weak.and.strong.validators' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
34  <!ENTITY status-codes                "<xref target='Part2' x:rel='#status.codes' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
35  <!ENTITY status.2xx                  "<xref target='Part2' x:rel='#status.2xx' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
36]>
37<?rfc toc="yes" ?>
38<?rfc symrefs="yes" ?>
39<?rfc sortrefs="yes" ?>
40<?rfc compact="yes"?>
41<?rfc subcompact="no" ?>
42<?rfc linkmailto="no" ?>
43<?rfc editing="no" ?>
44<?rfc comments="yes"?>
45<?rfc inline="yes"?>
46<?rfc rfcedstyle="yes"?>
47<?rfc-ext allow-markup-in-artwork="yes" ?>
48<?rfc-ext include-references-in-index="yes" ?>
49<rfc category="std" docName="draft-ietf-httpbis-p6-cache-&ID-VERSION;" ipr="pre5378Trust200902"
50  obsoletes="2616" x:maturity-level="draft" xmlns:x="http://purl.org/net/xml2rfc/ext">
51<front>
52
53  <title abbrev="HTTP/1.1, Part 6">HTTP/1.1, part 6: Caching</title>
54
55  <author fullname="Roy T. Fielding" initials="R." role="editor" surname="Fielding">
56    <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
57    <address>
58      <postal>
59        <street>345 Park Ave</street>
60        <city>San Jose</city>
61        <region>CA</region>
62        <code>95110</code>
63        <country>USA</country>
64      </postal>
65      <email>fielding@gbiv.com</email>
66      <uri>http://roy.gbiv.com/</uri>
67    </address>
68  </author>
69
70  <author initials="J." surname="Gettys" fullname="Jim Gettys">
71    <organization abbrev="Alcatel-Lucent">Alcatel-Lucent Bell Labs</organization>
72    <address>
73      <postal>
74        <street>21 Oak Knoll Road</street>
75        <city>Carlisle</city>
76        <region>MA</region>
77        <code>01741</code>
78        <country>USA</country>
79      </postal>
80      <email>jg@freedesktop.org</email>
81      <uri>http://gettys.wordpress.com/</uri>
82    </address>
83  </author>
84
85  <author fullname="Jeffrey C. Mogul" initials="J." surname="Mogul">
86    <organization abbrev="HP">Hewlett-Packard Company</organization>
87    <address>
88      <postal>
89        <street>HP Labs, Large Scale Systems Group</street>
90        <street>1501 Page Mill Road, MS 1177</street>
91        <city>Palo Alto</city>
92        <region>CA</region>
93        <code>94304</code>
94        <country>USA</country>
95      </postal>
96      <email>JeffMogul@acm.org</email>
97    </address>
98  </author>
99
100  <author fullname="Henrik Frystyk Nielsen" initials="H." surname="Frystyk">
101    <organization abbrev="Microsoft">Microsoft Corporation</organization>
102    <address>
103      <postal>
104        <street>1 Microsoft Way</street>
105        <city>Redmond</city>
106        <region>WA</region>
107        <code>98052</code>
108        <country>USA</country>
109      </postal>
110      <email>henrikn@microsoft.com</email>
111    </address>
112  </author>
113
114  <author fullname="Larry Masinter" initials="L." surname="Masinter">
115    <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
116    <address>
117      <postal>
118        <street>345 Park Ave</street>
119        <city>San Jose</city>
120        <region>CA</region>
121        <code>95110</code>
122        <country>USA</country>
123      </postal>
124      <email>LMM@acm.org</email>
125      <uri>http://larry.masinter.net/</uri>
126    </address>
127  </author>
128
129  <author fullname="Paul J. Leach" initials="P." surname="Leach">
130    <organization abbrev="Microsoft">Microsoft Corporation</organization>
131    <address>
132      <postal>
133        <street>1 Microsoft Way</street>
134        <city>Redmond</city>
135        <region>WA</region>
136        <code>98052</code>
137      </postal>
138      <email>paulle@microsoft.com</email>
139    </address>
140  </author>
141
142  <author fullname="Tim Berners-Lee" initials="T." surname="Berners-Lee">
143    <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
144    <address>
145      <postal>
146        <street>MIT Computer Science and Artificial Intelligence Laboratory</street>
147        <street>The Stata Center, Building 32</street>
148        <street>32 Vassar Street</street>
149        <city>Cambridge</city>
150        <region>MA</region>
151        <code>02139</code>
152        <country>USA</country>
153      </postal>
154      <email>timbl@w3.org</email>
155      <uri>http://www.w3.org/People/Berners-Lee/</uri>
156    </address>
157  </author>
158
159  <author fullname="Yves Lafon" initials="Y." role="editor" surname="Lafon">
160    <organization abbrev="W3C">World Wide Web Consortium</organization>
161    <address>
162      <postal>
163        <street>W3C / ERCIM</street>
164        <street>2004, rte des Lucioles</street>
165        <city>Sophia-Antipolis</city>
166        <region>AM</region>
167        <code>06902</code>
168        <country>France</country>
169      </postal>
170      <email>ylafon@w3.org</email>
171      <uri>http://www.raubacapeu.net/people/yves/</uri>
172    </address>
173  </author>
174
175  <author fullname="Mark Nottingham" initials="M." role="editor" surname="Nottingham">
176    <address>
177      <email>mnot@mnot.net</email>
178      <uri>http://www.mnot.net/</uri>
179    </address>
180  </author>
181
182  <author fullname="Julian F. Reschke" initials="J. F." role="editor" surname="Reschke">
183    <organization abbrev="greenbytes">greenbytes GmbH</organization>
184    <address>
185      <postal>
186        <street>Hafenweg 16</street>
187        <city>Muenster</city><region>NW</region><code>48155</code>
188        <country>Germany</country>
189      </postal>
190      <phone>+49 251 2807760</phone>
191      <facsimile>+49 251 2807761</facsimile>
192      <email>julian.reschke@greenbytes.de</email>
193      <uri>http://greenbytes.de/tech/webdav/</uri>
194    </address>
195  </author>
196
197  <date month="&ID-MONTH;" year="&ID-YEAR;" />
198  <workgroup>HTTPbis Working Group</workgroup>
199
200<abstract>
201<t>
202   The Hypertext Transfer Protocol (HTTP) is an application-level protocol for
203   distributed, collaborative, hypermedia information systems. This document
204   is Part 6 of the seven-part specification that defines the protocol
205   referred to as "HTTP/1.1" and, taken together, obsoletes RFC 2616. Part 6
206   defines requirements on HTTP caches and the associated header fields that
207   control cache behavior or indicate cacheable response messages.
208</t>
209</abstract>
210
211<note title="Editorial Note (To be removed by RFC Editor)">
212   <t>
213      Discussion of this draft should take place on the HTTPBIS working group
214      mailing list (ietf-http-wg@w3.org). The current issues list is at <eref
215      target="http://tools.ietf.org/wg/httpbis/trac/report/3"/> and related
216      documents (including fancy diffs) can be found at <eref
217      target="http://tools.ietf.org/wg/httpbis/"/>.
218   </t>
219   <t>
220      The changes in this draft are summarized in <xref
221      target="changes.since.12"/>.
222   </t>
223</note>
224
225   </front>
226   <middle>
227
228<section anchor="caching" title="Introduction">
229<t>
230   HTTP is typically used for distributed information systems, where
231   performance can be improved by the use of response caches. This document
232   defines aspects of HTTP/1.1 related to caching and reusing response
233   messages.
234</t>
235
236<section anchor="intro.purpose" title="Purpose">
237<iref item="cache" />
238<t>
239   An HTTP <x:dfn>cache</x:dfn> is a local store of response messages and the
240   subsystem that controls its message storage, retrieval, and deletion. A
241   cache stores cacheable responses in order to reduce the response time and
242   network bandwidth consumption on future, equivalent requests. Any client or
243   server &MAY; employ a cache, though a cache cannot be used by a server that
244   is acting as a tunnel.
245</t>
246<t>
247   Caching would be useless if it did not significantly improve performance.
248   The goal of caching in HTTP/1.1 is to reuse a prior response message to
249   satisfy a current request. In some cases, a stored response can be reused
250   without the need for a network request, reducing latency and network
251   round-trips; a "freshness" mechanism is used for this purpose (see <xref
252   target="expiration.model" />). Even when a new request is required, it is
253   often possible to reuse all or parts of the payload of a prior response to
254   satisfy the request, thereby reducing network bandwidth usage; a
255   "validation" mechanism is used for this purpose (see <xref
256   target="validation.model" />).
257</t>
258</section>
259
260<section anchor="intro.terminology" title="Terminology">
261<t>
262   This specification uses a number of terms to refer to the roles played by
263   participants in, and objects of, HTTP caching.
264</t>
265<t>
266   <iref item="cacheable" />
267   <x:dfn>cacheable</x:dfn>
268   <list>
269      <t>A response is cacheable if a cache is allowed to store a copy of the
270      response message for use in answering subsequent requests. Even when a
271      response is cacheable, there might be additional constraints on whether
272      a cache can use the cached copy to satisfy a particular request.</t>
273   </list>
274</t>
275<t>
276   <iref item="explicit expiration time" />
277   <x:dfn>explicit expiration time</x:dfn>
278   <list>
279      <t>The time at which the origin server intends that a representation
280      no longer be returned by a cache without further validation.</t>
281   </list>
282</t>
283<t>
284   <iref item="heuristic expiration time" />
285   <x:dfn>heuristic expiration time</x:dfn>
286   <list>
287      <t>An expiration time assigned by a cache when no explicit expiration
288      time is available.</t>
289   </list>
290</t>
291<t>
292   <iref item="age" />
293   <x:dfn>age</x:dfn>
294   <list>
295      <t>The age of a response is the time since it was sent by, or
296      successfully validated with, the origin server.</t>
297   </list>
298</t>
299<t>
300   <iref item="first-hand" />
301   <x:dfn>first-hand</x:dfn>
302   <list>
303      <t>A response is first-hand if the freshness model is not in use; i.e.,
304      its age is 0.</t>
305   </list>
306</t>
307<t>
308   <iref item="freshness lifetime" />
309   <x:dfn>freshness lifetime</x:dfn>
310   <list>
311      <t>The length of time between the generation of a response and its
312      expiration time.</t>
313   </list>
314</t>
315<t>
316   <iref item="fresh" />
317   <x:dfn>fresh</x:dfn>
318   <list>
319      <t>A response is fresh if its age has not yet exceeded its freshness
320      lifetime.</t>
321   </list>
322</t>
323<t>
324   <iref item="stale" />
325   <x:dfn>stale</x:dfn>
326   <list>
327      <t>A response is stale if its age has passed its freshness lifetime
328      (either explicit or heuristic).</t>
329   </list>
330</t>
331<t>
332   <iref item="validator" />
333   <x:dfn>validator</x:dfn>
334   <list>
335      <t>A protocol element (e.g., an entity-tag or a Last-Modified time) that
336      is used to find out whether a stored response has an equivalent copy of
337      a representation.</t>
338   </list>
339</t>
340<t anchor="shared.and.non-shared.caches">
341   <iref item="validator" />
342   <x:dfn>shared cache</x:dfn>
343   <list>
344      <t>A cache that is accessible to more than one user. A non-shared cache
345      is dedicated to a single user.</t>
346   </list>
347</t>
348</section>
349
350<section anchor="intro.requirements" title="Requirements">
351<t>
352   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
353   "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
354   document are to be interpreted as described in <xref target="RFC2119"/>.
355</t>
356<t>
357   An implementation is not compliant if it fails to satisfy one or more of
358   the "MUST" or "REQUIRED" level requirements for the protocols it
359   implements. An implementation that satisfies all the "MUST" or "REQUIRED"
360   level and all the "SHOULD" level requirements for its protocols is said to
361   be "unconditionally compliant"; one that satisfies all the "MUST" level
362   requirements but not all the "SHOULD" level requirements for its protocols
363   is said to be "conditionally compliant".
364</t>
365</section>
366
367<section title="Syntax Notation" anchor="notation">
368   <x:anchor-alias value="ALPHA"/>
369   <x:anchor-alias value="CR"/>
370   <x:anchor-alias value="DIGIT"/>
371   <x:anchor-alias value="DQUOTE"/>
372   <x:anchor-alias value="LF"/>
373   <x:anchor-alias value="OCTET"/>
374   <x:anchor-alias value="SP"/>
375   <x:anchor-alias value="VCHAR"/>
376   <x:anchor-alias value="WSP"/>
377<t>
378   This specification uses the ABNF syntax defined in &notation; (which
379   extends the syntax defined in <xref target="RFC5234"/> with a list rule).
380   <xref target="collected.abnf"/> shows the collected ABNF, with the list
381   rule expanded.
382</t>
383<t>
384   The following core rules are included by reference, as defined in <xref
385   target="RFC5234" x:fmt="," x:sec="B.1"/>: ALPHA (letters), CR (carriage
386   return), CRLF (CR LF), CTL (controls), DIGIT (decimal 0-9), DQUOTE (double
387   quote), HEXDIG (hexadecimal 0-9/A-F/a-f), LF (line feed), OCTET (any 8-bit
388   sequence of data), SP (space), VCHAR (any visible USASCII character), and
389   WSP (whitespace).
390</t>
391
392<section title="Core Rules" anchor="core.rules">
393   <x:anchor-alias value="quoted-string"/>
394   <x:anchor-alias value="token"/>
395   <x:anchor-alias value="OWS"/>
396<t>
397   The core rules below are defined in &basic-rules;:
398</t>
399<figure><artwork type="abnf2616">
400  <x:ref>quoted-string</x:ref> = &lt;quoted-string, defined in &basic-rules;&gt;
401  <x:ref>token</x:ref>         = &lt;token, defined in &basic-rules;&gt;
402  <x:ref>OWS</x:ref>           = &lt;OWS, defined in &basic-rules;&gt;
403</artwork></figure>
404</section>
405
406<section title="ABNF Rules defined in other Parts of the Specification"
407    anchor="abnf.dependencies">
408   <x:anchor-alias value="field-name"/>
409   <x:anchor-alias value="HTTP-date"/>
410   <x:anchor-alias value="port"/>
411   <x:anchor-alias value="pseudonym"/>
412   <x:anchor-alias value="uri-host"/>
413<t>
414   The ABNF rules below are defined in other parts:
415</t>
416<figure><!--Part1--><artwork type="abnf2616">
417  <x:ref>field-name</x:ref>    = &lt;field-name, defined in &header-fields;&gt;
418  <x:ref>HTTP-date</x:ref>     = &lt;HTTP-date, defined in &full-date;&gt;
419  <x:ref>port</x:ref>          = &lt;port, defined in &uri;&gt;
420  <x:ref>pseudonym</x:ref>     = &lt;pseudonym, defined in &header-via;&gt; 
421  <x:ref>uri-host</x:ref>      = &lt;uri-host, defined in &uri;&gt;
422</artwork></figure>
423</section>
424
425</section>
426</section>
427
428<section anchor="caching.overview" title="Cache Operation">
429
430<section anchor="response.cacheability" title="Response Cacheability">
431<t>
432   A cache &MUST-NOT; store a response to any request, unless:
433   <list style="symbols">
434      <t>The request method is understood by the cache and defined as being
435      cacheable, and</t>
436      <t>the response status code is understood by the cache, and</t>
437      <t>the "no-store" cache directive (see <xref
438      target="header.cache-control" />) does not appear in request or response
439      header fields, and</t>
440      <t>the "private" cache response directive (see <xref
441      target="cache-response-directive" /> does not appear in the response, if
442      the cache is shared, and</t>
443      <t>the "Authorization" header field (see &header-authorization;) does not
444      appear in the request, if the cache is shared, unless the response
445      explicitly allows it (see <xref target="caching.authenticated.responses"
446      />), and</t>
447      <t>the response either:
448         <list style="symbols">
449            <t>contains an Expires header field (see <xref target="header.expires"
450            />), or</t>
451            <t>contains a max-age response cache directive (see <xref
452            target="cache-response-directive" />), or</t>
453            <t>contains a s-maxage response cache directive and the cache is
454            shared, or</t>
455            <t>contains a Cache Control Extension (see <xref
456            target="cache.control.extensions" />) that allows it to be cached,
457            or</t>
458            <t>has a status code that can be served with heuristic freshness
459            (see <xref target="heuristic.freshness" />).</t>
460         </list>
461      </t>
462   </list>
463</t>
464<t>
465   In this context, a cache has "understood" a request method or a response
466   status code if it recognises it and implements any cache-specific
467   behaviour. In particular, 206 Partial Content responses cannot be cached by
468   an implementation that does not handle partial content (see <xref
469   target="errors.or.incomplete.response.cache.behavior" />).
470</t>
471<t>
472   Note that in normal operation, most caches will not store a response that
473   has neither a cache validator nor an explicit expiration time, as such
474   responses are not usually useful to store. However, caches are not
475   prohibited from storing such responses.
476</t>
477
478<section anchor="errors.or.incomplete.response.cache.behavior" 
479   title="Storing Partial and Incomplete Responses">
480<t>
481   A cache that receives an incomplete response (for example, with fewer bytes
482   of data than specified in a Content-Length header field) can store the response,
483   but &MUST; treat it as a partial response &partial;. Partial responses can
484   be combined as described in &combining-byte-ranges;; the result might be a
485   full response or might still be partial. A cache &MUST-NOT; return a
486   partial response to a client without explicitly marking it as such using
487   the 206 (Partial Content) status code.
488</t>
489<t>
490   A cache that does not support the Range and Content-Range header fields
491   &MUST-NOT; store incomplete or partial responses.
492</t>
493</section>
494
495</section>
496
497
498<section anchor="constructing.responses.from.caches" 
499   title="Constructing Responses from Caches">
500<t>
501   For a presented request, a cache &MUST-NOT; return a stored response,
502   unless:
503   <list style="symbols">
504      <t>The presented effective request URI (&effective-request-uri;) and
505      that of the stored response match, and</t>
506      <t>the request method associated with the stored response allows it to
507      be used for the presented request, and</t>
508      <t>selecting request-header fields nominated by the stored response (if any)
509      match those presented (see <xref target="caching.negotiated.responses"
510      />), and</t>
511      <t>the presented request and stored response are free from directives
512      that would prevent its use (see <xref target="header.cache-control" />
513      and <xref target="header.pragma"/>), and</t>
514      <t>the stored response is either:
515         <list style="symbols">
516            <t>fresh (see <xref target="expiration.model" />), or</t>
517            <t>allowed to be served stale (see <xref
518            target="serving.stale.responses" />), or</t>
519            <t>successfully validated (see <xref target="validation.model"
520            />).</t>
521         </list>
522      </t>
523  </list>
524</t>
525<t>
526   When a stored response is used to satisfy a request without validation,
527   caches &MUST; include a single Age header field (<xref target="header.age"
528   />) in the response with a value equal to the stored response's
529   current_age; see <xref target="age.calculations" />.
530</t>
531<t>
532   Requests with methods that are unsafe (&safe-methods;) &MUST; be written
533   through the cache to the origin server; i.e., a cache must not reply to
534   such a request before having forwarded the request and having received a
535   corresponding response.
536</t>
537<t>
538   Also, note that unsafe requests might invalidate already stored responses;
539   see <xref target="invalidation.after.updates.or.deletions" />.
540</t>
541<t>
542   Caches &MUST; use the most recent response (as determined by the Date
543   header field) when more than one suitable response is stored. They can also
544   forward a request with "Cache-Control: max-age=0" or "Cache-Control:
545   no-cache" to disambiguate which response to use.
546</t>
547<t>
548   An HTTP implementation without a clock &MUST-NOT; used stored responses
549   without revalidating them on every use. An HTTP cache, especially a shared
550   cache, &SHOULD; use a mechanism, such as NTP <xref target="RFC1305"/>, to
551   synchronize its clock with a reliable external standard.
552</t>
553
554</section>
555
556<section anchor="expiration.model" title="Freshness Model">
557<t>
558   When a response is "fresh" in the cache, it can be used to satisfy
559   subsequent requests without contacting the origin server, thereby improving
560   efficiency.
561</t>
562<t>
563   The primary mechanism for determining freshness is for an origin server to
564   provide an explicit expiration time in the future, using either the Expires
565   header field (<xref target="header.expires" />) or the max-age response cache
566   directive (<xref target="cache-response-directive" />). Generally, origin
567   servers will assign future explicit expiration times to responses in the
568   belief that the representation is not likely to change in a semantically
569   significant way before the expiration time is reached.
570</t>
571<t>
572   If an origin server wishes to force a cache to validate every request, it
573   can assign an explicit expiration time in the past to indicate that the
574   response is already stale.  Compliant caches will validate the cached response
575   before reusing it for subsequent requests.
576</t>
577<t>
578   Since origin servers do not always provide explicit expiration times, HTTP
579   caches &MAY; assign heuristic expiration times when explicit times are not
580   specified, employing algorithms that use other heade field values (such as the
581   Last-Modified time) to estimate a plausible expiration time. The HTTP/1.1
582   specification does not provide specific algorithms, but does impose
583   worst-case constraints on their results.
584</t>
585<figure>
586<preamble>
587  The calculation to determine if a response is fresh is:
588</preamble>
589<artwork type="code">
590   response_is_fresh = (freshness_lifetime &gt; current_age)
591</artwork>
592</figure>
593<t>
594   The freshness_lifetime is defined in <xref
595   target="calculating.freshness.lifetime" />; the current_age is defined in
596   <xref target="age.calculations" />.
597</t>
598<t>
599   Additionally, clients might need to influence freshness calculation. They
600   can do this using several request cache directives, with the effect of
601   either increasing or loosening constraints on freshness. See <xref
602   target="cache-request-directive" />.
603</t>
604<t>
605   <cref anchor="ISSUE-no-req-for-directives">there are not requirements
606   directly applying to cache-request-directives and freshness.</cref>
607</t>
608<t>
609   Note that freshness applies only to cache operation; it cannot be used to
610   force a user agent to refresh its display or reload a resource. See <xref
611   target="history.lists" /> for an explanation of the difference between
612   caches and history mechanisms.
613</t>
614
615<section anchor="calculating.freshness.lifetime" 
616   title="Calculating Freshness Lifetime">
617<t>
618   A cache can calculate the freshness lifetime (denoted as
619   freshness_lifetime) of a response by using the first match of:
620   <list style="symbols">
621      <t>If the cache is shared and the s-maxage response cache directive
622      (<xref target="cache-response-directive" />) is present, use its value,
623      or</t>
624      <t>If the max-age response cache directive (<xref
625      target="cache-response-directive" />) is present, use its value, or</t>
626      <t>If the Expires response header field (<xref target="header.expires" />) is
627      present, use its value minus the value of the Date response header field,
628      or</t>
629      <t>Otherwise, no explicit expiration time is present in the response. A
630      heuristic freshness lifetime might be applicable; see <xref
631      target="heuristic.freshness" />.</t>
632   </list>
633</t>
634<t>
635   Note that this calculation is not vulnerable to clock skew, since all of
636   the information comes from the origin server.
637</t>
638
639<section anchor="heuristic.freshness" title="Calculating Heuristic Freshness">
640<t>
641   If no explicit expiration time is present in a stored response that has a
642   status code whose definition allows heuristic freshness to be used
643   (including the following in &status-codes;: 200, 203, 206, 300, 301 and
644   410), a heuristic expiration time &MAY; be calculated. Heuristics
645   &MUST-NOT; be used for response status codes that do not explicitly allow
646   it.
647</t>
648<t>
649   When a heuristic is used to calculate freshness lifetime, the cache
650   &SHOULD; attach a Warning header field with a 113 warn-code to the response if
651   its current_age is more than 24 hours and such a warning is not already
652   present.
653</t>
654<t>
655   Also, if the response has a Last-Modified header field (&header-last-modified;),
656   the heuristic expiration value &SHOULD; be no more than some fraction of
657   the interval since that time. A typical setting of this fraction might be
658   10%.
659</t>
660<x:note>
661   <t>
662      <x:h>Note:</x:h> RFC 2616 (<xref target="RFC2616" x:fmt=","
663      x:sec="13.9"/>) required that caches do not calculate heuristic
664      freshness for URLs with query components (i.e., those containing '?').
665      In practice, this has not been widely implemented. Therefore, servers
666      are encouraged to send explicit directives (e.g., Cache-Control:
667      no-cache) if they wish to preclude caching.
668   </t>
669</x:note>
670</section>
671</section>
672
673<section anchor="age.calculations" title="Calculating Age">
674<t>
675   HTTP/1.1 uses the Age response-header field to convey the estimated age of the
676   response message when obtained from a cache. The Age field value is the
677   cache's estimate of the amount of time since the response was generated or
678   validated by the origin server. In essence, the Age value is the sum of the
679   time that the response has been resident in each of the caches along the
680   path from the origin server, plus the amount of time it has been in transit
681   along network paths.
682</t>
683<t>
684   The following data is used for the age calculation:
685</t>
686<t>
687   <x:dfn>age_value</x:dfn>
688   <list>
689      <t>
690         The term "age_value" denotes the value of the Age header field (<xref
691         target="header.age"/>), in a form appropriate for arithmetic
692         operation; or 0, if not available.
693      </t>
694   </list>
695</t>
696<t>
697   <x:dfn>date_value</x:dfn>
698   <list>
699      <t>
700         HTTP/1.1 requires origin servers to send a Date header field, if possible,
701         with every response, giving the time at which the response was
702         generated. The term "date_value" denotes the value of the Date
703         header field, in a form appropriate for arithmetic operations. See
704         &header-date; for the definition of the Date header field, and for
705         requirements regarding responses without it.
706      </t>
707   </list>
708</t>
709<t>
710   <x:dfn>now</x:dfn>
711   <list>
712      <t>
713         The term "now" means "the current value of the clock at the host
714         performing the calculation". Hosts that use HTTP, but especially
715         hosts running origin servers and caches, &SHOULD; use NTP (<xref
716         target="RFC1305"/>) or some similar protocol to synchronize their
717         clocks to a globally accurate time standard.
718      </t>
719   </list>
720</t>
721<t>
722   <x:dfn>request_time</x:dfn>
723   <list>
724      <t>
725         The current value of the clock at the host at the time the request
726         resulting in the stored response was made.
727      </t>
728   </list>
729</t>
730<t>
731   <x:dfn>response_time</x:dfn>
732   <list>
733      <t>
734         The current value of the clock at the host at the time the response
735         was received.
736      </t>
737   </list>
738</t>
739<t>
740   A response's age can be calculated in two entirely independent ways:
741   <list style="numbers">
742      <t>the "apparent_age": response_time minus date_value, if the local
743      clock is reasonably well synchronized to the origin server's clock. If
744      the result is negative, the result is replaced by zero.</t>
745      <t>the "corrected_age_value", if all of the caches along the response
746      path implement HTTP/1.1; note this value &MUST; be interpreted relative
747      to the time the request was initiated, not the time that the response
748      was received.</t>
749   </list>
750</t>
751<figure>
752<artwork type="code">
753  apparent_age = max(0, response_time - date_value);
754
755  response_delay = response_time - request_time;
756  corrected_age_value = age_value + response_delay; 
757</artwork>
758</figure>
759<figure>
760<preamble>These are combined as</preamble>
761<artwork type="code">
762  corrected_initial_age = max(apparent_age, corrected_age_value);
763</artwork></figure>
764<t>
765   The current_age of a stored response can then be calculated by adding the
766   amount of time (in seconds) since the stored response was last validated by
767   the origin server to the corrected_initial_age.
768</t>
769<figure><artwork type="code">
770  resident_time = now - response_time;
771  current_age = corrected_initial_age + resident_time;
772</artwork></figure>
773</section>
774
775<section anchor="serving.stale.responses" title="Serving Stale Responses">
776<t>
777   A "stale" response is one that either has explicit expiry information or is
778   allowed to have heuristic expiry calculated, but is not fresh according to
779   the calculations in <xref target="expiration.model" />.
780</t>
781<t>
782   Caches &MUST-NOT; return a stale response if it is prohibited by an
783   explicit in-protocol directive (e.g., by a "no-store" or "no-cache" cache
784   directive, a "must-revalidate" cache-response-directive, or an applicable
785   "s-maxage" or "proxy-revalidate" cache-response-directive; see <xref
786   target="cache-response-directive"/>).
787</t>
788<t>
789   Caches &SHOULD-NOT; return stale responses unless they are disconnected
790   (i.e., it cannot contact the origin server or otherwise find a forward
791   path) or otherwise explicitly allowed (e.g., the max-stale request
792   directive; see <xref target="cache-request-directive" />).
793</t>
794<t>
795   Stale responses &SHOULD; have a Warning header field with the 110 warn-code (see
796   <xref target="header.warning" />). Likewise, the 112 warn-code &SHOULD; be
797   sent on stale responses if the cache is disconnected.
798</t>
799<t>
800   If a cache receives a first-hand response (either an entire response, or a
801   304 (Not Modified) response) that it would normally forward to the
802   requesting client, and the received response is no longer fresh, the cache
803   &SHOULD; forward it to the requesting client without adding a new Warning
804   (but without removing any existing Warning header fields). A cache &SHOULD-NOT;
805   attempt to validate a response simply because that response became stale in
806   transit.
807</t>
808</section>
809</section>
810
811<section anchor="validation.model" title="Validation Model">
812<t>
813   When a cache has one or more stored responses for a requested URI, but
814   cannot serve any of them (e.g., because they are not fresh, or one cannot
815   be selected; see <xref target="caching.negotiated.responses"/>), it can use
816   the conditional request mechanism &conditional; in the forwarded request to
817   give the origin server an opportunity to both select a valid stored
818   response to be used, and to update it. This process is known as
819   "validating" or "revalidating" the stored response.
820</t>
821<t>
822   When sending such a conditional request, the cache &SHOULD; add an
823   If-Modified-Since header field whose value is that of the Last-Modified header
824   field from the selected (see <xref target="caching.negotiated.responses"/>)
825   stored response, if available.
826</t>
827<t>
828   Additionally, the cache &SHOULD; add an If-None-Match header field whose value is
829   that of the ETag header field(s) from all responses stored for the requested URI,
830   if present. However, if any of the stored responses contains only partial
831   content, its entity-tag &SHOULD-NOT; be included in the If-None-Match
832   header field unless the request is for a range that would be fully
833   satisfied by that stored response.
834</t>
835<t>
836   A 304 (Not Modified) response status code indicates that the stored
837   response can be updated and reused; see <xref target="combining.responses"/>.
838</t>
839<t>
840   A full response (i.e., one with a response body) indicates that none of the
841   stored responses nominated in the conditional request is suitable. Instead,
842   the full response &SHOULD; be used to satisfy the request and &MAY; replace
843   the stored response.
844</t>
845<t>
846   If a cache receives a 5xx response while attempting to validate a response,
847   it &MAY; either forward this response to the requesting client, or act as
848   if the server failed to respond. In the latter case, it &MAY; return a
849   previously stored response (see <xref target="serving.stale.responses" />).
850</t>
851</section>
852
853<section anchor="invalidation.after.updates.or.deletions" 
854   title="Request Methods that Invalidate">
855<t>
856   Because unsafe methods (&safe-methods;) have the potential for changing
857   state on the origin server, intervening caches can use them to keep their
858   contents up-to-date.
859</t>
860<t>
861   The following HTTP methods &MUST; cause a cache to invalidate the effective
862   Request URI (&effective-request-uri;) as well as the URI(s) in the Location
863   and Content-Location header fields (if present):
864   <list style="symbols">
865      <t>PUT</t>
866      <t>DELETE</t>
867      <t>POST</t>
868   </list>
869</t>
870<t>
871   An invalidation based on a URI from a Location or Content-Location header field
872   &MUST-NOT; be performed if the host part of that URI differs from the host
873   part in the effective request URI (&effective-request-uri;). This helps
874   prevent denial of service attacks.
875</t>
876<t>
877   A cache that passes through requests for methods it does not understand
878   &SHOULD; invalidate the effective request URI (&effective-request-uri;).
879</t>
880<t>
881   Here, "invalidate" means that the cache will either remove all stored
882   responses related to the effective request URI, or will mark these as
883   "invalid" and in need of a mandatory validation before they can be returned
884   in response to a subsequent request.
885</t>
886<t>
887   Note that this does not guarantee that all appropriate responses are
888   invalidated. For example, the request that caused the change at the origin
889   server might not have gone through the cache where a response is stored.
890</t>
891</section>
892
893<section anchor="caching.authenticated.responses" 
894   title="Shared Caching of Authenticated Responses">
895
896<t>
897   Shared caches &MUST-NOT; use a cached response to a request with an
898   Authorization header field (&header-authorization;) to satisfy any subsequent
899   request unless a cache directive that allows such responses to be stored is
900   present in the response.
901</t>
902
903<t>
904   In this specification, the following Cache-Control response directives
905   (<xref target="cache-response-directive"/>) have such an effect:
906   must-revalidate, public, s-maxage.
907</t>
908
909<t>
910   Note that cached responses that contain the "must-revalidate" and/or
911   "s-maxage" response directives are not allowed to be served stale (<xref
912   target="serving.stale.responses"/>) by shared caches. In particular, a
913   response with either "max-age=0, must-revalidate" or "s-maxage=0" cannot be
914   used to satisfy a subsequent request without revalidating it on the origin
915   server.
916</t>
917</section>
918
919<section anchor="caching.negotiated.responses" 
920   title="Caching Negotiated Responses">
921<t>
922   When a cache receives a request that can be satisfied by a stored response
923   that has a Vary header field (<xref target="header.vary"/>), it &MUST-NOT;
924   use that response unless all of the selecting request-header fields nominated by
925   the Vary header field match in both the original request (i.e., that associated
926   with the stored response), and the presented request.
927</t>
928<t>
929   The selecting request-header fields from two requests are defined to match if and
930   only if those in the first request can be transformed to those in the
931   second request by applying any of the following:
932   <list style="symbols">
933      <t>
934         adding or removing whitespace, where allowed in the header field's syntax
935      </t>
936      <t>
937         combining multiple message-header fields with the same field name
938         (see &header-fields;)
939      </t>
940      <t>
941         normalizing both header field values in a way that is known to have
942         identical semantics, according to the header field's specification (e.g.,
943         re-ordering field values when order is not significant;
944         case-normalization, where values are defined to be case-insensitive)
945      </t>
946  </list>
947</t>
948<t>
949   If (after any normalization that might take place) a header field is absent
950   from a request, it can only match another request if it is also absent
951   there.
952</t>
953<t>
954   A Vary header field-value of "*" always fails to match, and subsequent
955   requests to that resource can only be properly interpreted by the origin
956   server.
957</t>
958<t>
959   The stored response with matching selecting request-header fields is known as the
960   selected response.
961</t>
962<t>
963   If no selected response is available, the cache &MAY; forward the presented
964   request to the origin server in a conditional request; see <xref
965   target="validation.model"/>.
966</t>
967</section>
968
969<section anchor="combining.responses" title="Combining Responses">
970<t>
971   When a cache receives a 304 (Not Modified) response or a 206 (Partial
972   Content) response (in this section, the "new" response"), it needs to
973   create an updated response by combining the stored response with the new
974   one, so that the updated response can be used to satisfy the request, and
975   potentially update the cached response.
976</t>
977<t>
978   If the new response contains an ETag, it identifies the stored response to
979   use. <cref anchor="TODO-mention-CL">might need language about
980   Content-Location here</cref><cref
981   anchor="TODO-select-for-combine">Shouldn't this be the selected
982   response?</cref>
983</t>
984<t>
985   If the new response's status code is 206 (partial content), both the stored
986   and new responses &MUST; have validators, and those validators &MUST; match
987   using the strong comparison function (see &weak-and-strong;). Otherwise,
988   the responses &MUST-NOT; be combined.
989</t>
990<t>
991   The stored response header fields are used as those of the updated response,
992   except that
993   <list style="symbols">
994      <t>any stored Warning header fields with warn-code 1xx (see <xref
995      target="header.warning" />) &MUST; be deleted.</t>
996      <t>any stored Warning header fields with warn-code 2xx &MUST; be retained.</t>
997      <t>any other header fields provided in the new response &MUST; replace all
998      instances of the corresponding header fields from the stored response.</t>
999   </list>
1000</t>
1001<t>
1002   The updated response header fields &MUST; be used to replace those of the stored
1003   response in cache (unless the stored response is removed from cache). In
1004   the case of a 206 response, the combined representation &MAY; be stored.
1005</t>
1006</section>
1007
1008</section>
1009
1010<section anchor="header.fields" title="Header Field Definitions">
1011<t>
1012   This section defines the syntax and semantics of HTTP/1.1 header fields
1013   related to caching.
1014</t>
1015
1016<section anchor="header.age" title="Age">
1017   <iref item="Age header" primary="true" x:for-anchor="" />
1018   <iref item="Headers" primary="true" subitem="Age" x:for-anchor="" />
1019   <x:anchor-alias value="Age"/>
1020   <x:anchor-alias value="Age-v"/>
1021   <x:anchor-alias value="age-value"/>
1022<t>
1023   The "Age" response-header field conveys the sender's estimate of the amount
1024   of time since the response was generated or successfully validated at the
1025   origin server. Age values are calculated as specified in <xref
1026   target="age.calculations" />.
1027</t>
1028<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Age"/><iref primary="true" item="Grammar" subitem="Age-v"/>
1029  <x:ref>Age</x:ref>   = "Age" ":" <x:ref>OWS</x:ref> <x:ref>Age-v</x:ref>
1030  <x:ref>Age-v</x:ref> = <x:ref>delta-seconds</x:ref>
1031</artwork></figure>
1032<t anchor="rule.delta-seconds">
1033  <x:anchor-alias value="delta-seconds" />
1034  Age field-values are non-negative integers, representing time in seconds.
1035</t>
1036<figure><artwork type="abnf2616"><iref item="Grammar" primary="true" subitem="delta-seconds" />
1037  <x:ref>delta-seconds</x:ref>  = 1*<x:ref>DIGIT</x:ref>
1038</artwork></figure>
1039<t>
1040   If a cache receives a value larger than the largest positive integer it can
1041   represent, or if any of its age calculations overflows, it &MUST; transmit
1042   an Age header field with a field-value of 2147483648 (2<x:sup>31</x:sup>). Caches
1043   &SHOULD; use an arithmetic type of at least 31 bits of range.
1044</t>
1045<t>
1046   The presence of an Age header field in a response implies that a response
1047   is not first-hand. However, the converse is not true, since HTTP/1.0 caches
1048   might not implement the Age header field.
1049</t>
1050</section>
1051
1052<section anchor="header.cache-control" title="Cache-Control">
1053   <iref item="Cache-Control header" primary="true" x:for-anchor="" />
1054   <iref item="Headers" primary="true" subitem="Cache-Control" 
1055      x:for-anchor="" />
1056   <x:anchor-alias value="Cache-Control"/>
1057   <x:anchor-alias value="Cache-Control-v"/>
1058   <x:anchor-alias value="cache-directive"/>
1059   <x:anchor-alias value="cache-extension"/>
1060   <x:anchor-alias value="cache-request-directive"/>
1061   <x:anchor-alias value="cache-response-directive"/>
1062<t>
1063   The "Cache-Control" general-header field is used to specify directives for
1064   caches along the request/response chain. Such cache directives are
1065   unidirectional in that the presence of a directive in a request does not
1066   imply that the same directive is to be given in the response.
1067</t>
1068<t>
1069   HTTP/1.1 caches &MUST; obey the requirements of the Cache-Control
1070   directives defined in this section. See <xref
1071   target="cache.control.extensions"/> for information about how Cache-Control
1072   directives defined elsewhere are handled.
1073</t>
1074<x:note>
1075   <t>
1076       <x:h>Note:</x:h> HTTP/1.0 caches might not implement Cache-Control and
1077       might only implement Pragma: no-cache (see <xref target="header.pragma"
1078       />).
1079   </t>
1080</x:note>
1081<t>
1082   Cache directives &MUST; be passed through by a proxy or gateway
1083   application, regardless of their significance to that application, since
1084   the directives might be applicable to all recipients along the
1085   request/response chain. It is not possible to target a directive to a
1086   specific cache.
1087</t>
1088<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Cache-Control"/><iref primary="true" item="Grammar" subitem="Cache-Control-v"/><iref primary="true" item="Grammar" subitem="cache-extension"/>
1089  <x:ref>Cache-Control</x:ref>   = "Cache-Control" ":" <x:ref>OWS</x:ref> <x:ref>Cache-Control-v</x:ref>
1090  <x:ref>Cache-Control-v</x:ref> = 1#<x:ref>cache-directive</x:ref>
1091
1092  <x:ref>cache-directive</x:ref> = <x:ref>cache-request-directive</x:ref>
1093     / <x:ref>cache-response-directive</x:ref>
1094
1095  <x:ref>cache-extension</x:ref> = <x:ref>token</x:ref> [ "=" ( <x:ref>token</x:ref> / <x:ref>quoted-string</x:ref> ) ]
1096</artwork></figure>
1097
1098<section anchor="cache-request-directive" 
1099   title="Request Cache-Control Directives">
1100   <x:anchor-alias value="cache-request-directive" />
1101
1102<figure><artwork type="abnf2616"><iref item="Grammar" primary="true" 
1103   subitem="cache-request-directive" />
1104  <x:ref>cache-request-directive</x:ref> =
1105       "no-cache"
1106     / "no-store"
1107     / "max-age" "=" <x:ref>delta-seconds</x:ref>
1108     / "max-stale" [ "=" <x:ref>delta-seconds</x:ref> ]
1109     / "min-fresh" "=" <x:ref>delta-seconds</x:ref>
1110     / "no-transform"
1111     / "only-if-cached"
1112     / <x:ref>cache-extension</x:ref>
1113</artwork></figure>
1114
1115<t>
1116   <x:dfn>no-cache</x:dfn>
1117   <iref item="Cache Directives" primary="true" subitem="no-cache" />
1118   <iref item="no-cache" primary="true" subitem="Cache Directive" />
1119   <list>
1120      <t>The no-cache request directive indicates that a stored response
1121      &MUST-NOT; be used to satisfy the request without successful validation
1122      on the origin server.</t> 
1123   </list>
1124</t>
1125<t>
1126   <x:dfn>no-store</x:dfn>
1127   <iref item="Cache Directives" primary="true" subitem="no-store" />
1128   <iref item="no-store" primary="true" subitem="Cache Directive" />
1129   <list>
1130      <t>The no-store request directive indicates that a cache &MUST-NOT;
1131      store any part of either this request or any response to it. This
1132      directive applies to both non-shared and shared caches. "&MUST-NOT;
1133      store" in this context means that the cache &MUST-NOT; intentionally
1134      store the information in non-volatile storage, and &MUST; make a
1135      best-effort attempt to remove the information from volatile storage as
1136      promptly as possible after forwarding it.</t>
1137      <t>This directive is NOT a reliable or sufficient mechanism for ensuring
1138      privacy. In particular, malicious or compromised caches might not
1139      recognize or obey this directive, and communications networks might be
1140      vulnerable to eavesdropping.</t>
1141   </list>
1142</t>
1143<t>
1144   <x:dfn>max-age</x:dfn>
1145   <iref item="Cache Directives" primary="true" subitem="max-age" />
1146   <iref item="max-age" primary="true" subitem="Cache Directive" />
1147   <list>
1148      <t>The max-age request directive indicates that the client is willing to
1149      accept a response whose age is no greater than the specified time in
1150      seconds. Unless the max-stale request directive is also present, the
1151      client is not willing to accept a stale response.</t>
1152   </list>
1153</t>
1154<t>
1155   <x:dfn>max-stale</x:dfn>
1156   <iref item="Cache Directives" primary="true" subitem="max-stale" />
1157   <iref item="max-stale" primary="true" subitem="Cache Directive" />
1158   <list>
1159      <t>The max-stale request directive indicates that the client is willing
1160      to accept a response that has exceeded its expiration time. If max-stale
1161      is assigned a value, then the client is willing to accept a response
1162      that has exceeded its expiration time by no more than the specified
1163      number of seconds. If no value is assigned to max-stale, then the client
1164      is willing to accept a stale response of any age.</t>
1165   </list>
1166</t>
1167<t>
1168   <x:dfn>min-fresh</x:dfn>
1169   <iref item="Cache Directives" primary="true" subitem="min-fresh" />
1170   <iref item="min-fresh" primary="true" subitem="Cache Directive" />
1171   <list>
1172      <t>The min-fresh request directive indicates that the client is willing
1173      to accept a response whose freshness lifetime is no less than its
1174      current age plus the specified time in seconds. That is, the client
1175      wants a response that will still be fresh for at least the specified
1176      number of seconds.</t>
1177   </list>
1178</t>
1179<t>
1180   <x:dfn>no-transform</x:dfn>
1181   <iref item="Cache Directives" primary="true" subitem="no-transform" />
1182   <iref item="no-transform" primary="true" subitem="Cache Directive" />
1183   <list>
1184      <t>The no-transform request directive indicates that an intermediate
1185      cache or proxy &MUST-NOT; change the Content-Encoding, Content-Range or
1186      Content-Type request header fields, nor the request representation.</t>
1187   </list>
1188</t>
1189<t>
1190   <x:dfn>only-if-cached</x:dfn>
1191   <iref item="Cache Directives" primary="true" subitem="only-if-cached" />
1192   <iref item="only-if-cached" primary="true" subitem="Cache Directive" />
1193   <list>
1194      <t>The only-if-cached request directive indicates that the client only
1195      wishes to return a stored response. If it receives this directive, a
1196      cache &SHOULD; either respond using a stored response that is consistent
1197      with the other constraints of the request, or respond with a 504
1198      (Gateway Timeout) status code. If a group of caches is being operated as
1199      a unified system with good internal connectivity, such a request &MAY;
1200      be forwarded within that group of caches.</t>
1201   </list>
1202</t>
1203</section>
1204
1205<section anchor="cache-response-directive" 
1206   title="Response Cache-Control Directives">
1207   <x:anchor-alias value="cache-response-directive" />
1208
1209<figure><artwork type="abnf2616"><iref item="Grammar" primary="true" 
1210   subitem="cache-response-directive" />
1211  <x:ref>cache-response-directive</x:ref> =
1212       "public"
1213     / "private" [ "=" <x:ref>DQUOTE</x:ref> 1#<x:ref>field-name</x:ref> <x:ref>DQUOTE</x:ref> ]
1214     / "no-cache" [ "=" <x:ref>DQUOTE</x:ref> 1#<x:ref>field-name</x:ref> <x:ref>DQUOTE</x:ref> ]
1215     / "no-store"
1216     / "no-transform"
1217     / "must-revalidate"
1218     / "proxy-revalidate"
1219     / "max-age" "=" <x:ref>delta-seconds</x:ref>
1220     / "s-maxage" "=" <x:ref>delta-seconds</x:ref>
1221     / <x:ref>cache-extension</x:ref>
1222</artwork></figure>
1223
1224<t>
1225   <x:dfn>public</x:dfn>
1226   <iref item="Cache Directives" primary="true" subitem="public" />
1227   <iref item="public" primary="true" subitem="Cache Directive" />
1228   <list>
1229      <t>The public response directive indicates that the response &MAY; be
1230      cached, even if it would normally be non-cacheable or cacheable only
1231      within a non-shared cache. (See also Authorization,
1232      &header-authorization;, for additional details.) </t>
1233  </list>
1234</t>
1235<t>
1236   <x:dfn>private</x:dfn>
1237   <iref item="Cache Directives" primary="true" subitem="private" />
1238   <iref item="private" primary="true" subitem="Cache Directive" />
1239   <list>
1240      <t>The private response directive indicates that the response message is
1241      intended for a single user and &MUST-NOT; be stored by a shared cache. A
1242      private (non-shared) cache &MAY; store the response.</t>
1243      <t>If the private response directive specifies one or more field-names,
1244      this requirement is limited to the field-values associated with the
1245      listed response header fields. That is, the specified field-names(s)
1246      &MUST-NOT; be stored by a shared cache, whereas the remainder of the
1247      response message &MAY; be.</t>
1248      <t> <x:h>Note:</x:h> This usage of the word private only controls where
1249      the response can be stored; it cannot ensure the privacy of the message
1250      content. Also, private response directives with field-names are often
1251      handled by implementations as if an unqualified private directive was
1252      received; i.e., the special handling for the qualified form is not
1253      widely implemented.</t>
1254   </list>
1255</t>
1256<t>
1257   <x:dfn>no-cache</x:dfn>
1258   <iref item="Cache Directives" primary="true" subitem="no-cache" />
1259   <iref item="no-cache" primary="true" subitem="Cache Directive" />
1260   <list>
1261      <t>The no-cache response directive indicates that the response MUST NOT
1262      be used to satisfy a subsequent request without successful validation on
1263      the origin server. This allows an origin server to prevent a cache from
1264      using it to satisfy a request without contacting it, even by caches that
1265      have been configured to return stale responses.</t>
1266      <t>If the no-cache response directive specifies one or more field-names,
1267      this requirement is limited to the field-values associated with the
1268      listed response header fields. That is, the specified field-name(s) &MUST-NOT;
1269      be sent in the response to a subsequent request without successful
1270      validation on the origin server. This allows an origin server to prevent
1271      the re-use of certain header fields in a response, while still allowing
1272      caching of the rest of the response.</t>
1273      <t> <x:h>Note:</x:h> Most HTTP/1.0 caches will not recognize or obey
1274      this directive. Also, no-cache response directives with field-names are
1275      often handled by implementations as if an unqualified no-cache directive
1276      was received; i.e., the special handling for the qualified form is not
1277      widely implemented. </t>
1278   </list>
1279</t>
1280<t>
1281   <x:dfn>no-store</x:dfn>
1282   <iref item="Cache Directives" primary="true" subitem="no-store" />
1283   <iref item="no-store" primary="true" subitem="Cache Directive" />
1284   <list>
1285      <t>The no-store response directive indicates that a cache &MUST-NOT;
1286      store any part of either the immediate request or response. This
1287      directive applies to both non-shared and shared caches. "&MUST-NOT;
1288      store" in this context means that the cache &MUST-NOT; intentionally
1289      store the information in non-volatile storage, and &MUST; make a
1290      best-effort attempt to remove the information from volatile storage as
1291      promptly as possible after forwarding it.</t>
1292      <t>This directive is NOT a reliable or sufficient mechanism for ensuring
1293      privacy. In particular, malicious or compromised caches might not
1294      recognize or obey this directive, and communications networks might be
1295      vulnerable to eavesdropping.</t>
1296   </list>
1297</t>
1298<t>
1299   <x:dfn>must-revalidate</x:dfn>
1300   <iref item="Cache Directives" primary="true" subitem="must-revalidate" />
1301   <iref item="must-revalidate" primary="true" subitem="Cache Directive" />
1302   <list>
1303      <t>The must-revalidate response directive indicates that once it has
1304      become stale, the response &MUST-NOT; be used to satisfy subsequent
1305      requests without successful validation on the origin server.</t>
1306      <t>The must-revalidate directive is necessary to support reliable
1307      operation for certain protocol features. In all circumstances an
1308      HTTP/1.1 cache &MUST; obey the must-revalidate directive; in particular,
1309      if the cache cannot reach the origin server for any reason, it &MUST;
1310      generate a 504 (Gateway Timeout) response.</t>
1311      <t>Servers &SHOULD; send the must-revalidate directive if and only if
1312      failure to validate a request on the representation could result in
1313      incorrect operation, such as a silently unexecuted financial
1314      transaction.</t>
1315   </list>
1316</t>
1317<t>
1318   <x:dfn>proxy-revalidate</x:dfn>
1319   <iref item="Cache Directives" primary="true" subitem="proxy-revalidate" />
1320   <iref item="proxy-revalidate" primary="true" subitem="Cache Directive" />
1321   <list>
1322      <t>The proxy-revalidate response directive has the same meaning as the
1323      must-revalidate response directive, except that it does not apply to
1324      non-shared caches.</t>
1325   </list>
1326</t>
1327<t>
1328   <x:dfn>max-age</x:dfn>
1329   <iref item="Cache Directives" primary="true" subitem="max-age" />
1330   <iref item="max-age" primary="true" subitem="Cache Directive" />
1331   <list>
1332      <t>The max-age response directive indicates that response is to be
1333      considered stale after its age is greater than the specified number of
1334      seconds.</t>
1335   </list>
1336</t>
1337<t>
1338   <x:dfn>s-maxage</x:dfn>
1339   <iref item="Cache Directives" primary="true" subitem="s-maxage" />
1340   <iref item="s-maxage" primary="true" subitem="Cache Directive" />
1341   <list>
1342      <t>The s-maxage response directive indicates that, in shared caches, the
1343      maximum age specified by this directive overrides the maximum age
1344      specified by either the max-age directive or the Expires header field. The
1345      s-maxage directive also implies the semantics of the proxy-revalidate
1346      response directive.</t>
1347   </list>
1348</t>
1349<t>
1350   <x:dfn>no-transform</x:dfn>
1351   <iref item="Cache Directives" primary="true" subitem="no-transform" />
1352   <iref item="no-transform" primary="true" subitem="Cache Directive" />
1353   <list>
1354      <t>The no-transform response directive indicates that an intermediate
1355      cache or proxy &MUST-NOT; change the Content-Encoding, Content-Range or
1356      Content-Type response header fields, nor the response representation.</t>
1357   </list>
1358</t>
1359
1360</section>
1361
1362<section anchor="cache.control.extensions" title="Cache Control Extensions">
1363<t>
1364   The Cache-Control header field can be extended through the use of one or
1365   more cache-extension tokens, each with an optional value. Informational
1366   extensions (those that do not require a change in cache behavior) can be
1367   added without changing the semantics of other directives. Behavioral
1368   extensions are designed to work by acting as modifiers to the existing base
1369   of cache directives. Both the new directive and the standard directive are
1370   supplied, such that applications that do not understand the new directive
1371   will default to the behavior specified by the standard directive, and those
1372   that understand the new directive will recognize it as modifying the
1373   requirements associated with the standard directive. In this way,
1374   extensions to the cache-control directives can be made without requiring
1375   changes to the base protocol.
1376</t>
1377<t>
1378   This extension mechanism depends on an HTTP cache obeying all of the
1379   cache-control directives defined for its native HTTP-version, obeying
1380   certain extensions, and ignoring all directives that it does not
1381   understand.
1382</t>
1383<t>
1384   For example, consider a hypothetical new response directive called
1385   "community" that acts as a modifier to the private directive. We define
1386   this new directive to mean that, in addition to any non-shared cache, any
1387   cache that is shared only by members of the community named within its
1388   value may cache the response. An origin server wishing to allow the UCI
1389   community to use an otherwise private response in their shared cache(s)
1390   could do so by including
1391</t>
1392<figure><artwork type="example">
1393  Cache-Control: private, community="UCI"
1394</artwork></figure>
1395<t>
1396   A cache seeing this header field will act correctly even if the cache does
1397   not understand the community cache-extension, since it will also see and
1398   understand the private directive and thus default to the safe behavior.
1399</t>
1400<t>
1401   Unrecognized cache directives &MUST; be ignored; it is assumed that any
1402   cache directive likely to be unrecognized by an HTTP/1.1 cache will be
1403   combined with standard directives (or the response's default cacheability)
1404   such that the cache behavior will remain minimally correct even if the
1405   cache does not understand the extension(s).
1406</t>
1407<t>
1408   The HTTP Cache Directive Registry defines the name space for the cache
1409   directives.
1410</t>
1411<t>
1412   Registrations &MUST; include the following fields:
1413   <list style="symbols">
1414      <t>Cache Directive Name</t>
1415      <t>Pointer to specification text</t>
1416   </list>
1417</t>
1418<t>
1419   Values to be added to this name space are subject to IETF review (<xref
1420   target="RFC5226" x:fmt="," x:sec="4.1"/>).
1421</t>
1422<t>
1423   The registry itself is maintained at <eref
1424   target="http://www.iana.org/assignments/http-cache-directives"/>.
1425</t>
1426</section>
1427
1428</section>
1429
1430<section anchor="header.expires" title="Expires">
1431   <iref item="Expires header" primary="true" x:for-anchor="" />
1432   <iref item="Headers" primary="true" subitem="Expires" x:for-anchor="" />
1433   <x:anchor-alias value="Expires"/>
1434   <x:anchor-alias value="Expires-v"/>
1435<t>
1436   The "Expires" header field gives the date/time after which the
1437   response is considered stale. See <xref target="expiration.model" /> for
1438   further discussion of the freshness model.
1439</t>
1440<t>
1441   The presence of an Expires field does not imply that the original resource
1442   will change or cease to exist at, before, or after that time.
1443</t>
1444<t>
1445   The field-value is an absolute date and time as defined by HTTP-date in
1446   &full-date;; it &MUST; be sent in rfc1123-date format.
1447</t>
1448<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Expires"/><iref primary="true" item="Grammar" subitem="Expires-v"/>
1449  <x:ref>Expires</x:ref>   = "Expires" ":" <x:ref>OWS</x:ref> <x:ref>Expires-v</x:ref>
1450  <x:ref>Expires-v</x:ref> = <x:ref>HTTP-date</x:ref>
1451</artwork></figure>
1452<figure>
1453  <preamble>For example</preamble>
1454<artwork type="example">
1455  Expires: Thu, 01 Dec 1994 16:00:00 GMT
1456</artwork></figure>
1457<x:note>
1458   <t>
1459       <x:h>Note:</x:h> If a response includes a Cache-Control field with the
1460       max-age directive (see <xref target="cache-response-directive" />),
1461       that directive overrides the Expires field. Likewise, the s-maxage
1462       directive overrides Expires in shared caches.
1463   </t>
1464</x:note>
1465<t>
1466   HTTP/1.1 servers &SHOULD-NOT; send Expires dates more than one year in the
1467   future.
1468</t>
1469<t>
1470   HTTP/1.1 clients and caches &MUST; treat other invalid date formats,
1471   especially including the value "0", as in the past (i.e., "already
1472   expired").
1473</t>
1474</section>
1475
1476<section anchor="header.pragma" title="Pragma">
1477   <iref item="Pragma header" primary="true" x:for-anchor="" />
1478   <iref item="Headers" primary="true" subitem="Pragma" x:for-anchor="" />
1479   <x:anchor-alias value="extension-pragma"/>
1480   <x:anchor-alias value="Pragma"/>
1481   <x:anchor-alias value="Pragma-v"/>
1482   <x:anchor-alias value="pragma-directive"/>
1483<t>
1484   The "Pragma" general-header field is used to include
1485   implementation-specific directives that might apply to any recipient along
1486   the request/response chain. All pragma directives specify optional behavior
1487   from the viewpoint of the protocol; however, some systems &MAY; require
1488   that behavior be consistent with the directives.
1489</t>
1490<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Pragma"/><iref primary="true" item="Grammar" subitem="Pragma-v"/><iref primary="true" item="Grammar" subitem="pragma-directive"/><iref primary="true" item="Grammar" subitem="extension-pragma"/>
1491  <x:ref>Pragma</x:ref>            = "Pragma" ":" <x:ref>OWS</x:ref> <x:ref>Pragma-v</x:ref>
1492  <x:ref>Pragma-v</x:ref>          = 1#<x:ref>pragma-directive</x:ref>
1493  <x:ref>pragma-directive</x:ref>  = "no-cache" / <x:ref>extension-pragma</x:ref>
1494  <x:ref>extension-pragma</x:ref>  = <x:ref>token</x:ref> [ "=" ( <x:ref>token</x:ref> / <x:ref>quoted-string</x:ref> ) ]
1495</artwork></figure>
1496<t>
1497   When the no-cache directive is present in a request message, an application
1498   &SHOULD; forward the request toward the origin server even if it has a
1499   cached copy of what is being requested. This pragma directive has the same
1500   semantics as the no-cache response directive (see <xref
1501   target="cache-response-directive" />) and is defined here for backward
1502   compatibility with HTTP/1.0. Clients &SHOULD; include both header fields
1503   when a no-cache request is sent to a server not known to be HTTP/1.1
1504   compliant. HTTP/1.1 caches &SHOULD; treat "Pragma: no-cache" as if the
1505   client had sent "Cache-Control: no-cache".
1506</t>
1507<x:note>
1508   <t>
1509      <x:h>Note:</x:h> Because the meaning of "Pragma: no-cache" as a
1510      response-header field is not actually specified, it does not provide a
1511      reliable replacement for "Cache-Control: no-cache" in a response.
1512   </t>
1513</x:note>
1514<t>
1515   This mechanism is deprecated; no new Pragma directives will be defined in
1516   HTTP.
1517</t>
1518</section>
1519
1520<section anchor="header.vary" title="Vary">
1521   <iref item="Vary header" primary="true" x:for-anchor="" />
1522   <iref item="Headers" primary="true" subitem="Vary" x:for-anchor="" />
1523   <x:anchor-alias value="Vary"/>
1524   <x:anchor-alias value="Vary-v"/>
1525<t>
1526   The "Vary" response-header field conveys the set of request-header fields
1527   that were used to select the representation.
1528</t>
1529<t>
1530   Caches use this information, in part, to determine whether a stored
1531   response can be used to satisfy a given request; see <xref
1532   target="caching.negotiated.responses" />. determines, while the response is
1533   fresh, whether a cache is permitted to use the response to reply to a
1534   subsequent request without validation; see <xref
1535   target="caching.negotiated.responses" />.
1536</t>
1537<t>
1538   In uncacheable or stale responses, the Vary field value advises the user
1539   agent about the criteria that were used to select the representation.
1540</t>
1541<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Vary"/><iref primary="true" item="Grammar" subitem="Vary-v"/>
1542  <x:ref>Vary</x:ref>   = "Vary" ":" <x:ref>OWS</x:ref> <x:ref>Vary-v</x:ref>
1543  <x:ref>Vary-v</x:ref> = "*" / 1#<x:ref>field-name</x:ref>
1544</artwork></figure>
1545<t>
1546   The set of header fields named by the Vary field value is known as the
1547   selecting request-header fields.
1548</t>
1549<t>
1550   Servers &SHOULD; include a Vary header field with any cacheable response
1551   that is subject to server-driven negotiation. Doing so allows a cache to
1552   properly interpret future requests on that resource and informs the user
1553   agent about the presence of negotiation on that resource. A server &MAY;
1554   include a Vary header field with a non-cacheable response that is subject
1555   to server-driven negotiation, since this might provide the user agent with
1556   useful information about the dimensions over which the response varies at
1557   the time of the response.
1558</t>
1559<t>
1560   A Vary field value of "*" signals that unspecified parameters not limited
1561   to the request-header fields (e.g., the network address of the client), play a
1562   role in the selection of the response representation; therefore, a cache
1563   cannot determine whether this response is appropriate. The "*" value
1564   &MUST-NOT; be generated by a proxy server.
1565</t>
1566<t>
1567   The field-names given are not limited to the set of standard request-header
1568   fields defined by this specification. Field names are case-insensitive.
1569</t>
1570</section>
1571
1572<section anchor="header.warning" title="Warning">
1573   <iref item="Warning header" primary="true" x:for-anchor="" />
1574   <iref item="Headers" primary="true" subitem="Warning" x:for-anchor="" />
1575   <x:anchor-alias value="Warning"/>
1576   <x:anchor-alias value="Warning-v"/>
1577   <x:anchor-alias value="warning-value"/>
1578   <x:anchor-alias value="warn-agent"/>
1579   <x:anchor-alias value="warn-code"/>
1580   <x:anchor-alias value="warn-date"/>
1581   <x:anchor-alias value="warn-text"/>
1582<t>
1583   The "Warning" general-header field is used to carry additional information
1584   about the status or transformation of a message that might not be reflected
1585   in the message. This information is typically used to warn about possible
1586   incorrectness introduced by caching operations or transformations applied
1587   to the payload of the message.
1588</t>
1589<t>
1590   Warnings can be used for other purposes, both cache-related and otherwise.
1591   The use of a warning, rather than an error status code, distinguishes these
1592   responses from true failures.
1593</t>
1594<t>
1595   Warning header fields can in general be applied to any message, however some
1596   warn-codes are specific to caches and can only be applied to response
1597   messages.
1598</t>
1599<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Warning"/><iref primary="true" item="Grammar" subitem="Warning-v"/><iref primary="true" item="Grammar" subitem="warning-value"/><iref primary="true" item="Grammar" subitem="warn-code"/><iref primary="true" item="Grammar" subitem="warn-agent"/><iref primary="true" item="Grammar" subitem="warn-text"/><iref primary="true" item="Grammar" subitem="warn-date"/>
1600  <x:ref>Warning</x:ref>    = "Warning" ":" <x:ref>OWS</x:ref> <x:ref>Warning-v</x:ref>
1601  <x:ref>Warning-v</x:ref>  = 1#<x:ref>warning-value</x:ref>
1602 
1603  <x:ref>warning-value</x:ref> = <x:ref>warn-code</x:ref> <x:ref>SP</x:ref> <x:ref>warn-agent</x:ref> <x:ref>SP</x:ref> <x:ref>warn-text</x:ref>
1604                                        [<x:ref>SP</x:ref> <x:ref>warn-date</x:ref>]
1605 
1606  <x:ref>warn-code</x:ref>  = 3<x:ref>DIGIT</x:ref>
1607  <x:ref>warn-agent</x:ref> = ( <x:ref>uri-host</x:ref> [ ":" <x:ref>port</x:ref> ] ) / <x:ref>pseudonym</x:ref>
1608                  ; the name or pseudonym of the server adding
1609                  ; the Warning header field, for use in debugging
1610  <x:ref>warn-text</x:ref>  = <x:ref>quoted-string</x:ref>
1611  <x:ref>warn-date</x:ref>  = <x:ref>DQUOTE</x:ref> <x:ref>HTTP-date</x:ref> <x:ref>DQUOTE</x:ref>
1612</artwork></figure>
1613<t>
1614   Multiple warnings can be attached to a response (either by the origin
1615   server or by a cache), including multiple warnings with the same code
1616   number, only differing in warn-text.
1617</t>
1618<t>
1619   When this occurs, the user agent &SHOULD; inform the user of as many of
1620   them as possible, in the order that they appear in the response.
1621</t>
1622<t>
1623   Systems that generate multiple Warning header fields &SHOULD; order them with
1624   this user agent behavior in mind. New Warning header fields &SHOULD; be added
1625   after any existing Warning headers fields.
1626</t>
1627<t>
1628   Warnings are assigned three digit warn-codes. The first digit indicates
1629   whether the Warning is required to be deleted from a stored response after
1630   validation:
1631   <list style="symbols">
1632      <t>1xx Warnings describe the freshness or validation status of the
1633      response, and so &MUST; be deleted by caches after validation. They can
1634      only be generated by a cache when validating a cached entry, and
1635      &MUST-NOT; be generated in any other situation.</t>
1636      <t>2xx Warnings describe some aspect of the representation that is not
1637      rectified by a validation (for example, a lossy compression of the
1638      representation) and &MUST-NOT; be deleted by caches after validation,
1639      unless a full response is returned, in which case they &MUST; be.</t>
1640   </list>
1641</t>
1642<t>
1643   If an implementation sends a message with one or more Warning header fields to a
1644   receiver whose version is HTTP/1.0 or lower, then the sender &MUST; include
1645   in each warning-value a warn-date that matches the Date header field in the
1646   message.
1647</t>
1648<t>
1649   If an implementation receives a message with a warning-value that includes
1650   a warn-date, and that warn-date is different from the Date value in the
1651   response, then that warning-value &MUST; be deleted from the message before
1652   storing, forwarding, or using it. (preventing the consequences of naive
1653   caching of Warning header fields.) If all of the warning-values are deleted
1654   for this reason, the Warning header field &MUST; be deleted as well.
1655</t>
1656<t>
1657   The following warn-codes are defined by this specification, each with a
1658   recommended warn-text in English, and a description of its meaning.
1659</t>
1660<t><?rfc needLines="4"?>
1661   110 Response is stale
1662   <list>
1663      <t>&SHOULD; be included whenever the returned response is stale.</t>
1664   </list>
1665</t>
1666<t><?rfc needLines="4"?>
1667   111 Revalidation failed
1668   <list>
1669      <t>&SHOULD; be included if a cache returns a stale response because an
1670      attempt to validate the response failed, due to an inability to reach
1671      the server.</t>
1672   </list>
1673</t>
1674<t><?rfc needLines="4"?>
1675   112 Disconnected operation
1676   <list>
1677      <t>&SHOULD; be included if the cache is intentionally disconnected from
1678      the rest of the network for a period of time.</t>
1679   </list>
1680</t>
1681<t><?rfc needLines="4"?>
1682   113 Heuristic expiration
1683   <list>
1684      <t>&SHOULD; be included if the cache heuristically chose a freshness
1685      lifetime greater than 24 hours and the response's age is greater than 24
1686      hours.</t>
1687   </list>
1688</t>
1689<t><?rfc needLines="4"?>
1690   199 Miscellaneous warning
1691   <list>
1692      <t>The warning text can include arbitrary information to be presented to
1693      a human user, or logged. A system receiving this warning &MUST-NOT; take
1694      any automated action, besides presenting the warning to the user.</t>
1695   </list>
1696</t>
1697<t><?rfc needLines="4"?>
1698   214 Transformation applied
1699   <list>
1700      <t>&MUST; be added by an intermediate proxy if it applies any
1701      transformation to the representation, such as changing the
1702      content-coding, media-type, or modifying the representation data, unless
1703      this Warning code already appears in the response.</t>
1704   </list>
1705</t>
1706<t><?rfc needLines="4"?>
1707   299 Miscellaneous persistent warning
1708   <list>
1709      <t>The warning text can include arbitrary information to be presented to
1710      a human user, or logged. A system receiving this warning &MUST-NOT; take
1711      any automated action.</t>
1712   </list>
1713</t>
1714</section>
1715
1716</section>
1717
1718<section anchor="history.lists" title="History Lists">
1719<t>
1720   User agents often have history mechanisms, such as "Back" buttons and
1721   history lists, that can be used to redisplay a representation retrieved
1722   earlier in a session.
1723</t>
1724<t>
1725   The freshness model (<xref target="expiration.model"/>) does not
1726   necessarily apply to history mechanisms. I.e., a history mechanism can
1727   display a previous representation even if it has expired.
1728</t>
1729<t>
1730   This does not prohibit the history mechanism from telling the user that a
1731   view might be stale, or from honoring cache directives (e.g.,
1732   Cache-Control: no-store).
1733</t>
1734</section>
1735
1736
1737<section anchor="IANA.considerations" title="IANA Considerations">
1738
1739<section title="Cache Directive Registry" 
1740   anchor="cache.directive.registration">
1741<t>
1742   The registration procedure for HTTP Cache Directives is defined by <xref
1743   target="cache.control.extensions"/> of this document.
1744</t>
1745<t>
1746   The HTTP Cache Directive Registry shall be created at <eref
1747   target="http://www.iana.org/assignments/http-cache-directives"/> and be
1748   populated with the registrations below:
1749</t>
1750<?BEGININC p6-cache.cache-directives ?>
1751<!--AUTOGENERATED FROM extract-cache-directives-defs.xslt, do not edit manually-->
1752<texttable xmlns:my="#my" align="left" suppress-title="true"
1753           anchor="iana.cache.directive.registration.table">
1754   <ttcol>Cache Directive</ttcol>
1755   <ttcol>Reference</ttcol>
1756
1757   <c>max-age</c>
1758   <c>
1759      <xref target="cache-request-directive"/>, <xref target="cache-response-directive"/>
1760   </c>
1761   <c>max-stale</c>
1762   <c>
1763      <xref target="cache-request-directive"/>
1764   </c>
1765   <c>min-fresh</c>
1766   <c>
1767      <xref target="cache-request-directive"/>
1768   </c>
1769   <c>must-revalidate</c>
1770   <c>
1771      <xref target="cache-response-directive"/>
1772   </c>
1773   <c>no-cache</c>
1774   <c>
1775      <xref target="cache-request-directive"/>, <xref target="cache-response-directive"/>
1776   </c>
1777   <c>no-store</c>
1778   <c>
1779      <xref target="cache-request-directive"/>, <xref target="cache-response-directive"/>
1780   </c>
1781   <c>no-transform</c>
1782   <c>
1783      <xref target="cache-request-directive"/>, <xref target="cache-response-directive"/>
1784   </c>
1785   <c>only-if-cached</c>
1786   <c>
1787      <xref target="cache-request-directive"/>
1788   </c>
1789   <c>private</c>
1790   <c>
1791      <xref target="cache-response-directive"/>
1792   </c>
1793   <c>proxy-revalidate</c>
1794   <c>
1795      <xref target="cache-response-directive"/>
1796   </c>
1797   <c>public</c>
1798   <c>
1799      <xref target="cache-response-directive"/>
1800   </c>
1801   <c>s-maxage</c>
1802   <c>
1803      <xref target="cache-response-directive"/>
1804   </c>
1805   <c>stale-if-error</c>
1806   <c>
1807      <xref xmlns:x="http://purl.org/net/xml2rfc/ext" target="RFC5861" x:fmt="," x:sec="4"/>
1808   </c>
1809   <c>stale-while-revalidate</c>
1810   <c>
1811      <xref xmlns:x="http://purl.org/net/xml2rfc/ext" target="RFC5861" x:fmt="," x:sec="3"/>
1812   </c>
1813</texttable>
1814<!--(END)-->
1815<?ENDINC p6-cache.cache-directives ?>
1816</section>
1817
1818<section title="Header Field Registration" anchor="header.field.registration">
1819<t>
1820  The Message Header Field Registry located at <eref 
1821  target="http://www.iana.org/assignments/message-headers/message-header-index.html" />
1822  shall be updated with the permanent registrations below (see <xref target="RFC3864" />):
1823</t>
1824<?BEGININC p6-cache.iana-headers ?>
1825<!--AUTOGENERATED FROM extract-header-defs.xslt, do not edit manually-->
1826<texttable align="left" suppress-title="true" anchor="iana.header.registration.table">
1827   <ttcol>Header Field Name</ttcol>
1828   <ttcol>Protocol</ttcol>
1829   <ttcol>Status</ttcol>
1830   <ttcol>Reference</ttcol>
1831
1832   <c>Age</c>
1833   <c>http</c>
1834   <c>standard</c>
1835   <c>
1836      <xref target="header.age"/>
1837   </c>
1838   <c>Cache-Control</c>
1839   <c>http</c>
1840   <c>standard</c>
1841   <c>
1842      <xref target="header.cache-control"/>
1843   </c>
1844   <c>Expires</c>
1845   <c>http</c>
1846   <c>standard</c>
1847   <c>
1848      <xref target="header.expires"/>
1849   </c>
1850   <c>Pragma</c>
1851   <c>http</c>
1852   <c>standard</c>
1853   <c>
1854      <xref target="header.pragma"/>
1855   </c>
1856   <c>Vary</c>
1857   <c>http</c>
1858   <c>standard</c>
1859   <c>
1860      <xref target="header.vary"/>
1861   </c>
1862   <c>Warning</c>
1863   <c>http</c>
1864   <c>standard</c>
1865   <c>
1866      <xref target="header.warning"/>
1867   </c>
1868</texttable>
1869<!--(END)-->
1870<?ENDINC p6-cache.iana-headers ?>
1871<t>
1872   The change controller is: "IETF (iesg@ietf.org) - Internet Engineering Task
1873   Force".
1874</t>
1875</section>
1876
1877</section>
1878
1879<section anchor="security.considerations" title="Security Considerations">
1880<t>
1881   Caches expose additional potential vulnerabilities, since the contents of
1882   the cache represent an attractive target for malicious exploitation.
1883   Because cache contents persist after an HTTP request is complete, an attack
1884   on the cache can reveal information long after a user believes that the
1885   information has been removed from the network. Therefore, cache contents
1886   need to be protected as sensitive information.
1887</t>
1888</section>
1889
1890<section anchor="ack" title="Acknowledgments">
1891<t>
1892   Much of the content and presentation of the caching design is due to
1893   suggestions and comments from individuals including: Shel Kaphan, Paul
1894   Leach, Koen Holtman, David Morris, and Larry Masinter.
1895</t>
1896</section>
1897
1898</middle>
1899
1900<back>
1901<references title="Normative References">
1902
1903  <reference anchor="Part1">
1904    <front>
1905      <title abbrev="HTTP/1.1">HTTP/1.1, part 1: URIs, Connections, and Message Parsing</title>
1906      <author fullname="Roy T. Fielding" initials="R." role="editor" surname="Fielding">
1907        <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
1908        <address><email>fielding@gbiv.com</email></address>
1909      </author>
1910      <author fullname="Jim Gettys" initials="J." surname="Gettys">
1911        <organization abbrev="Alcatel-Lucent">Alcatel-Lucent Bell Labs</organization>
1912        <address><email>jg@freedesktop.org</email></address>
1913      </author>
1914      <author fullname="Jeffrey C. Mogul" initials="J." surname="Mogul">
1915        <organization abbrev="HP">Hewlett-Packard Company</organization>
1916        <address><email>JeffMogul@acm.org</email></address>
1917      </author>
1918      <author fullname="Henrik Frystyk Nielsen" initials="H." surname="Frystyk">
1919        <organization abbrev="Microsoft">Microsoft Corporation</organization>
1920        <address><email>henrikn@microsoft.com</email></address>
1921      </author>
1922      <author fullname="Larry Masinter" initials="L." surname="Masinter">
1923        <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
1924        <address><email>LMM@acm.org</email></address>
1925      </author>
1926      <author fullname="Paul J. Leach" initials="P." surname="Leach">
1927        <organization abbrev="Microsoft">Microsoft Corporation</organization>
1928        <address><email>paulle@microsoft.com</email></address>
1929      </author>
1930      <author fullname="Tim Berners-Lee" initials="T." surname="Berners-Lee">
1931        <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
1932        <address><email>timbl@w3.org</email></address>
1933      </author>
1934      <author fullname="Yves Lafon" initials="Y." role="editor" surname="Lafon">
1935        <organization abbrev="W3C">World Wide Web Consortium</organization>
1936        <address><email>ylafon@w3.org</email></address>
1937      </author>
1938      <author fullname="Julian F. Reschke" initials="J. F." role="editor" surname="Reschke">
1939        <organization abbrev="greenbytes">greenbytes GmbH</organization>
1940        <address><email>julian.reschke@greenbytes.de</email></address>
1941      </author>
1942      <date month="&ID-MONTH;" year="&ID-YEAR;" />
1943    </front>
1944    <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p1-messaging-&ID-VERSION;" />
1945    <x:source basename="p1-messaging" href="p1-messaging.xml" />
1946  </reference>
1947
1948  <reference anchor="Part2">
1949    <front>
1950      <title abbrev="HTTP/1.1">HTTP/1.1, part 2: Message Semantics</title>
1951      <author fullname="Roy T. Fielding" initials="R." role="editor" surname="Fielding">
1952        <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
1953        <address><email>fielding@gbiv.com</email></address>
1954      </author>
1955      <author fullname="Jim Gettys" initials="J." surname="Gettys">
1956        <organization abbrev="Alcatel-Lucent">Alcatel-Lucent Bell Labs</organization>
1957        <address><email>jg@freedesktop.org</email></address>
1958      </author>
1959      <author fullname="Jeffrey C. Mogul" initials="J." surname="Mogul">
1960        <organization abbrev="HP">Hewlett-Packard Company</organization>
1961        <address><email>JeffMogul@acm.org</email></address>
1962      </author>
1963      <author fullname="Henrik Frystyk Nielsen" initials="H." surname="Frystyk">
1964        <organization abbrev="Microsoft">Microsoft Corporation</organization>
1965        <address><email>henrikn@microsoft.com</email></address>
1966      </author>
1967      <author fullname="Larry Masinter" initials="L." surname="Masinter">
1968        <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
1969        <address><email>LMM@acm.org</email></address>
1970      </author>
1971      <author fullname="Paul J. Leach" initials="P." surname="Leach">
1972        <organization abbrev="Microsoft">Microsoft Corporation</organization>
1973        <address><email>paulle@microsoft.com</email></address>
1974      </author>
1975      <author fullname="Tim Berners-Lee" initials="T." surname="Berners-Lee">
1976        <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
1977        <address><email>timbl@w3.org</email></address>
1978      </author>
1979      <author fullname="Yves Lafon" initials="Y." role="editor" surname="Lafon">
1980        <organization abbrev="W3C">World Wide Web Consortium</organization>
1981        <address><email>ylafon@w3.org</email></address>
1982      </author>
1983      <author fullname="Julian F. Reschke" initials="J. F." role="editor" surname="Reschke">
1984        <organization abbrev="greenbytes">greenbytes GmbH</organization>
1985        <address><email>julian.reschke@greenbytes.de</email></address>
1986      </author>
1987      <date month="&ID-MONTH;" year="&ID-YEAR;" />
1988    </front>
1989    <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p2-semantics-&ID-VERSION;" />
1990    <x:source basename="p2-semantics" href="p2-semantics.xml" />
1991  </reference>
1992
1993  <reference anchor="Part4">
1994    <front>
1995      <title abbrev="HTTP/1.1">HTTP/1.1, part 4: Conditional Requests</title>
1996      <author fullname="Roy T. Fielding" initials="R." role="editor" surname="Fielding">
1997        <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
1998        <address><email>fielding@gbiv.com</email></address>
1999      </author>
2000      <author fullname="Jim Gettys" initials="J." surname="Gettys">
2001        <organization abbrev="Alcatel-Lucent">Alcatel-Lucent Bell Labs</organization>
2002        <address><email>jg@freedesktop.org</email></address>
2003      </author>
2004      <author fullname="Jeffrey C. Mogul" initials="J." surname="Mogul">
2005        <organization abbrev="HP">Hewlett-Packard Company</organization>
2006        <address><email>JeffMogul@acm.org</email></address>
2007      </author>
2008      <author fullname="Henrik Frystyk Nielsen" initials="H." surname="Frystyk">
2009        <organization abbrev="Microsoft">Microsoft Corporation</organization>
2010        <address><email>henrikn@microsoft.com</email></address>
2011      </author>
2012      <author fullname="Larry Masinter" initials="L." surname="Masinter">
2013        <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
2014        <address><email>LMM@acm.org</email></address>
2015      </author>
2016      <author fullname="Paul J. Leach" initials="P." surname="Leach">
2017        <organization abbrev="Microsoft">Microsoft Corporation</organization>
2018        <address><email>paulle@microsoft.com</email></address>
2019      </author>
2020      <author fullname="Tim Berners-Lee" initials="T." surname="Berners-Lee">
2021        <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
2022        <address><email>timbl@w3.org</email></address>
2023      </author>
2024      <author fullname="Yves Lafon" initials="Y." role="editor" surname="Lafon">
2025        <organization abbrev="W3C">World Wide Web Consortium</organization>
2026        <address><email>ylafon@w3.org</email></address>
2027      </author>
2028      <author fullname="Julian F. Reschke" initials="J. F." role="editor" surname="Reschke">
2029        <organization abbrev="greenbytes">greenbytes GmbH</organization>
2030        <address><email>julian.reschke@greenbytes.de</email></address>
2031      </author>
2032      <date month="&ID-MONTH;" year="&ID-YEAR;" />
2033    </front>
2034    <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p4-conditional-&ID-VERSION;" />
2035    <x:source basename="p4-conditional" href="p4-conditional.xml" />
2036  </reference>
2037
2038  <reference anchor="Part5">
2039    <front>
2040      <title abbrev="HTTP/1.1">HTTP/1.1, part 5: Range Requests and Partial Responses</title>
2041      <author fullname="Roy T. Fielding" initials="R." role="editor" surname="Fielding">
2042        <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
2043        <address><email>fielding@gbiv.com</email></address>
2044      </author>
2045      <author fullname="Jim Gettys" initials="J." surname="Gettys">
2046        <organization abbrev="Alcatel-Lucent">Alcatel-Lucent Bell Labs</organization>
2047        <address><email>jg@freedesktop.org</email></address>
2048      </author>
2049      <author fullname="Jeffrey C. Mogul" initials="J." surname="Mogul">
2050        <organization abbrev="HP">Hewlett-Packard Company</organization>
2051        <address><email>JeffMogul@acm.org</email></address>
2052      </author>
2053      <author fullname="Henrik Frystyk Nielsen" initials="H." surname="Frystyk">
2054        <organization abbrev="Microsoft">Microsoft Corporation</organization>
2055        <address><email>henrikn@microsoft.com</email></address>
2056      </author>
2057      <author fullname="Larry Masinter" initials="L." surname="Masinter">
2058        <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
2059        <address><email>LMM@acm.org</email></address>
2060      </author>
2061      <author fullname="Paul J. Leach" initials="P." surname="Leach">
2062        <organization abbrev="Microsoft">Microsoft Corporation</organization>
2063        <address><email>paulle@microsoft.com</email></address>
2064      </author>
2065      <author fullname="Tim Berners-Lee" initials="T." surname="Berners-Lee">
2066        <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
2067        <address><email>timbl@w3.org</email></address>
2068      </author>
2069      <author fullname="Yves Lafon" initials="Y." role="editor" surname="Lafon">
2070        <organization abbrev="W3C">World Wide Web Consortium</organization>
2071        <address><email>ylafon@w3.org</email></address>
2072      </author>
2073      <author fullname="Julian F. Reschke" initials="J. F." role="editor" surname="Reschke">
2074        <organization abbrev="greenbytes">greenbytes GmbH</organization>
2075        <address><email>julian.reschke@greenbytes.de</email></address>
2076      </author>
2077      <date month="&ID-MONTH;" year="&ID-YEAR;" />
2078    </front>
2079    <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p5-range-&ID-VERSION;" />
2080    <x:source basename="p5-range" href="p5-range.xml" />
2081  </reference>
2082
2083  <reference anchor="Part7">
2084    <front>
2085      <title abbrev="HTTP/1.1">HTTP/1.1, part 7: Authentication</title>
2086      <author fullname="Roy T. Fielding" initials="R." role="editor" surname="Fielding">
2087        <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
2088        <address><email>fielding@gbiv.com</email></address>
2089      </author>
2090      <author fullname="Jim Gettys" initials="J." surname="Gettys">
2091        <organization abbrev="Alcatel-Lucent">Alcatel-Lucent Bell Labs</organization>
2092        <address><email>jg@freedesktop.org</email></address>
2093      </author>
2094      <author fullname="Jeffrey C. Mogul" initials="J." surname="Mogul">
2095        <organization abbrev="HP">Hewlett-Packard Company</organization>
2096        <address><email>JeffMogul@acm.org</email></address>
2097      </author>
2098      <author fullname="Henrik Frystyk Nielsen" initials="H." surname="Frystyk">
2099        <organization abbrev="Microsoft">Microsoft Corporation</organization>
2100        <address><email>henrikn@microsoft.com</email></address>
2101      </author>
2102      <author fullname="Larry Masinter" initials="L." surname="Masinter">
2103        <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
2104        <address><email>LMM@acm.org</email></address>
2105      </author>
2106      <author fullname="Paul J. Leach" initials="P." surname="Leach">
2107        <organization abbrev="Microsoft">Microsoft Corporation</organization>
2108        <address><email>paulle@microsoft.com</email></address>
2109      </author>
2110      <author fullname="Tim Berners-Lee" initials="T." surname="Berners-Lee">
2111        <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
2112        <address><email>timbl@w3.org</email></address>
2113      </author>
2114      <author fullname="Yves Lafon" initials="Y." role="editor" surname="Lafon">
2115        <organization abbrev="W3C">World Wide Web Consortium</organization>
2116        <address><email>ylafon@w3.org</email></address>
2117      </author>
2118      <author fullname="Julian F. Reschke" initials="J. F." role="editor" surname="Reschke">
2119        <organization abbrev="greenbytes">greenbytes GmbH</organization>
2120        <address><email>julian.reschke@greenbytes.de</email></address>
2121      </author>
2122      <date month="&ID-MONTH;" year="&ID-YEAR;" />
2123    </front>
2124    <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p7-auth-&ID-VERSION;" />
2125    <x:source basename="p7-auth" href="p7-auth.xml" />
2126  </reference>
2127
2128  <reference anchor="RFC2119">
2129    <front>
2130      <title>Key words for use in RFCs to Indicate Requirement Levels</title>
2131      <author fullname="Scott Bradner" initials="S." surname="Bradner">
2132        <organization>Harvard University</organization>
2133        <address><email>sob@harvard.edu</email></address>
2134      </author>
2135      <date month="March" year="1997" />
2136    </front>
2137    <seriesInfo name="BCP" value="14" />
2138    <seriesInfo name="RFC" value="2119" />
2139  </reference>
2140
2141  <reference anchor="RFC5234">
2142    <front>
2143      <title abbrev="ABNF for Syntax Specifications">Augmented BNF for Syntax Specifications: ABNF</title>
2144      <author initials="D." surname="Crocker" fullname="Dave Crocker" role="editor">
2145        <organization>Brandenburg InternetWorking</organization>
2146        <address>
2147          <email>dcrocker@bbiw.net</email>
2148        </address> 
2149      </author>
2150      <author initials="P." surname="Overell" fullname="Paul Overell">
2151        <organization>THUS plc.</organization>
2152        <address>
2153          <email>paul.overell@thus.net</email>
2154        </address>
2155      </author>
2156      <date month="January" year="2008"/>
2157    </front>
2158    <seriesInfo name="STD" value="68"/>
2159    <seriesInfo name="RFC" value="5234"/>
2160  </reference>
2161 
2162</references>
2163
2164<references title="Informative References">
2165
2166  <reference anchor="RFC1305">
2167    <front>
2168      <title>Network Time Protocol (Version 3) Specification, Implementation</title>
2169      <author fullname="David L. Mills" initials="D." surname="Mills">
2170        <organization>University of Delaware, Electrical Engineering Department</organization>
2171        <address><email>mills@udel.edu</email></address>
2172      </author>
2173      <date month="March" year="1992" />
2174    </front>
2175    <seriesInfo name="RFC" value="1305" />
2176  </reference>
2177
2178  <reference anchor="RFC2616">
2179    <front>
2180      <title>Hypertext Transfer Protocol -- HTTP/1.1</title>
2181      <author fullname="R. Fielding" initials="R." surname="Fielding">
2182        <organization>University of California, Irvine</organization>
2183        <address><email>fielding@ics.uci.edu</email></address>
2184      </author>
2185      <author fullname="J. Gettys" initials="J." surname="Gettys">
2186        <organization>W3C</organization>
2187        <address><email>jg@w3.org</email></address>
2188      </author>
2189      <author fullname="J. Mogul" initials="J." surname="Mogul">
2190        <organization>Compaq Computer Corporation</organization>
2191        <address><email>mogul@wrl.dec.com</email></address>
2192      </author>
2193      <author fullname="H. Frystyk" initials="H." surname="Frystyk">
2194        <organization>MIT Laboratory for Computer Science</organization>
2195        <address><email>frystyk@w3.org</email></address>
2196      </author>
2197      <author fullname="L. Masinter" initials="L." surname="Masinter">
2198        <organization>Xerox Corporation</organization>
2199        <address><email>masinter@parc.xerox.com</email></address>
2200      </author>
2201      <author fullname="P. Leach" initials="P." surname="Leach">
2202        <organization>Microsoft Corporation</organization>
2203        <address><email>paulle@microsoft.com</email></address>
2204      </author>
2205      <author fullname="T. Berners-Lee" initials="T." surname="Berners-Lee">
2206        <organization>W3C</organization>
2207        <address><email>timbl@w3.org</email></address>
2208      </author>
2209      <date month="June" year="1999" />
2210    </front>
2211    <seriesInfo name="RFC" value="2616" />
2212  </reference>
2213
2214  <reference anchor="RFC3864">
2215    <front>
2216      <title>Registration Procedures for Message Header Fields</title>
2217      <author fullname="G. Klyne" initials="G." surname="Klyne">
2218        <organization>Nine by Nine</organization>
2219        <address><email>GK-IETF@ninebynine.org</email></address>
2220      </author>
2221      <author fullname="M. Nottingham" initials="M." surname="Nottingham">
2222        <organization>BEA Systems</organization>
2223        <address><email>mnot@pobox.com</email></address>
2224      </author>
2225      <author fullname="J. Mogul" initials="J." surname="Mogul">
2226        <organization>HP Labs</organization>
2227        <address><email>JeffMogul@acm.org</email></address>
2228      </author>
2229      <date month="September" year="2004" />
2230    </front>
2231    <seriesInfo name="BCP" value="90" />
2232    <seriesInfo name="RFC" value="3864" />
2233  </reference>
2234
2235  <reference anchor='RFC5226'>
2236    <front>
2237      <title>Guidelines for Writing an IANA Considerations Section in RFCs</title>
2238      <author initials='T.' surname='Narten' fullname='T. Narten'>
2239        <organization>IBM</organization>
2240        <address><email>narten@us.ibm.com</email></address>
2241      </author>
2242      <author initials='H.' surname='Alvestrand' fullname='H. Alvestrand'>
2243        <organization>Google</organization>
2244        <address><email>Harald@Alvestrand.no</email></address>
2245      </author>
2246      <date year='2008' month='May' />
2247    </front>
2248    <seriesInfo name='BCP' value='26' />
2249    <seriesInfo name='RFC' value='5226' />
2250  </reference>
2251
2252  <reference anchor='RFC5861'>
2253    <front>
2254      <title abbrev="HTTP stale controls">HTTP Cache-Control Extensions for Stale Content</title>
2255      <author initials="M." surname="Nottingham" fullname="Mark Nottingham">
2256        <organization>Yahoo! Inc.</organization>
2257        <address><email>mnot@yahoo-inc.com</email></address>
2258      </author>
2259      <date month="April" year="2010"/>
2260    </front>
2261    <seriesInfo name='RFC' value='5861' />
2262  </reference>
2263
2264</references>
2265
2266<section anchor="changes.from.rfc.2616" title="Changes from RFC 2616">
2267<t>
2268  Make the specified age calculation algorithm less conservative.
2269  (<xref target="age.calculations"/>)
2270</t>
2271<t>
2272  Remove requirement to consider Content-Location in successful responses
2273  in order to determine the appropriate response to use.
2274  (<xref target="validation.model" />)
2275</t>
2276<t>
2277  Clarify denial of service attack avoidance requirement.
2278  (<xref target="invalidation.after.updates.or.deletions" />)
2279</t>
2280<t>
2281  Do not mention RFC 2047 encoding and multiple languages in Warning header fields
2282  anymore, as these aspects never were implemented.
2283  (<xref target="header.warning" />)
2284</t>
2285</section>
2286
2287<?BEGININC p6-cache.abnf-appendix ?>
2288<section xmlns:x="http://purl.org/net/xml2rfc/ext" title="Collected ABNF" anchor="collected.abnf">
2289<figure>
2290<artwork type="abnf" name="p6-cache.parsed-abnf">
2291<x:ref>Age</x:ref> = "Age:" OWS Age-v
2292<x:ref>Age-v</x:ref> = delta-seconds
2293
2294<x:ref>Cache-Control</x:ref> = "Cache-Control:" OWS Cache-Control-v
2295<x:ref>Cache-Control-v</x:ref> = *( "," OWS ) cache-directive *( OWS "," [ OWS
2296 cache-directive ] )
2297
2298<x:ref>Expires</x:ref> = "Expires:" OWS Expires-v
2299<x:ref>Expires-v</x:ref> = HTTP-date
2300
2301<x:ref>HTTP-date</x:ref> = &lt;HTTP-date, defined in [Part1], Section 6.1&gt;
2302
2303<x:ref>OWS</x:ref> = &lt;OWS, defined in [Part1], Section 1.2.2&gt;
2304
2305<x:ref>Pragma</x:ref> = "Pragma:" OWS Pragma-v
2306<x:ref>Pragma-v</x:ref> = *( "," OWS ) pragma-directive *( OWS "," [ OWS
2307 pragma-directive ] )
2308
2309<x:ref>Vary</x:ref> = "Vary:" OWS Vary-v
2310<x:ref>Vary-v</x:ref> = "*" / ( *( "," OWS ) field-name *( OWS "," [ OWS field-name
2311 ] ) )
2312
2313<x:ref>Warning</x:ref> = "Warning:" OWS Warning-v
2314<x:ref>Warning-v</x:ref> = *( "," OWS ) warning-value *( OWS "," [ OWS warning-value
2315 ] )
2316
2317<x:ref>cache-directive</x:ref> = cache-request-directive / cache-response-directive
2318<x:ref>cache-extension</x:ref> = token [ "=" ( token / quoted-string ) ]
2319<x:ref>cache-request-directive</x:ref> = "no-cache" / "no-store" / ( "max-age="
2320 delta-seconds ) / ( "max-stale" [ "=" delta-seconds ] ) / (
2321 "min-fresh=" delta-seconds ) / "no-transform" / "only-if-cached" /
2322 cache-extension
2323<x:ref>cache-response-directive</x:ref> = "public" / ( "private" [ "=" DQUOTE *( ","
2324 OWS ) field-name *( OWS "," [ OWS field-name ] ) DQUOTE ] ) / (
2325 "no-cache" [ "=" DQUOTE *( "," OWS ) field-name *( OWS "," [ OWS
2326 field-name ] ) DQUOTE ] ) / "no-store" / "no-transform" /
2327 "must-revalidate" / "proxy-revalidate" / ( "max-age=" delta-seconds
2328 ) / ( "s-maxage=" delta-seconds ) / cache-extension
2329
2330<x:ref>delta-seconds</x:ref> = 1*DIGIT
2331
2332<x:ref>extension-pragma</x:ref> = token [ "=" ( token / quoted-string ) ]
2333
2334<x:ref>field-name</x:ref> = &lt;field-name, defined in [Part1], Section 3.2&gt;
2335
2336<x:ref>port</x:ref> = &lt;port, defined in [Part1], Section 2.6&gt;
2337<x:ref>pragma-directive</x:ref> = "no-cache" / extension-pragma
2338<x:ref>pseudonym</x:ref> = &lt;pseudonym, defined in [Part1], Section 9.9&gt;
2339
2340<x:ref>quoted-string</x:ref> = &lt;quoted-string, defined in [Part1], Section 1.2.2&gt;
2341
2342<x:ref>token</x:ref> = &lt;token, defined in [Part1], Section 1.2.2&gt;
2343
2344<x:ref>uri-host</x:ref> = &lt;uri-host, defined in [Part1], Section 2.6&gt;
2345
2346<x:ref>warn-agent</x:ref> = ( uri-host [ ":" port ] ) / pseudonym
2347<x:ref>warn-code</x:ref> = 3DIGIT
2348<x:ref>warn-date</x:ref> = DQUOTE HTTP-date DQUOTE
2349<x:ref>warn-text</x:ref> = quoted-string
2350<x:ref>warning-value</x:ref> = warn-code SP warn-agent SP warn-text [ SP warn-date
2351 ]
2352</artwork>
2353</figure>
2354<figure><preamble>ABNF diagnostics:</preamble><artwork type="inline">
2355; Age defined but not used
2356; Cache-Control defined but not used
2357; Expires defined but not used
2358; Pragma defined but not used
2359; Vary defined but not used
2360; Warning defined but not used
2361</artwork></figure></section>
2362<?ENDINC p6-cache.abnf-appendix ?>
2363
2364<section anchor="change.log" title="Change Log (to be removed by RFC Editor before publication)">
2365
2366<section title="Since RFC 2616">
2367  <t>Extracted relevant partitions from <xref target="RFC2616" />.</t>
2368</section>
2369
2370<section title="Since draft-ietf-httpbis-p6-cache-00">
2371<t>
2372  Closed issues:
2373  <list style="symbols">
2374    <t>
2375      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/9" />: "Trailer" (<eref target="http://purl.org/NET/http-errata#trailer-hop" />)</t>
2376    <t>
2377      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/12" />: "Invalidation after Update or Delete" (<eref target="http://purl.org/NET/http-errata#invalidupd" />)</t>
2378    <t>
2379      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/35" />: "Normative and Informative references"</t>
2380    <t>
2381      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/48" />: "Date reference typo"</t>
2382    <t>
2383      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/49" />: "Connection header text"</t>
2384    <t>
2385      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/65" />: "Informative references"</t>
2386    <t>
2387      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/66" />: "ISO-8859-1 Reference"</t>
2388    <t>
2389      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/86" />: "Normative up-to-date references"</t>
2390    <t>
2391      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/87" />: "typo in 13.2.2"</t>
2392  </list>
2393</t>
2394<t>
2395  Other changes:
2396  <list style="symbols">
2397    <t>Use names of RFC4234 core rules DQUOTE and HTAB (work in progress on <eref
2398        target="http://tools.ietf.org/wg/httpbis/trac/ticket/36" />)</t>
2399  </list>
2400</t>
2401</section>
2402
2403<section title="Since draft-ietf-httpbis-p6-cache-01">
2404<t>
2405  Closed issues:
2406  <list style="symbols">
2407    <t>
2408      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/82" />: "rel_path not used"</t>
2409  </list>
2410</t>
2411<t>
2412  Other changes:
2413  <list style="symbols">
2414    <t>Get rid of duplicate BNF rule names ("host" -&gt; "uri-host") (work in progress
2415      on <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/36" />)</t>
2416    <t>Add explicit references to BNF syntax and rules imported from other parts of the
2417      specification.</t>
2418  </list>
2419</t>
2420</section>
2421
2422<section anchor="changes.since.02" title="Since draft-ietf-httpbis-p6-cache-02">
2423<t>
2424  Ongoing work on IANA Message Header Field Registration (<eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/40" />):
2425  <list style="symbols">
2426    <t>Reference RFC 3984, and update header field registrations for header fields defined in this
2427      document.</t>
2428  </list>
2429</t>
2430</section>
2431
2432<section anchor="changes.since.03" title="Since draft-ietf-httpbis-p6-cache-03">
2433<t>
2434  Closed issues:
2435  <list style="symbols">
2436    <t>
2437      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/106" />: "Vary header classification"</t>
2438  </list>
2439</t>
2440</section>
2441
2442<section anchor="changes.since.04" title="Since draft-ietf-httpbis-p6-cache-04">
2443<t>
2444  Ongoing work on ABNF conversion (<eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/36"/>):
2445  <list style="symbols"> 
2446    <t>
2447      Use "/" instead of "|" for alternatives.
2448    </t>
2449    <t>
2450      Introduce new ABNF rules for "bad" whitespace ("BWS"), optional
2451      whitespace ("OWS") and required whitespace ("RWS").
2452    </t>
2453    <t>
2454      Rewrite ABNFs to spell out whitespace rules, factor out
2455      header field value format definitions.
2456    </t>
2457  </list>
2458</t>
2459</section>
2460
2461<section anchor="changes.since.05" title="Since draft-ietf-httpbis-p6-cache-05">
2462<t>
2463  This is a total rewrite of this part of the specification.
2464</t>
2465<t>
2466  Affected issues:
2467  <list style="symbols">
2468    <t>
2469      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/54" />: "Definition of 1xx Warn-Codes"</t>
2470    <t>
2471      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/60" />: "Placement of 13.5.1 and 13.5.2"</t>
2472    <t>
2473      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/138" />: "The role of Warning and Semantic Transparency in Caching"</t>
2474    <t>
2475      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/139" />: "Methods and Caching"</t>
2476  </list>
2477</t>
2478<t>
2479  In addition: Final work on ABNF conversion (<eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/36"/>):
2480  <list style="symbols"> 
2481    <t>
2482      Add appendix containing collected and expanded ABNF, reorganize ABNF introduction.
2483    </t>
2484  </list>
2485</t>
2486</section>
2487
2488<section anchor="changes.since.06" title="Since draft-ietf-httpbis-p6-cache-06">
2489<t>
2490  Closed issues:
2491  <list style="symbols"> 
2492    <t>
2493      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/161"/>:
2494      "base for numeric protocol elements"
2495    </t>
2496  </list>
2497</t>
2498<t>
2499  Affected issues:
2500  <list style="symbols">
2501    <t>
2502      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/37"/>:
2503      WVary and non-existant headers"
2504    </t>
2505  </list>
2506</t>
2507</section>
2508
2509<section anchor="changes.since.07" title="Since draft-ietf-httpbis-p6-cache-07">
2510<t>
2511  Closed issues:
2512  <list style="symbols"> 
2513    <t>
2514      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/54" />:
2515      "Definition of 1xx Warn-Codes"
2516    </t>
2517    <t>
2518      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/167"/>:
2519      "Content-Location on 304 responses"
2520    </t>
2521    <t>
2522      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/169" />:
2523      "private and no-cache CC directives with headers"
2524    </t>
2525    <t>
2526      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/187"/>:
2527      "RFC2047 and warn-text"
2528    </t>
2529  </list>
2530</t>
2531</section>
2532
2533<section anchor="changes.since.08" title="Since draft-ietf-httpbis-p6-cache-08">
2534<t>
2535  Closed issues:
2536  <list style="symbols"> 
2537    <t>
2538      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/147" />:
2539      "serving negotiated responses from cache: header-specific canonicalization"
2540    </t>
2541    <t>
2542      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/197" />:
2543      "Effect of CC directives on history lists"
2544    </t>
2545  </list>
2546</t>
2547<t>
2548  Affected issues:
2549  <list style="symbols">
2550    <t>
2551      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/199"/>:
2552      Status codes and caching
2553    </t>
2554  </list>
2555</t>
2556<t>
2557  Partly resolved issues:
2558  <list style="symbols"> 
2559    <t>
2560      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/60"/>:
2561      "Placement of 13.5.1 and 13.5.2"
2562    </t>
2563  </list>
2564</t>
2565</section>
2566
2567<section title="Since draft-ietf-httpbis-p6-cache-09" anchor="changes.since.09">
2568<t>
2569  Closed issues:
2570  <list style="symbols"> 
2571    <t>
2572      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/29" />:
2573      "Age calculation"
2574    </t>
2575    <t>
2576      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/168" />:
2577      "Clarify differences between / requirements for request and response CC directives"
2578    </t>
2579        <t>
2580                <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/174" />:
2581                "Caching authenticated responses"
2582        </t>
2583    <t>
2584      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/208" />:
2585      "IANA registry for cache-control directives"
2586    </t>
2587    <t>
2588      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/211" />:
2589      "Heuristic caching of URLs with query components"
2590    </t>
2591  </list>
2592</t>
2593<t>
2594  Partly resolved issues:
2595  <list style="symbols"> 
2596    <t>
2597      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/196"/>:
2598      "Term for the requested resource's URI"
2599    </t>
2600  </list>
2601</t>
2602</section>
2603
2604<section title="Since draft-ietf-httpbis-p6-cache-10" anchor="changes.since.10">
2605<t>
2606  Closed issues:
2607  <list style="symbols"> 
2608    <t>
2609      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/109"/>:
2610      "Clarify entity / representation / variant terminology"
2611    </t>
2612    <t>
2613      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/220"/>:
2614      "consider removing the 'changes from 2068' sections"
2615    </t>
2616    <t>
2617      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/223"/>:
2618      "Allowing heuristic caching for new status codes"
2619    </t>
2620    <t>
2621      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/223"/>:
2622      "Allowing heuristic caching for new status codes"
2623    </t>
2624    <t>
2625      Clean up TODOs and prose in "Combining Responses."
2626    </t>
2627  </list>
2628</t>
2629</section>
2630
2631<section title="Since draft-ietf-httpbis-p6-cache-11" anchor="changes.since.11">
2632<t>
2633  Closed issues:
2634  <list style="symbols"> 
2635    <t>
2636      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/204"/>:
2637      "Text about clock requirement for caches belongs in p6"
2638    </t>
2639  </list>
2640</t>
2641</section>
2642
2643<section title="Since draft-ietf-httpbis-p6-cache-12" anchor="changes.since.12">
2644<t>
2645  None yet.
2646</t>
2647</section>
2648
2649</section>
2650  </back>
2651</rfc>
Note: See TracBrowser for help on using the repository browser.