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

Last change on this file since 779 was 779, checked in by julian.reschke@…, 10 years ago

re-organize field descriptions for age calculation, preparing for work on #29.

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