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

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

Rewrite Pragma section; addresses #292

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