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

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

Update build process from -latest, update Parts != 6

  • Property svn:eol-style set to native
File size: 107.1 KB
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=''>MAY</bcp14>">
5  <!ENTITY MUST "<bcp14 xmlns=''>MUST</bcp14>">
6  <!ENTITY MUST-NOT "<bcp14 xmlns=''>MUST NOT</bcp14>">
7  <!ENTITY OPTIONAL "<bcp14 xmlns=''>OPTIONAL</bcp14>">
8  <!ENTITY RECOMMENDED "<bcp14 xmlns=''>RECOMMENDED</bcp14>">
9  <!ENTITY REQUIRED "<bcp14 xmlns=''>REQUIRED</bcp14>">
10  <!ENTITY SHALL "<bcp14 xmlns=''>SHALL</bcp14>">
11  <!ENTITY SHALL-NOT "<bcp14 xmlns=''>SHALL NOT</bcp14>">
12  <!ENTITY SHOULD "<bcp14 xmlns=''>SHOULD</bcp14>">
13  <!ENTITY SHOULD-NOT "<bcp14 xmlns=''>SHOULD NOT</bcp14>">
14  <!ENTITY ID-VERSION "latest">
15  <!ENTITY ID-MONTH "March">
16  <!ENTITY ID-YEAR "2009">
17  <!ENTITY notation                    "<xref target='Part1' x:rel='#notation' xmlns:x=''/>">
18  <!ENTITY basic-rules                 "<xref target='Part1' x:rel='#basic.rules' xmlns:x=''/>">
19  <!ENTITY uri                         "<xref target='Part1' x:rel='#uri' xmlns:x=''/>">
20  <!ENTITY messaging                   "<xref target='Part1' xmlns:x=''/>">
21  <!ENTITY conditional                 "<xref target='Part4' xmlns:x=''/>">
22  <!ENTITY partial                     "<xref target='Part5' xmlns:x=''/>">
23  <!ENTITY combining-byte-ranges       "<xref target='Part5' x:rel='#combining.byte.ranges' xmlns:x=''/>">
24  <!ENTITY entity-length               "<xref target='Part3' x:rel='#entity.length' xmlns:x=''/>">
25  <!ENTITY full-date                   "<xref target='Part1' x:rel='' xmlns:x=''/>">
26  <!ENTITY header-authorization        "<xref target='Part7' x:rel='#header.authorization' xmlns:x=''/>">
27  <!ENTITY header-connection           "<xref target='Part1' x:rel='#header.connection' xmlns:x=''/>">
28  <!ENTITY header-date                 "<xref target='Part1' x:rel='' xmlns:x=''/>">
29  <!ENTITY header-via                  "<xref target='Part1' x:rel='#header.via' xmlns:x=''/>">
30  <!ENTITY header-last-modified        "<xref target='Part4' x:rel='#header.last-modified' xmlns:x=''/>">
31  <!ENTITY message-headers             "<xref target='Part1' x:rel='#message.headers' xmlns:x=''/>">
32  <!ENTITY message-length              "<xref target='Part1' x:rel='#message.length' xmlns:x=''/>">
33  <!ENTITY safe-methods                "<xref target='Part2' x:rel='#safe.methods' xmlns:x=''/>">
34  <!ENTITY server-driven-negotiation   "<xref target='Part3' x:rel='#server-driven.negotiation' xmlns:x=''/>">
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<?oxygen RNGSchema="../../rfc2629xslt/rfc2629-ext.rnc" type="compact"?>
48<rfc category="std" docName="draft-ietf-httpbis-p6-cache-&ID-VERSION;" ipr="pre5378Trust200902"
49  obsoletes="2616" x:maturity-level="draft" xmlns:x="">
50  <front>
52    <title abbrev="HTTP/1.1, Part 6">HTTP/1.1, part 6: Caching</title>
54    <author fullname="Roy T. Fielding" initials="R." role="editor" surname="Fielding">
55      <organization abbrev="Day Software">Day Software</organization>
56      <address>
57      <postal>
58        <street>23 Corporate Plaza DR, Suite 280</street>
59        <city>Newport Beach</city>
60        <region>CA</region>
61        <code>92660</code>
62        <country>USA</country>
63      </postal>
64      <phone>+1-949-706-5300</phone>
65      <facsimile>+1-949-706-5305</facsimile>
66      <email></email>
67      <uri></uri>
68    </address>
69    </author>
71    <author fullname="Jim Gettys" initials="J." surname="Gettys">
72      <organization>One Laptop per Child</organization>
73      <address>
74      <postal>
75        <street>21 Oak Knoll Road</street>
76        <city>Carlisle</city>
77        <region>MA</region>
78        <code>01741</code>
79        <country>USA</country>
80      </postal>
81      <email></email>
82      <uri></uri>
83    </address>
84    </author>
86    <author fullname="Jeffrey C. Mogul" initials="J." surname="Mogul">
87      <organization abbrev="HP">Hewlett-Packard Company</organization>
88      <address>
89      <postal>
90        <street>HP Labs, Large Scale Systems Group</street>
91        <street>1501 Page Mill Road, MS 1177</street>
92        <city>Palo Alto</city>
93        <region>CA</region>
94        <code>94304</code>
95        <country>USA</country>
96      </postal>
97      <email></email>
98    </address>
99    </author>
101    <author fullname="Henrik Frystyk Nielsen" initials="H." surname="Frystyk">
102      <organization abbrev="Microsoft">Microsoft Corporation</organization>
103      <address>
104      <postal>
105        <street>1 Microsoft Way</street>
106        <city>Redmond</city>
107        <region>WA</region>
108        <code>98052</code>
109        <country>USA</country>
110      </postal>
111      <email></email>
112    </address>
113    </author>
115    <author fullname="Larry Masinter" initials="L." surname="Masinter">
116      <organization abbrev="Adobe Systems">Adobe Systems, Incorporated</organization>
117      <address>
118      <postal>
119        <street>345 Park Ave</street>
120        <city>San Jose</city>
121        <region>CA</region>
122        <code>95110</code>
123        <country>USA</country>
124      </postal>
125      <email></email>
126      <uri></uri>
127    </address>
128    </author>
130    <author fullname="Paul J. Leach" initials="P." surname="Leach">
131      <organization abbrev="Microsoft">Microsoft Corporation</organization>
132      <address>
133      <postal>
134        <street>1 Microsoft Way</street>
135        <city>Redmond</city>
136        <region>WA</region>
137        <code>98052</code>
138      </postal>
139      <email></email>
140    </address>
141    </author>
143    <author fullname="Tim Berners-Lee" initials="T." surname="Berners-Lee">
144      <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
145      <address>
146      <postal>
147        <street>MIT Computer Science and Artificial Intelligence Laboratory</street>
148        <street>The Stata Center, Building 32</street>
149        <street>32 Vassar Street</street>
150        <city>Cambridge</city>
151        <region>MA</region>
152        <code>02139</code>
153        <country>USA</country>
154      </postal>
155      <email></email>
156      <uri></uri>
157    </address>
158    </author>
160    <author fullname="Yves Lafon" initials="Y." role="editor" surname="Lafon">
161      <organization abbrev="W3C">World Wide Web Consortium</organization>
162      <address>
163      <postal>
164        <street>W3C / ERCIM</street>
165        <street>2004, rte des Lucioles</street>
166        <city>Sophia-Antipolis</city>
167        <region>AM</region>
168        <code>06902</code>
169        <country>France</country>
170      </postal>
171      <email></email>
172      <uri></uri>
173    </address>
174    </author>
176    <author fullname="Julian F. Reschke" initials="J. F." role="editor" surname="Reschke">
177      <organization abbrev="greenbytes">greenbytes GmbH</organization>
178      <address>
179      <postal>
180        <street>Hafenweg 16</street>
181        <city>Muenster</city><region>NW</region><code>48155</code>
182        <country>Germany</country>
183      </postal>
184      <phone>+49 251 2807760</phone>   
185      <facsimile>+49 251 2807761</facsimile>   
186      <email></email>       
187      <uri></uri>     
188    </address>
189    </author>
191    <date month="&ID-MONTH;" year="&ID-YEAR;" />
192    <workgroup>HTTPbis Working Group</workgroup>
194    <abstract>
195      <t>The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed,
196        collaborative, hypermedia information systems. This document is Part 6 of the seven-part
197        specification that defines the protocol referred to as "HTTP/1.1" and, taken together,
198        obsoletes RFC 2616. Part 6 defines requirements on HTTP caches and the associated header
199        fields that control cache behavior or indicate cacheable response messages.</t>
200    </abstract>
202    <note title="Editorial Note (To be removed by RFC Editor)">
203      <t>Discussion of this draft should take place on the HTTPBIS working group mailing list
204        ( The current issues list is at <eref
205          target="" /> and related documents
206        (including fancy diffs) can be found at <eref target="" />.</t>
207      <t>The changes in this draft are summarized in <xref target="changes.since.04" />.</t>
208    </note>
209  </front>
210  <middle>
211    <section anchor="caching" title="Introduction">
212      <t>HTTP is typically used for distributed information systems, where performance can be
213        improved by the use of response caches. This document defines aspects of HTTP/1.1 related to
214        caching and reusing response messages.</t>
216      <section anchor="intro.purpose" title="Purpose">
217        <iref item="cache" />
218        <t>An HTTP <x:dfn>cache</x:dfn> is a local store of response messages and the subsystem that
219          controls its message storage, retrieval, and deletion. A cache stores cacheable responses
220          in order to reduce the response time and network bandwidth consumption on future,
221          equivalent requests. Any client or server may include a cache, though a cache cannot be
222          used by a server that is acting as a tunnel.</t>
223        <t>Caching would be useless if it did not significantly improve performance. The goal of
224          caching in HTTP/1.1 is to reuse a prior response message to satisfy a current request. In
225          some cases, a stored response can be reused without the need for a network request,
226          reducing latency and network round-trips; a "freshness" mechanism is used for this purpose
227          (see <xref target="expiration.model" />). Even when a new request is required, it is often
228          possible to reuse all or parts of the payload of a prior response to satisfy the request,
229          thereby reducing network bandwidth usage; a "validation" mechanism is used for this
230          purpose (see <xref target="validation.model" />).</t>
231      </section>
233      <section anchor="intro.terminology" title="Terminology">
234        <t>This specification uses a number of terms to refer to the roles played by participants
235          in, and objects of, HTTP caching.</t>
236        <t>
237          <iref item="cacheable" />
238          <x:dfn>cacheable</x:dfn>
239          <list>
240            <t>A response is cacheable if a cache is allowed to store a copy of the response message
241              for use in answering subsequent requests. Even when a response is cacheable, there may
242              be additional constraints on whether a cache can use the cached copy to satisfy a
243              particular request.</t>
244          </list>
245        </t>
246        <t>
247          <iref item="explicit expiration time" />
248          <x:dfn>explicit expiration time</x:dfn>
249          <list>
250            <t>The time at which the origin server intends that an entity should no longer be
251              returned by a cache without further validation.</t>
252          </list>
253        </t>
254        <t>
255          <iref item="heuristic expiration time" />
256          <x:dfn>heuristic expiration time</x:dfn>
257          <list>
258            <t>An expiration time assigned by a cache when no explicit expiration time is
259            available.</t>
260          </list>
261        </t>
262        <t>
263          <iref item="age" />
264          <x:dfn>age</x:dfn>
265          <list>
266            <t>The age of a response is the time since it was sent by, or successfully validated
267              with, the origin server.</t>
268          </list>
269        </t>
270        <t>
271          <iref item="first-hand" />
272          <x:dfn>first-hand</x:dfn>
273          <list>
274            <t>A response is first-hand if the freshness model is not in use; i.e., its age is
275            0.</t>
276          </list>
277        </t>
278        <t>
279          <iref item="freshness lifetime" />
280          <x:dfn>freshness lifetime</x:dfn>
281          <list>
282            <t>The length of time between the generation of a response and its expiration time. </t>
283          </list>
284        </t>
285        <t>
286          <iref item="fresh" />
287          <x:dfn>fresh</x:dfn>
288          <list>
289            <t>A response is fresh if its age has not yet exceeded its freshness lifetime.</t>
290          </list>
291        </t>
292        <t>
293          <iref item="stale" />
294          <x:dfn>stale</x:dfn>
295          <list>
296            <t>A response is stale if its age has passed its freshness lifetime.</t>
297          </list>
298        </t>
299        <t>
300          <iref item="validator" />
301          <x:dfn>validator</x:dfn>
302          <list>
303            <t>A protocol element (e.g., an entity tag or a Last-Modified time) that is used to find
304              out whether a stored response is an equivalent copy of an entity.</t>
305          </list>
306        </t>
307        <t>
308          <iref item="validator" />
309          <x:dfn>shared cache</x:dfn>
310          <list>
311            <t>A cache that is accessible to more than one user. A non-shared cache is
312              dedicated to a single user.</t>
313          </list>
314        </t>
315      </section>
318      <section anchor="intro.requirements" title="Requirements">
319        <t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD
320          NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as
321          described in <xref target="RFC2119" />.</t>
322        <t>An implementation is not compliant if it fails to satisfy one or more of the &MUST;
323          or &REQUIRED; level requirements for the protocols it implements. An implementation
324          that satisfies all the &MUST; or &REQUIRED; level and all the &SHOULD; level
325          requirements for its protocols is said to be "unconditionally compliant"; one that
326          satisfies all the &MUST; level requirements but not all the &SHOULD; level
327          requirements for its protocols is said to be "conditionally compliant."</t>
328      </section>
331<section title="Syntax Notation" anchor="notation">
332  <x:anchor-alias value="ALPHA"/>
333  <x:anchor-alias value="CR"/>
334  <x:anchor-alias value="DIGIT"/>
335  <x:anchor-alias value="DQUOTE"/>
336  <x:anchor-alias value="LF"/>
337  <x:anchor-alias value="OCTET"/>
338  <x:anchor-alias value="SP"/>
339  <x:anchor-alias value="VCHAR"/>
340  <x:anchor-alias value="WSP"/>
342  This specification uses the ABNF syntax defined in &notation;.
343  The following core rules are included by
344  reference, as defined in <xref target="RFC5234" x:fmt="," x:sec="B.1"/>:
345  ALPHA (letters), CR (carriage return), CRLF (CR LF), CTL (controls),
346  DIGIT (decimal 0-9), DQUOTE (double quote),
347  HEXDIG (hexadecimal 0-9/A-F/a-f), LF (line feed),
348  OCTET (any 8-bit sequence of data), SP (space),
349  VCHAR (any visible USASCII character),
350  and WSP (whitespace).
353<section title="Core Rules" anchor="core.rules">
354  <x:anchor-alias value="quoted-string"/>
355  <x:anchor-alias value="token"/>
356  <x:anchor-alias value="OWS"/>
358  The core rules below are defined in &basic-rules;:
360<figure><artwork type="abnf2616">
361  <x:ref>quoted-string</x:ref> = &lt;quoted-string, defined in &basic-rules;&gt;
362  <x:ref>token</x:ref>         = &lt;token, defined in &basic-rules;&gt;
363  <x:ref>OWS</x:ref>           = &lt;OWS, defined in &basic-rules;&gt;
367<section title="ABNF Rules defined in other Parts of the Specification" anchor="abnf.dependencies">
368  <x:anchor-alias value="field-name"/>
369  <x:anchor-alias value="HTTP-date"/>
370  <x:anchor-alias value="port"/>
371  <x:anchor-alias value="pseudonym"/>
372  <x:anchor-alias value="uri-host"/>
374  The ABNF rules below are defined in other parts:
376<figure><!--Part1--><artwork type="abnf2616">
377  <x:ref>field-name</x:ref>    = &lt;field-name, defined in &message-headers;&gt;
378  <x:ref>HTTP-date</x:ref>     = &lt;HTTP-date, defined in &full-date;&gt;
379  <x:ref>port</x:ref>          = &lt;port, defined in &uri;&gt;
380  <x:ref>pseudonym</x:ref>     = &lt;pseudonym, defined in &header-via;&gt;
381  <x:ref>uri-host</x:ref>      = &lt;uri-host, defined in &uri;&gt;
388    <section anchor="caching.overview" title="Cache Operation">
390      <section anchor="response.cacheability" title="Response Cacheability">
391        <t>A cache &MAY; store a response to any request, provided that: <list style="symbols">
392            <t>the "no-store" cache directive (see <xref target="header.cache-control" />) does not
393              appear in request or response headers.</t>
394            <t>the cache understands partial responses, if the response is partial or incomplete
395              (see <xref target="errors.or.incomplete.response.cache.behavior" />).</t>
396          </list>
397        </t>
398        <t>Note that in normal operation, most caches will not store a response that has neither a
399          cache validator nor an explicit expiration time, as such responses are not usually
400          useful to store. However, caches are not prohibited from storing such responses.</t>
402        <section anchor="errors.or.incomplete.response.cache.behavior"
403          title="Storing Incomplete Responses">
404          <t>A cache that receives an incomplete response (for example, with fewer bytes of data
405            than specified in a Content-Length header) &MAY; store the response <cref source="JRE">Indeed? Is this new?</cref>. However, the
406            cache &MUST; treat this as a partial response &partial;. Partial responses
407            &MAY; be combined as described in &combining-byte-ranges;; the result might be a
408            full response or might still be partial. A cache &MUST-NOT; return a partial
409            response to a client without explicitly marking it as such using the 206 (Partial
410            Content) status code.</t>
411          <t>A cache that does not support the Range and Content-Range headers &MUST-NOT; store
412            incomplete or partial responses.</t>
413        </section>
415      </section>
417      <section anchor="constructing.responses.from.caches"
418        title="Constructing Responses from Caches">
419        <t>For a given request, a non-shared cache &MAY; return a stored response, provided
420          that: <list style="symbols">
421            <t>the presented request-URI and that of the stored response match (see
422              <cref>TBD</cref>), and</t>
423            <t>selecting headers nominated by the stored response (if any) match (see <xref
424                target="caching.negotiated.responses" />), and</t>
425            <t>the stored response is either fresh (see <xref target="expiration.model" />) or
426              allowed to be served stale (see <xref target="serving.stale.responses" />), and</t>
427            <t>the presented request and stored response are free from directives that would prevent
428              it (see <xref target="header.cache-control" /> and <xref target="header.pragma"
429             />).</t>
430          </list>
431        </t>
432        <t>
433          <cref>ISSUE: This doesn't specify whether the request method is part of the cache
434          key.</cref>
435        </t>
436        <t>A shared cache &MAY; return a stored response, provided that: <list style="symbols">
437            <t>the criteria for non-shared caches above are met (including directives for shared
438              caches; see <xref target="header.cache-control" />), and</t>
439            <t>the stored response was not associated with an authenticated request (see
440              &header-authorization;), unless explicitly allowed (see <xref
441                target="header.cache-control" />).</t>
442          </list>
443        </t>
444        <t>All responses satisfied from cache &MUST; include an appropriate Age header field
445            (<xref target="header.age" />).</t>
446        <t>All request methods other than GET and HEAD &MUST; be written through the cache to
447          the origin server. Note that such requests might invalidate already stored responses; see
448            <xref target="invalidation.after.updates.or.deletions" />.</t>
449        <t>Caches &SHOULD; use the most recent response (as determined by the Date header) when
450          more than one applicable response is stored. They &MAY; also send a request with
451          "Cache-Control: max-age=0" or "Cache-Control: no-cache" to disambiguate which response to
452          use.</t>
453        <t>In the process of determining whether a stored response is fresh or not, a cache
454          &MAY; validate that response (see <xref target="validation.model" />).</t>
455        <t>
456          <cref>TODO: end-to-end and hop-by-hop headers, non-modifiable headers removed; re-spec in
457            p1</cref>
458        </t>
459      </section>
464      <section anchor="expiration.model" title="Freshness Model">
466        <t>HTTP caching works best when caches can entirely avoid making requests to the origin
467          server. When a response is "fresh" in the cache, it can be used to satisfy subsequent
468          requests without contacting the origin server. This is also referred to as "expiration."<cref source="JRE">What exactly is called 'expiration'?</cref>.</t>
469        <t>Expiration applies only to responses taken from a cache and not to first-hand responses.
470          It cannot be used to force a user agent to refresh its display or reload a resource; its
471          semantics apply only to caches. See <xref target="history.lists" /> for an explanation of
472          the difference between caches and history mechanisms.</t>
473        <t>The primary mechanism for avoiding requests is for an origin server to provide an
474          explicit expiration time in the future, using either the Expires header (<xref
475            target="header.expires" />) or the max-age response cache directive (<xref
476            target="cache-response-directive" />). Generally, origin servers will assign future
477          explicit expiration times to responses in the belief that the entity is not likely to
478          change in a semantically significant way before the expiration time is reached. This
479          normally preserves cache correctness, as long as the server's expiration times are
480          carefully chosen.</t>
481        <t>If an origin server wishes to force a cache to validate every request, it &MAY;
482          assign an explicit expiration time in the past. This means that the response is always
483          stale, so that caches should validate it before using it for subsequent requests.</t>
484        <t>Since origin servers do not always provide explicit expiration times, HTTP caches may
485          assign heuristic expiration times when they are not specified, employing algorithms that
486          use other header values (such as the Last-Modified time) to estimate a plausible
487          expiration time. The HTTP/1.1 specification does not provide specific algorithms, but does
488          impose worst-case constraints on their results.</t>
489        <t>The calculation to determine if a response has expired is:</t>
490        <figure>
491          <artwork type="code">
492   response_is_fresh = (freshness_lifetime &gt; current_age)
494        </figure>
496        <t>The freshness_lifetime is defined in <xref target="calculating.freshness.lifetime" />;
497          the current_age is defined in <xref target="age.calculations" />.</t>
498        <t>Additionally, clients may need to influence freshness calculation. They can do this using
499          several request cache directives, with the effect of either increasing or loosening
500          constraints on freshness. See <xref target="cache-request-directive" />.</t>
501        <t>
502          <cref>ISSUE: there are not requirements directly applying to cache-request-directives and
503            freshness.</cref>
504        </t>
506        <section anchor="calculating.freshness.lifetime" title="Calculating Freshness Lifetime">
507          <t>A cache can calculate the freshness lifetime (denoted as freshness_lifetime) of a
508            response by using the first match of: <list style="symbols">
509              <t>If the cache is shared and the s-maxage response cache directive (<xref
510                  target="cache-response-directive" />) is present, use its value, or</t>
511              <t>If the max-age response cache directive (<xref target="cache-response-directive"
512                 />) is present, use its value, or</t>
513              <t>If the Expires response header (<xref target="header.expires" />) is present, use
514                its value minus the value of the Date response header, or</t>
515              <t>Otherwise, no explicit expiration time is present in the response, but a heuristic
516                may be used; see <xref target="heuristic.freshness" />.</t>
517            </list>
518          </t>
519          <t>Note that this calculation is not vulnerable to clock skew, since all of the
520            information comes from the origin server.</t>
522          <section anchor="heuristic.freshness" title="Using Heuristic Freshness">
523            <t>If no explicit expiration time is present in a stored response that has a status code
524              of 200, 203, 206, 300, 301 or 410, a heuristic expiration time &MAY; be
525              calculated. Heuristics &MUST-NOT; be used for other response status codes. </t>
526            <t> When a heuristic is used to calculate freshness lifetime, the cache &SHOULD;
527              attach a Warning header with a 113 warn-code to the response if its current_age is
528              more than 24 hours and such a warning is not already present.</t>
529            <t>Also, if the response has a Last-Modified header (&header-last-modified;), the
530              heuristic expiration value &SHOULD; be no more than some fraction of the interval
531              since that time. A typical setting of this fraction might be 10%.</t>
532            <t>
533              <cref>REVIEW: took away HTTP/1.0 query string heuristic uncacheability.</cref>
534            </t>
535          </section>
536        </section>
538        <section anchor="age.calculations" title="Calculating Age">
539          <t>HTTP/1.1 uses the Age response-header to convey the estimated age of the response
540            message when obtained from a cache. The Age field value is the cache's estimate of the
541            amount of time since the response was generated or validated by the origin server. In
542            essence, the Age value is the sum of the time that the response has been resident in
543            each of the caches along the path from the origin server, plus the amount of time it has
544            been in transit along network paths.</t>
545          <t>When a response is generated from a stored response, the cache &MUST; include a
546            single Age header field in the response with a value equal to the stored response's
547            current_age, calculated using the algorithm described in this section.</t>
548          <t>The term "age_value" denotes the value of the Age header, in a form appropriate for
549            arithmetic operations.</t>
550          <t>HTTP/1.1 requires origin servers to send a Date header, if possible, with every
551            response, giving the time at which the response was generated (see &header-date;).
552            The term "date_value" denotes the value of the Date header, in a form appropriate for
553            arithmetic operations.</t>
554          <t>The term "now" means "the current value of the clock at the host performing the
555            calculation." Hosts that use HTTP, but especially hosts running origin servers and
556            caches, &SHOULD; use NTP <xref target="RFC1305" /> or some similar protocol to
557            synchronize their clocks to a globally accurate time standard.</t>
558          <t>A response's age can be calculated in two entirely independent ways: <list
559              style="numbers">
560              <t>now minus date_value, if the local clock is reasonably well synchronized to the
561                origin server's clock. If the result is negative, the result is replaced by zero.</t>
563              <t>age_value, if all of the caches along the response path implement HTTP/1.1.</t>
564            </list>
565          </t>
566          <t>These are combined as</t>
567          <figure>
568            <artwork type="code">
569    corrected_received_age = max(now - date_value, age_value)
571          </figure>
572          <t>When an Age value is received, it &MUST; be interpreted relative to the time the
573            request was initiated, not the time that the response was received.</t>
574          <figure>
575            <artwork type="code">
576   corrected_initial_age = corrected_received_age
577                         + (now - request_time)
579          </figure>
580          <t>where "request_time" is the time (according to the local clock) when the request that
581            elicited this response was sent.</t>
582          <t>The current_age of a stored response can then be calculated by adding the amount of
583            time (in seconds) since the stored response was last validated by the origin server to
584            the corrected_initial_age.</t>
585          <t>In summary:</t>
586          <figure>
587            <artwork type="code">
588   /*
589    * age_value
590    *      is the value of Age: header received by the cache with
591    *              this response.
592    * date_value
593    *      is the value of the origin server's Date: header
594    * request_time
595    *      is the (local) time when the cache made the request
596    *              that resulted in this stored response
597    * response_time
598    *      is the (local) time when the cache received the
599    *              response
600    * now
601    *      is the current (local) time
602    */
604   apparent_age = max(0, response_time - date_value);
605   corrected_received_age = max(apparent_age, age_value);
606   response_delay = response_time - request_time;
607   corrected_initial_age = corrected_received_age + response_delay;
608   resident_time = now - response_time;
609   current_age   = corrected_initial_age + resident_time;
611          </figure>
612        </section>
614        <section anchor="serving.stale.responses" title="Serving Stale Responses">
615          <t>A "stale" response is one that either has explicit expiry information, or is allowed to
616            have heuristic expiry calculated, but is not fresh according to the calculations in
617              <xref target="expiration.model" />. </t>
618          <t>Caches &MUST-NOT; return a stale response if it is prohibited by an explicit
619            in-protocol directive (e.g., by a "no-store" or "no-cache" cache directive, a
620            "must-revalidate" cache-response-directive, or an applicable "s-maxage" or
621            "proxy-revalidate" cache-response-directive; see <xref target="cache-response-directive"
622             />). </t>
623          <t>Caches &MAY; return a stale response if disconnected or explicitly allowed (e.g.,
624            the max-stale request directive; see <xref target="cache-request-directive" />).</t>
625          <t>Otherwise, caches &SHOULD-NOT; return stale responses.</t>
626          <t>Stale responses &SHOULD; have a Warning header with the 110 warn-code (see <xref
627              target="header.warning" />).</t>
628          <t>If a cache receives a first-hand response (either an entire response, or a 304 (Not
629            Modified) response) that it would normally forward to the requesting client, and the
630            received response is no longer fresh, the cache &SHOULD; forward it to the
631            requesting client without adding a new Warning (but without removing any existing
632            Warning headers). A cache &SHOULD-NOT; attempt to validate a response simply because
633            that response became stale in transit.</t>
634        </section>
635      </section>
638      <section anchor="validation.model" title="Validation Model">
639        <t>When a cache has a stale response that it would like to use, it &SHOULD; first check
640          with the origin server (or possibly an intermediate cache with a fresh response) to see if
641          it is still usable. This is called "validating" or "revalidating" the stored response.</t>
642        <t>HTTP's conditional request mechanism, defined in &conditional;, is used to avoid
643          retransmitting the response payload when the stored response is valid. When a stored
644          response includes one or more "cache validators", such as the field values of an ETag or
645          Last-Modified header field, then a validating GET request &SHOULD; be made conditional
646          to those field values. The server checks the conditional request's validator against the
647          current state of the requested resource and, if they match, the server responds with a 304
648          (Not Modified) status code to indicate that the stored response can be refreshed and
649          reused without retransmitting the response payload. If the validator does not match the
650          current state of the requested resource, then the server returns a full response,
651          including payload, so that the request can be satisfied and the stored response supplanted
652          without the need for an additional network round-trip.</t>
653        <t>See <xref target="combining.headers" /> regarding combining cached headers with those in
654          a 304 response.</t>
655        <t>If a cache receives a 5xx response while attempting to validate a response, it &MAY;
656          either forward this response to the requesting client, or act as if the server failed to
657          respond. In the latter case, it &MAY; return a previously received response unless the
658          stored response includes the "must-revalidate" cache directive (see <xref
659            target="cache-response-directive" />).</t>
660      </section>
662      <section anchor="invalidation.after.updates.or.deletions"
663        title="Request Methods that Invalidate">
664        <t>Because unsafe methods &safe-methods; have the potential for changing state on the
665          origin server, intervening caches have the opportunity to use them to keep their contents
666          up-to-date.</t>
667        <t>The following HTTP methods &MUST; cause a cache to invalidate the Request-URI as well
668          as the Location and Content-Location headers (if present): <list style="symbols">
669            <t>PUT</t>
670            <t>DELETE</t>
671            <t>POST</t>
672          </list>
673        </t>
674        <t>An invalidation based on the URI in a Location or Content-Location header &MUST-NOT;
675          be performed if the host part of that URI differs from the host part in the Request-URI.
676          This helps prevent denial of service attacks.</t>
677        <t>
678          <cref>TODO: "host part" needs to be specified better.</cref>
679        </t>
680        <t>A cache that passes through requests for methods it does not understand &SHOULD;
681          invalidate the Request-URI.</t>
682        <t>Here, "invalidate" means that the cache will either remove all stored responses related
683          to the Request-URI, or will mark these as "invalid" and in need of a mandatory validation
684          before they can be returned in response to a subsequent request.</t>
685        <t>Note that this does not guarantee that all appropriate responses are invalidated. For
686          example, the request that caused the change at the origin server might not have gone
687          through the cache where a response is stored.</t>
688        <t>
689          <cref>TODO: specify that only successful (2xx, 3xx?) responses invalidate.</cref>
690        </t>
691      </section>
697      <section anchor="caching.negotiated.responses" title="Caching Negotiated Responses">
698        <t>Use of server-driven content negotiation (&server-driven-negotiation;), as indicated
699          by the presence of a Vary header field (<xref target="header.vary" />) in a response, alters
700          the conditions and procedure by which a cache can use the response for subsequent
701          requests.</t>
702        <t>When the cache receives a subsequent request which may be satisfied by a stored responses
703          that include a Vary header field, it &MUST-NOT; use it to satisfy the request unless
704          all of the selecting request-headers present in the new request match the corresponding
705          stored request-headers from the original request.</t>
706        <t>The selecting request-headers from two requests are defined to match if and only if the
707          selecting request-headers in the first request can be transformed to the selecting
708          request-headers in the second request by adding or removing linear white space
709          <cref>[ref]</cref> at places where this is allowed by the corresponding ABNF, and/or
710          combining multiple message-header fields with the same field name following the rules
711          about message headers in &message-headers;.</t>
712        <t>A Vary header field-value of "*" always fails to match, and subsequent requests on that
713          resource can only be properly interpreted by the origin server.</t>
714        <t>If the selecting request header fields for the stored response do not match the selecting
715          request header fields of the new request, then the cache &MUST-NOT; use the stored
716          response to satisfy the request unless it first relays the new request to the origin
717          server in a conditional request and the server responds with 304 (Not Modified), including
718          an entity tag or Content-Location that indicates the entity to be used.</t>
719        <t>If one or more applicable stored response has an entity tag, the forwarded request
720          &SHOULD; be conditional and include all of these entity tags in an If-None-Match
721          header field. This conveys to the server the set of entities currently stored by the
722          cache, so that if any one of these entities matches the requested entity, the server can
723          use the ETag header field in its 304 (Not Modified) response to tell the cache which
724          stored response is appropriate. If the entity-tag of the new response matches that of an
725          existing stored resopnse, the new response &SHOULD; be used to update its header
726          fields, and the result &MUST; be returned to the client.</t>
727        <t>If any of the existing stored responses contains only partial content for the associated
728          entity, its entity-tag &SHOULD-NOT; be included in the If-None-Match header field
729          unless the request is for a range that would be fully satisfied by that stored response.</t>
730        <t>If a cache receives a successful response whose Content-Location field matches that of an
731          existing stored response for the same Request-URI, whose entity-tag differs from that of
732          the existing stored response, and whose Date is more recent than that of the existing
733          response, the existing response &SHOULD-NOT; be returned in response to future
734          requests and &SHOULD; be deleted from the cache.</t>
735        <t>
736          <cref>TODO: this still needs work.</cref>
737        </t>
738      </section>
741      <section anchor="combining.headers" title="Combining Responses">
742        <t>When a cache receives a 304 (Not Modified) response or a 206 (Partial Content) response,
743          it needs to update the stored response with the new one, so that the updated response can
744          be sent to the client.</t>
745        <t>If the status code is 304 (Not Modified), the cache &SHOULD; use the stored entity-body as
746          the updated entity-body. If the status code is 206 (Partial Content) and the ETag or
747          Last-Modified headers match exactly, the cache &MAY; combine the stored entity-body in
748          the stored response with the updated entity-body received in the response and use the
749          result as the updated entity-body (see &combining-byte-ranges;).</t>
750        <t>The stored response headers are used for the updated response, except that <list
751            style="symbols">
752            <t>any stored Warning headers with warn-code 1xx (see <xref target="header.warning" />)
753              &MUST; be deleted from the stored response and the forwarded response.</t>
754            <t>any stored Warning headers with warn-code 2xx &MUST; be retained in the stored
755              response and the forwarded response.</t>
756            <t>any headers provided in the 304 or 206 response &MUST; replace the corresponding
757              headers from the stored response.</t>
758          </list>
759        </t>
760        <t>A cache &MUST; also replace stored headers with corresponding headers received in the
761          incoming response, except for Warning headers as described immediately above. If a header
762          field-name in the incoming response matches more than one header in the stored response,
763          all such old headers &MUST; be replaced. it &MAY; store the combined
764        entity-body.</t>
765        <t><cref>ISSUE: discuss how to handle HEAD updates</cref></t>
766      </section>
768    </section>
773    <section anchor="header.fields" title="Header Field Definitions">
774      <t>This section defines the syntax and semantics of HTTP/1.1 header fields related to caching.</t>
775      <t>For entity-header fields, both sender and recipient refer to either the client or the
776        server, depending on who sends and who receives the entity.</t>
778      <section anchor="header.age" title="Age">
779        <iref item="Age header" primary="true" x:for-anchor="" />
780        <iref item="Headers" primary="true" subitem="Age" x:for-anchor="" />
781        <x:anchor-alias value="Age"/>
782        <x:anchor-alias value="Age-v"/>
783        <x:anchor-alias value="age-value"/>
784        <t>      The response-header field "Age" conveys the sender's estimate of the amount of time since
785          the response (or its validation) was generated at the origin server. Age values are
786          calculated as specified in <xref target="age.calculations" />.</t>
787<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Age"/><iref primary="true" item="Grammar" subitem="Age-v"/>
788  <x:ref>Age</x:ref>   = "Age" ":" <x:ref>OWS</x:ref> <x:ref>Age-v</x:ref>
789  <x:ref>Age-v</x:ref> = <x:ref>delta-seconds</x:ref>
791        <t anchor="">
792          <x:anchor-alias value="delta-seconds" /> Age field-values are non-negative decimal
793          integers, representing time in seconds.</t>
794        <figure>
795          <artwork type="abnf2616"><iref item="Grammar" primary="true" subitem="delta-seconds" />
796  <x:ref>delta-seconds</x:ref>  = 1*<x:ref>DIGIT</x:ref>
798        </figure>
799        <t>If a cache receives a value larger than the largest positive integer it can represent, or
800          if any of its age calculations overflows, it &MUST; transmit an Age header with a
801          field-value of 2147483648 (2<x:sup>31</x:sup>). Caches &SHOULD; use an arithmetic type
802          of at least 31 bits of range.</t>
803        <t>The presence of an Age header field in a response implies that a response is not
804          first-hand. However, the converse is not true, since HTTP/1.0 caches may not implement the
805          Age header field.</t>
806      </section>
808      <section anchor="header.cache-control" title="Cache-Control">
809        <iref item="Cache-Control header" primary="true" x:for-anchor="" />
810        <iref item="Headers" primary="true" subitem="Cache-Control" x:for-anchor="" />
811        <x:anchor-alias value="Cache-Control"/>
812        <x:anchor-alias value="Cache-Control-v"/>
813        <x:anchor-alias value="cache-directive"/>
814        <x:anchor-alias value="cache-extension"/>
815        <x:anchor-alias value="cache-request-directive"/>
816        <x:anchor-alias value="cache-response-directive"/>
817        <t>The general-header field "Cache-Control" is used to specify directives that &MUST; be
818          obeyed by all caches along the request/response chain. The directives specify behavior
819          intended to prevent caches from adversely interfering with the request or response. Cache
820          directives are unidirectional in that the presence of a directive in a request does not
821          imply that the same directive is to be given in the response. <list>
822            <t>Note that HTTP/1.0 caches might not implement Cache-Control and might only implement
823              Pragma: no-cache (see <xref target="header.pragma" />).</t>
824          </list>
825        </t>
826        <t>Cache directives &MUST; be passed through by a proxy or gateway application,
827          regardless of their significance to that application, since the directives might be
828          applicable to all recipients along the request/response chain. It is not possible to
829          target a directive to a specific cache.</t>
830<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"/>
831  <x:ref>Cache-Control</x:ref>   = "Cache-Control" ":" <x:ref>OWS</x:ref> <x:ref>Cache-Control-v</x:ref>
832  <x:ref>Cache-Control-v</x:ref> = 1#<x:ref>cache-directive</x:ref>
834  <x:ref>cache-directive</x:ref> = <x:ref>cache-request-directive</x:ref>
835     / <x:ref>cache-response-directive</x:ref>
837  <x:ref>cache-extension</x:ref> = <x:ref>token</x:ref> [ "=" ( <x:ref>token</x:ref> / <x:ref>quoted-string</x:ref> ) ]
840        <section anchor="cache-request-directive" title="Request Cache-Control Directives">
841          <x:anchor-alias value="cache-request-directive" />
843          <figure>
844            <artwork type="abnf2616"><iref item="Grammar" primary="true" subitem="cache-request-directive" />
845  <x:ref>cache-request-directive</x:ref> =
846       "no-cache"
847     / "no-store"
848     / "max-age" "=" <x:ref>delta-seconds</x:ref>
849     / "max-stale" [ "=" <x:ref>delta-seconds</x:ref> ]
850     / "min-fresh" "=" <x:ref>delta-seconds</x:ref>
851     / "no-transform"
852     / "only-if-cached"
853     / <x:ref>cache-extension</x:ref>
855          </figure>
858          <t>
859            <iref item="Cache Directives" primary="true" subitem="no-cache" />
860            <iref item="no-cache" primary="true" subitem="Cache Directive" /> no-cache <list>
861              <t>The no-cache request directive indicates that a stored response &MUST-NOT; be
862                used to satisfy the request without successful validation on the origin server. </t>
863            </list>
864          </t>
865          <t>
866            <iref item="Cache Directives" primary="true" subitem="no-store" />
867            <iref item="no-store" primary="true" subitem="Cache Directive" /> no-store <list>
868              <t>The no-store request directive indicates that a cache &MUST-NOT; store any part
869                of either this request or any response to it. This directive applies to both
870                non-shared and shared caches. "&MUST-NOT; store" in this context means that the
871                cache &MUST-NOT; intentionally store the information in non-volatile storage,
872                and &MUST; make a best-effort attempt to remove the information from volatile
873                storage as promptly as possible after forwarding it.</t>
874              <t>This directive is NOT a reliable or sufficient mechanism for ensuring privacy. In
875                particular, malicious or compromised caches might not recognize or obey this
876                directive, and communications networks may be vulnerable to eavesdropping.</t>
877            </list>
878          </t>
879          <t>
880            <iref item="Cache Directives" primary="true" subitem="max-age" />
881            <iref item="max-age" primary="true" subitem="Cache Directive" /> max-age <list>
882              <t>The max-age request directive indicates that the client is willing to accept a
883                response whose age is no greater than the specified time in seconds. Unless
884                max-stale directive is also included, the client is not willing to accept a stale
885                response.</t>
886            </list>
887          </t>
888          <t>
889            <iref item="Cache Directives" primary="true" subitem="max-stale" />
890            <iref item="max-stale" primary="true" subitem="Cache Directive" /> max-stale <list>
891              <t>The max-stale request directive indicates that the client is willing to accept a
892                response that has exceeded its expiration time. If max-stale is assigned a value,
893                then the client is willing to accept a response that has exceeded its expiration
894                time by no more than the specified number of seconds. If no value is assigned to
895                max-stale, then the client is willing to accept a stale response of any age.</t>
896            </list>
897          </t>
898          <t>
899            <iref item="Cache Directives" primary="true" subitem="min-fresh" />
900            <iref item="min-fresh" primary="true" subitem="Cache Directive" /> min-fresh <list>
901              <t>The min-fresh request directive indicates that the client is willing to accept a
902                response whose freshness lifetime is no less than its current age plus the specified
903                time in seconds. That is, the client wants a response that will still be fresh for
904                at least the specified number of seconds.</t>
905            </list>
906          </t>
907          <t>
908            <iref item="Cache Directives" primary="true" subitem="no-transform" />
909            <iref item="no-transform" primary="true" subitem="Cache Directive" /> no-transform <list>
910              <t>The no-transform request directive indicates that an intermediate cache or proxy
911                &MUST-NOT; change the Content-Encoding, Content-Range or Content-Type request
912                headers, nor the request entity-body.</t>
913            </list>
914          </t>
916          <t>
917            <iref item="Cache Directives" primary="true" subitem="only-if-cached" />
918            <iref item="only-if-cached" primary="true" subitem="Cache Directive" /> only-if-cached <list>
919              <t>The only-if-cached request directive indicates that the client only wishes to
920                return a stored response. If it receives this directive, a cache &SHOULD; either
921                respond using a stored response that is consistent with the other constraints of the
922                request, or respond with a 504 (Gateway Timeout) status. If a group of caches is
923                being operated as a unified system with good internal connectivity, such a request
924                &MAY; be forwarded within that group of caches.</t>
925            </list>
926          </t>
927        </section>
929        <section anchor="cache-response-directive" title="Response Cache-Control Directives">
930          <x:anchor-alias value="cache-response-directive" />
932          <figure>
933            <artwork type="abnf2616"><iref item="Grammar" primary="true" subitem="cache-response-directive" />
934  <x:ref>cache-response-directive</x:ref> =
935       "public"
936     / "private" [ "=" <x:ref>DQUOTE</x:ref> 1#<x:ref>field-name</x:ref> <x:ref>DQUOTE</x:ref> ]
937     / "no-cache" [ "=" <x:ref>DQUOTE</x:ref> 1#<x:ref>field-name</x:ref> <x:ref>DQUOTE</x:ref> ]
938     / "no-store"
939     / "no-transform"
940     / "must-revalidate"
941     / "proxy-revalidate"
942     / "max-age" "=" <x:ref>delta-seconds</x:ref>
943     / "s-maxage" "=" <x:ref>delta-seconds</x:ref>
944     / <x:ref>cache-extension</x:ref>
946          </figure>
948          <t>
949            <iref item="Cache Directives" primary="true" subitem="public" />
950            <iref item="public" primary="true" subitem="Cache Directive" /> public <list>
951              <t>The public response directive indicates that the response &MAY; be cached, even
952                if it would normally be non-cacheable or cacheable only within a non-shared cache.
953                (See also Authorization, &header-authorization;, for additional details.) </t>
954            </list>
955          </t>
957          <t>
958            <iref item="Cache Directives" primary="true" subitem="private" />
959            <iref item="private" primary="true" subitem="Cache Directive" /> private <list>
960              <t>The private response directive indicates that the response message is intended for
961                a single user and &MUST-NOT; be stored by a shared cache. A private (non-shared)
962                cache &MAY; store the response.</t>
963              <t>If the private response directive specifies one or more field-names, this
964                requirement is limited to the field-values associated with the listed response
965                headers. That is, the specified field-names(s) &MUST-NOT; be stored by a shared
966                cache, whereas the remainder of the response message &MAY; be.</t>
967              <t>
968                <x:h>Note:</x:h> This usage of the word private only controls where the response may
969                be stored, and cannot ensure the privacy of the message content.</t>
970            </list>
971          </t>
972          <t>
973            <iref item="Cache Directives" primary="true" subitem="no-cache" />
974            <iref item="no-cache" primary="true" subitem="Cache Directive" /> no-cache <list>
975              <t>The no-cache response directive indicates that a response &MUST-NOT; be used to
976                satisfy a subsequent request without successful validation on the origin server.
977                This allows an origin server to prevent caching even by caches that have been
978                configured to return stale responses.</t>
979              <t>If the no-cache response directive specifies one or more field-names, this
980                requirement is limited to the field-values assosicated with the listed response
981                headers. That is, the specified field-name(s) &MUST-NOT; be sent in the response
982                to a subsequent request without successful validation on the origin server. This
983                allows an origin server to prevent the re-use of certain header fields in a
984                response, while still allowing caching of the rest of the response.</t>
985              <t>
986                <x:h>Note:</x:h> Most HTTP/1.0 caches will not recognize or obey this directive.
987              </t>
988            </list>
989          </t>
991          <t>
992            <iref item="Cache Directives" primary="true" subitem="no-store" />
993            <iref item="no-store" primary="true" subitem="Cache Directive" /> no-store <list>
994              <t>The no-store response directive indicates that a cache &MUST-NOT; store any
995                part of either the immediate request or response. This directive applies to both
996                non-shared and shared caches. "&MUST-NOT; store" in this context means that the
997                cache &MUST-NOT; intentionally store the information in non-volatile storage,
998                and &MUST; make a best-effort attempt to remove the information from volatile
999                storage as promptly as possible after forwarding it.</t>
1000              <t>This directive is NOT a reliable or sufficient mechanism for ensuring privacy. In
1001                particular, malicious or compromised caches might not recognize or obey this
1002                directive, and communications networks may be vulnerable to eavesdropping.</t>
1003            </list>
1004          </t>
1005          <t>
1006            <iref item="Cache Directives" primary="true" subitem="must-revalidate" />
1007            <iref item="must-revalidate" primary="true" subitem="Cache Directive" /> must-revalidate <list>
1008              <t>The must-revalidate response directive indicates that validation is required before
1009                the response is used by a cache to satisfy any request.</t>
1010              <t>When the present, caches &MUST-NOT; use a stored after it becomes stale to
1011                respond to a subsequent request without first validating it with the origin server.</t>
1012              <t>The must-revalidate directive is necessary to support reliable operation for
1013                certain protocol features. In all circumstances an HTTP/1.1 cache &MUST; obey
1014                the must-revalidate directive; in particular, if the cache cannot reach the origin
1015                server for any reason, it &MUST; generate a 504 (Gateway Timeout) response.</t>
1016              <t>Servers &SHOULD; send the must-revalidate directive if and only if failure to
1017                validate a request on the entity could result in incorrect operation, such as a
1018                silently unexecuted financial transaction.</t>
1019            </list>
1020          </t>
1021          <t>
1022            <iref item="Cache Directives" primary="true" subitem="proxy-revalidate" />
1023            <iref item="proxy-revalidate" primary="true" subitem="Cache Directive" />
1024            proxy-revalidate <list>
1025              <t>The proxy-revalidate response directive has the same meaning as the must-revalidate
1026                response directive, except that it does not apply to non-shared caches.</t>
1027            </list>
1028          </t>
1029          <t>
1030            <iref item="Cache Directives" primary="true" subitem="max-age" />
1031            <iref item="max-age" primary="true" subitem="Cache Directive" /> max-age <list>
1032              <t>The max-age response directive indicates that response is to be considered stale
1033                after its age is greater than the specified number of seconds.</t>
1034            </list>
1035          </t>
1036          <t>
1037            <iref item="Cache Directives" primary="true" subitem="s-maxage" />
1038            <iref item="s-maxage" primary="true" subitem="Cache Directive" /> s-maxage <list>
1039              <t>The s-maxage response directive indicates that, in shared caches, the maximum age
1040                specified by this directive overrides the maximum age specified by either the
1041                max-age directive or the Expires header. The s-maxage directive also implies the
1042                semantics of the proxy-revalidate response directive.</t>
1043            </list>
1044          </t>
1045          <t>
1046            <iref item="Cache Directives" primary="true" subitem="no-transform" />
1047            <iref item="no-transform" primary="true" subitem="Cache Directive" /> no-transform <list>
1048              <t>The no-transform response directive indicates that an intermediate cache or proxy
1049                &MUST-NOT; change the Content-Encoding, Content-Range or Content-Type response
1050                headers, nor the response entity-body.</t>
1051            </list>
1052          </t>
1054        </section>
1056        <section anchor="cache.control.extensions" title="Cache Control Extensions">
1057          <t>The Cache-Control header field can be extended through the use of one or more
1058            cache-extension tokens, each with an optional value. Informational extensions (those
1059            which do not require a change in cache behavior) &MAY; be added without changing the
1060            semantics of other directives. Behavioral extensions are designed to work by acting as
1061            modifiers to the existing base of cache directives. Both the new directive and the
1062            standard directive are supplied, such that applications which do not understand the new
1063            directive will default to the behavior specified by the standard directive, and those
1064            that understand the new directive will recognize it as modifying the requirements
1065            associated with the standard directive. In this way, extensions to the cache-control
1066            directives can be made without requiring changes to the base protocol.</t>
1067          <t>This extension mechanism depends on an HTTP cache obeying all of the cache-control
1068            directives defined for its native HTTP-version, obeying certain extensions, and ignoring
1069            all directives that it does not understand.</t>
1070          <t>For example, consider a hypothetical new response directive called "community" which
1071            acts as a modifier to the private directive. We define this new directive to mean that,
1072            in addition to any non-shared cache, any cache which is shared only by members of the
1073            community named within its value may cache the response. An origin server wishing to
1074            allow the UCI community to use an otherwise private response in their shared cache(s)
1075            could do so by including</t>
1076          <figure>
1077            <artwork type="example">
1078    Cache-Control: private, community="UCI"
1080          </figure>
1081          <t>A cache seeing this header field will act correctly even if the cache does not
1082            understand the community cache-extension, since it will also see and understand the
1083            private directive and thus default to the safe behavior.</t>
1084          <t>Unrecognized cache directives &MUST; be ignored; it is assumed that any cache
1085            directive likely to be unrecognized by an HTTP/1.1 cache will be combined with standard
1086            directives (or the response's default cacheability) such that the cache behavior will
1087            remain minimally correct even if the cache does not understand the extension(s).</t>
1088        </section>
1090      </section>
1092      <section anchor="header.expires" title="Expires">
1093        <iref item="Expires header" primary="true" x:for-anchor="" />
1094        <iref item="Headers" primary="true" subitem="Expires" x:for-anchor="" />
1095        <x:anchor-alias value="Expires"/>
1096        <x:anchor-alias value="Expires-v"/>
1097        <t>The entity-header field "Expires" gives the date/time after which the response is
1098          considered stale. See <xref target="expiration.model" /> for further discussion of the
1099          expiration model.</t>
1100        <t>The presence of an Expires field does not imply that the original resource will change or
1101          cease to exist at, before, or after that time.</t>
1102        <t>The field-value is an absolute date and time as defined by HTTP-date in &full-date;;
1103          it &MUST; be sent in rfc1123-date format.</t>
1104<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Expires"/><iref primary="true" item="Grammar" subitem="Expires-v"/>
1105  <x:ref>Expires</x:ref>   = "Expires" ":" <x:ref>OWS</x:ref> <x:ref>Expires-v</x:ref>
1106  <x:ref>Expires-v</x:ref> = <x:ref>HTTP-date</x:ref>
1108        <t>For example</t>
1109        <figure>
1110          <artwork type="example">
1111   Expires: Thu, 01 Dec 1994 16:00:00 GMT
1113        </figure>
1114        <t>
1115          <list>
1116            <t>
1117              <x:h>Note:</x:h> if a response includes a Cache-Control field with the max-age
1118              directive (see <xref target="cache-response-directive" />), that directive overrides
1119              the Expires field.</t>
1120          </list>
1121        </t>
1122        <t>HTTP/1.1 servers &SHOULD-NOT; send Expires dates more than one year in the future.</t>
1123        <t>HTTP/1.1 clients and caches &MUST; treat other invalid date formats, especially
1124          including the value "0", as in the past (i.e., "already expired").</t>
1125      </section>
1127      <section anchor="header.pragma" title="Pragma">
1128        <iref item="Pragma header" primary="true" x:for-anchor="" />
1129        <iref item="Headers" primary="true" subitem="Pragma" x:for-anchor="" />
1130        <x:anchor-alias value="extension-pragma"/>
1131        <x:anchor-alias value="Pragma"/>
1132        <x:anchor-alias value="Pragma-v"/>
1133        <x:anchor-alias value="pragma-directive"/>
1134        <t>The general-header field "Pragma" is used to include implementation-specific directives
1135          that might apply to any recipient along the request/response chain. All pragma directives
1136          specify optional behavior from the viewpoint of the protocol; however, some systems
1137          &MAY; require that behavior be consistent with the directives.</t>
1138<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"/>
1139  <x:ref>Pragma</x:ref>            = "Pragma" ":" <x:ref>OWS</x:ref> <x:ref>Pragma-v</x:ref>
1140  <x:ref>Pragma-v</x:ref>          = 1#<x:ref>pragma-directive</x:ref>
1141  <x:ref>pragma-directive</x:ref>  = "no-cache" / <x:ref>extension-pragma</x:ref>
1142  <x:ref>extension-pragma</x:ref>  = <x:ref>token</x:ref> [ "=" ( <x:ref>token</x:ref> / <x:ref>quoted-string</x:ref> ) ]
1144        <t>When the no-cache directive is present in a request message, an application &SHOULD;
1145          forward the request toward the origin server even if it has a cached copy of what is being
1146          requested. This pragma directive has the same semantics as the no-cache response directive
1147          (see <xref target="cache-response-directive" />) and is defined here for backward
1148          compatibility with HTTP/1.0. Clients &SHOULD; include both header fields when a
1149          no-cache request is sent to a server not known to be HTTP/1.1 compliant. HTTP/1.1 caches
1150          &SHOULD; treat "Pragma: no-cache" as if the client had sent "Cache-Control: no-cache".</t>
1151        <t>
1152          <list>
1153            <t>
1154              <x:h>Note:</x:h> because the meaning of "Pragma: no-cache" as a response-header field
1155              is not actually specified, it does not provide a reliable replacement for
1156              "Cache-Control: no-cache" in a response.</t>
1157          </list>
1158        </t>
1159        <t>This mechanism is deprecated; no new Pragma directives will be defined in HTTP.</t>
1160      </section>
1162      <section anchor="header.vary" title="Vary">
1163        <iref item="Vary header" primary="true" x:for-anchor="" />
1164        <iref item="Headers" primary="true" subitem="Vary" x:for-anchor="" />
1165        <x:anchor-alias value="Vary"/>
1166        <x:anchor-alias value="Vary-v"/>
1167        <t>The "Vary" response-header field's value indicates the set of request-header fields that
1168          fully determines, while the response is fresh, whether a cache is permitted to use the
1169          response to reply to a subsequent request without validation. For uncacheable or stale
1170          responses, the Vary field value advises the user agent about the criteria that were used
1171          to select the representation. A Vary field value of "*" implies that a cache cannot
1172          determine from the request headers of a subsequent request whether this response is the
1173          appropriate representation. See <xref target="caching.negotiated.responses" /> for use of
1174          the Vary header field by caches.</t>
1175<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Vary"/><iref primary="true" item="Grammar" subitem="Vary-v"/>
1176  <x:ref>Vary</x:ref>   = "Vary" ":" <x:ref>OWS</x:ref> <x:ref>Vary-v</x:ref>
1177  <x:ref>Vary-v</x:ref> = "*" / 1#<x:ref>field-name</x:ref>
1179        <t>The set of header fields named by the Vary field value is known as the "selecting"
1180          request-headers.</t>
1181        <t>Servers &SHOULD; include a Vary header field with any cacheable response that is
1182          subject to server-driven negotiation. Doing so allows a cache to properly interpret future
1183          requests on that resource and informs the user agent about the presence of negotiation on
1184          that resource. A server &MAY; include a Vary header field with a non-cacheable
1185          response that is subject to server-driven negotiation, since this might provide the user
1186          agent with useful information about the dimensions over which the response varies at the
1187          time of the response.</t>
1188        <t>A Vary field value of "*" signals that unspecified parameters not limited to the
1189          request-headers (e.g., the network address of the client), play a role in the selection of
1190          the response representation. The "*" value &MUST-NOT; be generated by a proxy server;
1191          it may only be generated by an origin server.</t>
1192        <t>The field-names given are not limited to the set of standard request-header fields
1193          defined by this specification. Field names are case-insensitive.</t>
1194      </section>
1196      <section anchor="header.warning" title="Warning">
1197        <iref item="Warning header" primary="true" x:for-anchor="" />
1198        <iref item="Headers" primary="true" subitem="Warning" x:for-anchor="" />
1199        <x:anchor-alias value="Warning"/>
1200        <x:anchor-alias value="Warning-v"/>
1201        <x:anchor-alias value="warning-value"/>
1202        <x:anchor-alias value="warn-agent"/>
1203        <x:anchor-alias value="warn-code"/>
1204        <x:anchor-alias value="warn-date"/>
1205        <x:anchor-alias value="warn-text"/>
1206        <t>The general-header field "Warning" is used to carry additional information about the status
1207          or transformation of a message which might not be reflected in the message. This
1208          information is typically used to warn about possible incorrectness introduced by caching
1209          operations or transformations applied to the entity body of the message.</t>
1210        <t>Warnings can be used for other purposes, both cache-related and otherwise. The use of a
1211          warning, rather than an error status code, distinguish these responses from true failures.</t>
1213        <t>Warning headers can in general be applied to any message, however some warn-codes are
1214          specific to caches and can only be applied to response messages.</t>
1216<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"/>
1217  <x:ref>Warning</x:ref>    = "Warning" ":" <x:ref>OWS</x:ref> <x:ref>Warning-v</x:ref>
1218  <x:ref>Warning-v</x:ref>  = 1#<x:ref>warning-value</x:ref>
1220  <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>
1221                                        [<x:ref>SP</x:ref> <x:ref>warn-date</x:ref>]
1223  <x:ref>warn-code</x:ref>  = 3<x:ref>DIGIT</x:ref>
1224  <x:ref>warn-agent</x:ref> = ( <x:ref>uri-host</x:ref> [ ":" <x:ref>port</x:ref> ] ) / <x:ref>pseudonym</x:ref>
1225                  ; the name or pseudonym of the server adding
1226                  ; the Warning header, for use in debugging
1227  <x:ref>warn-text</x:ref>  = <x:ref>quoted-string</x:ref>
1228  <x:ref>warn-date</x:ref>  = <x:ref>DQUOTE</x:ref> <x:ref>HTTP-date</x:ref> <x:ref>DQUOTE</x:ref>
1231        <t>Multiple warnings &MAY; be attached to a response (either by the origin server or by
1232          a cache), including multiple warnings with the same code number. For example, a server
1233          might provide the same warning with texts in both English and Basque.</t>
1234        <t>When this occurs, the user agent &SHOULD; inform the user of as many of them as
1235          possible, in the order that they appear in the response. If it is not possible to inform
1236          the user of all of the warnings, the user agent &SHOULD; follow these heuristics:
1237            <list style="symbols">
1238            <t>Warnings that appear early in the response take priority over those appearing later
1239              in the response.</t>
1241            <t>Warnings in the user's preferred character set take priority over warnings in other
1242              character sets but with identical warn-codes and warn-agents.</t>
1243          </list>
1244        </t>
1245        <t>Systems that generate multiple Warning headers &SHOULD; order them with this user
1246          agent behavior in mind. New Warning headers &SHOULD; be added after any existing
1247          Warning headers.</t>
1248        <t>Warnings are assigned three digit warn-codes. The first digit indicates whether the
1249          Warning is required to be deleted from a stored response after validation: <list
1250            style="symbols">
1251            <t>1xx Warnings that describe the freshness or validation status of the response, and so
1252              &MUST; be deleted by caches after validation. They &MUST-NOT; be generated by a cache
1253              except when validating a cached entry, and &MUST-NOT; be generated by clients.</t>
1254            <t>2xx Warnings that describe some aspect of the entity body or entity headers that is
1255              not rectified by a validation (for example, a lossy compression of the entity bodies)
1256              and which &MUST-NOT; be deleted by caches after validation, unless a full response is
1257              returned, in which case they &MUST; be.</t>
1258          </list>
1259        </t>
1260        <t>The warn-text &SHOULD; be in a natural language and character set that is most likely
1261          to be intelligible to the human user receiving the response. This decision can be based on
1262          any available knowledge, such as the location of the cache or user, the Accept-Language
1263          field in a request, the Content-Language field in a response, etc. The default language is
1264          English and the default character set is ISO-8859-1 (<xref target="ISO-8859-1" />).</t>
1265        <t>If a character set other than ISO-8859-1 is used, it &MUST; be encoded in the
1266          warn-text using the method described in <xref target="RFC2047" />.</t>
1267        <t>If an implementation sends a message with one or more Warning headers to a receiver whose
1268          version is HTTP/1.0 or lower, then the sender &MUST; include in each warning-value a
1269          warn-date that matches the Date header in the message.</t>
1270        <t>If an implementation receives a message with a warning-value that includes a warn-date,
1271          and that warn-date is different from the Date value in the response, then that
1272          warning-value &MUST; be deleted from the message before storing, forwarding, or using
1273          it. (preventing the consequences of naive caching of Warning header fields.) If all of the
1274          warning-values are deleted for this reason, the Warning header &MUST; be deleted as
1275          well.</t>
1276        <t>The following warn-codes are defined by this specification, each with a recommended
1277          warn-text in English, and a description of its meaning.</t>
1278        <t>110 Response is stale <list>
1279            <t>&SHOULD; be included whenever the returned response is stale.</t>
1280          </list>
1281        </t>
1282        <t>111 Revalidation failed <list>
1283            <t>&SHOULD; be included if a cache returns a stale response because an attempt to
1284              validate the response failed, due to an inability to reach the server.</t>
1285          </list>
1286        </t>
1287        <t>112 Disconnected operation <list>
1288            <t>&SHOULD; be included if the cache is intentionally disconnected from the rest of
1289              the network for a period of time.</t>
1290          </list>
1291        </t>
1292        <t>113 Heuristic expiration <list>
1293            <t>&SHOULD; be included if the cache heuristically chose a freshness lifetime
1294              greater than 24 hours and the response's age is greater than 24 hours.</t>
1295          </list>
1296        </t>
1297        <t>199 Miscellaneous warning <list>
1298            <t>The warning text &MAY; include arbitrary information to be presented to a human
1299              user, or logged. A system receiving this warning &MUST-NOT; take any automated
1300              action, besides presenting the warning to the user.</t>
1301          </list>
1302        </t>
1303        <t>214 Transformation applied <list>
1304            <t>&MUST; be added by an intermediate cache or proxy if it applies any
1305              transformation changing the content-coding (as specified in the Content-Encoding
1306              header) or media-type (as specified in the Content-Type header) of the response, or
1307              the entity-body of the response, unless this Warning code already appears in the
1308              response.</t>
1309          </list>
1310        </t>
1311        <t>299 Miscellaneous persistent warning <list>
1312            <t>The warning text &MAY; include arbitrary information to be presented to a human
1313              user, or logged. A system receiving this warning &MUST-NOT; take any automated
1314              action.</t>
1315          </list>
1316        </t>
1317      </section>
1319    </section>
1322    <section anchor="history.lists" title="History Lists">
1323      <t>User agents often have history mechanisms, such as "Back" buttons and history lists, which
1324        can be used to redisplay an entity retrieved earlier in a session.</t>
1325      <t>History mechanisms and caches are different. In particular history mechanisms
1326        &SHOULD-NOT; try to show a correct view of the current state of a resource. Rather, a
1327        history mechanism is meant to show exactly what the user saw at the time when the resource
1328        was retrieved.</t>
1329      <t>By default, an expiration time does not apply to history mechanisms. If the entity is still
1330        in storage, a history mechanism &SHOULD; display it even if the entity has expired,
1331        unless the user has specifically configured the agent to refresh expired history documents.</t>
1332      <t>This is not to be construed to prohibit the history mechanism from telling the user that a
1333        view might be stale. <list>
1334          <t>
1335            <x:h>Note:</x:h> if history list mechanisms unnecessarily prevent users from viewing
1336            stale resources, this will tend to force service authors to avoid using HTTP expiration
1337            controls and cache controls when they would otherwise like to. Service authors may
1338            consider it important that users not be presented with error messages or warning
1339            messages when they use navigation controls (such as BACK) to view previously fetched
1340            resources. Even though sometimes such resources ought not be cached, or ought to expire
1341            quickly, user interface considerations may force service authors to resort to other
1342            means of preventing caching (e.g. "once-only" URLs) in order not to suffer the effects
1343            of improperly functioning history mechanisms.</t>
1344        </list>
1345      </t>
1346    </section>
1349    <section anchor="IANA.considerations" title="IANA Considerations">
1350      <section anchor="message.header.registration" title="Message Header Registration">
1351        <t>The Message Header Registry located at <eref
1352            target="" />
1353          should be updated with the permanent registrations below (see <xref target="RFC3864" />):</t>
1354        <!--AUTOGENERATED FROM extract-header-defs.xslt, do not edit manually-->
1355        <texttable align="left" anchor="iana.header.registration.table" suppress-title="true">
1356          <ttcol>Header Field Name</ttcol>
1357          <ttcol>Protocol</ttcol>
1358          <ttcol>Status</ttcol>
1359          <ttcol>Reference</ttcol>
1361          <c>Age</c>
1362          <c>http</c>
1363          <c>standard</c>
1364          <c>
1365            <xref target="header.age" />
1366          </c>
1367          <c>Cache-Control</c>
1368          <c>http</c>
1369          <c>standard</c>
1370          <c>
1371            <xref target="header.cache-control" />
1372          </c>
1373          <c>Expires</c>
1374          <c>http</c>
1375          <c>standard</c>
1376          <c>
1377            <xref target="header.expires" />
1378          </c>
1379          <c>Pragma</c>
1380          <c>http</c>
1381          <c>standard</c>
1382          <c>
1383            <xref target="header.pragma" />
1384          </c>
1385          <c>Vary</c>
1386          <c>http</c>
1387          <c>standard</c>
1388          <c>
1389            <xref target="header.vary" />
1390          </c>
1391          <c>Warning</c>
1392          <c>http</c>
1393          <c>standard</c>
1394          <c>
1395            <xref target="header.warning" />
1396          </c>
1397        </texttable>
1398        <!--(END)-->
1399        <t>The change controller is: "IETF ( - Internet Engineering Task Force".</t>
1400      </section>
1401    </section>
1403    <section anchor="security.considerations" title="Security Considerations">
1404      <t>Caches expose additional potential vulnerabilities, since the contents of the cache
1405        represent an attractive target for malicious exploitation. Because cache contents persist
1406        after an HTTP request is complete, an attack on the cache can reveal information long after
1407        a user believes that the information has been removed from the network. Therefore, cache
1408        contents should be protected as sensitive information.</t>
1409    </section>
1411    <section anchor="ack" title="Acknowledgments">
1412      <t>Much of the content and presentation of the caching design is due to suggestions and
1413        comments from individuals including: Shel Kaphan, Paul Leach, Koen Holtman, David Morris,
1414        and Larry Masinter.</t>
1415    </section>
1416  </middle>
1418  <back>
1419    <references title="Normative References">
1421      <reference anchor="ISO-8859-1">
1422        <front>
1423          <title> Information technology -- 8-bit single-byte coded graphic character sets -- Part
1424            1: Latin alphabet No. 1 </title>
1425          <author>
1426            <organization>International Organization for Standardization</organization>
1427          </author>
1428          <date year="1998" />
1429        </front>
1430        <seriesInfo name="ISO/IEC" value="8859-1:1998" />
1431      </reference>
1433      <reference anchor="Part1">
1434        <front>
1435          <title abbrev="HTTP/1.1">HTTP/1.1, part 1: URIs, Connections, and Message Parsing</title>
1436          <author fullname="Roy T. Fielding" initials="R." role="editor" surname="Fielding">
1437            <organization abbrev="Day Software">Day Software</organization>
1438            <address><email></email></address>
1439          </author>
1440          <author fullname="Jim Gettys" initials="J." surname="Gettys">
1441            <organization>One Laptop per Child</organization>
1442            <address><email></email></address>
1443          </author>
1444          <author fullname="Jeffrey C. Mogul" initials="J." surname="Mogul">
1445            <organization abbrev="HP">Hewlett-Packard Company</organization>
1446            <address><email></email></address>
1447          </author>
1448          <author fullname="Henrik Frystyk Nielsen" initials="H." surname="Frystyk">
1449            <organization abbrev="Microsoft">Microsoft Corporation</organization>
1450            <address><email></email></address>
1451          </author>
1452          <author fullname="Larry Masinter" initials="L." surname="Masinter">
1453            <organization abbrev="Adobe Systems">Adobe Systems, Incorporated</organization>
1454            <address><email></email></address>
1455          </author>
1456          <author fullname="Paul J. Leach" initials="P." surname="Leach">
1457            <organization abbrev="Microsoft">Microsoft Corporation</organization>
1458            <address><email></email></address>
1459          </author>
1460          <author fullname="Tim Berners-Lee" initials="T." surname="Berners-Lee">
1461            <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
1462            <address><email></email></address>
1463          </author>
1464          <author fullname="Yves Lafon" initials="Y." role="editor" surname="Lafon">
1465            <organization abbrev="W3C">World Wide Web Consortium</organization>
1466            <address><email></email></address>
1467          </author>
1468          <author fullname="Julian F. Reschke" initials="J. F." role="editor" surname="Reschke">
1469            <organization abbrev="greenbytes">greenbytes GmbH</organization>
1470            <address><email></email></address>
1471          </author>
1472          <date month="&ID-MONTH;" year="&ID-YEAR;" />
1473        </front>
1474        <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p1-messaging-&ID-VERSION;" />
1475        <x:source basename="p1-messaging" href="p1-messaging.xml" />
1476      </reference>
1478      <reference anchor="Part2">
1479        <front>
1480          <title abbrev="HTTP/1.1">HTTP/1.1, part 2: Message Semantics</title>
1481          <author fullname="Roy T. Fielding" initials="R." role="editor" surname="Fielding">
1482            <organization abbrev="Day Software">Day Software</organization>
1483            <address><email></email></address>
1484          </author>
1485          <author fullname="Jim Gettys" initials="J." surname="Gettys">
1486            <organization>One Laptop per Child</organization>
1487            <address><email></email></address>
1488          </author>
1489          <author fullname="Jeffrey C. Mogul" initials="J." surname="Mogul">
1490            <organization abbrev="HP">Hewlett-Packard Company</organization>
1491            <address><email></email></address>
1492          </author>
1493          <author fullname="Henrik Frystyk Nielsen" initials="H." surname="Frystyk">
1494            <organization abbrev="Microsoft">Microsoft Corporation</organization>
1495            <address><email></email></address>
1496          </author>
1497          <author fullname="Larry Masinter" initials="L." surname="Masinter">
1498            <organization abbrev="Adobe Systems">Adobe Systems, Incorporated</organization>
1499            <address><email></email></address>
1500          </author>
1501          <author fullname="Paul J. Leach" initials="P." surname="Leach">
1502            <organization abbrev="Microsoft">Microsoft Corporation</organization>
1503            <address><email></email></address>
1504          </author>
1505          <author fullname="Tim Berners-Lee" initials="T." surname="Berners-Lee">
1506            <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
1507            <address><email></email></address>
1508          </author>
1509          <author fullname="Yves Lafon" initials="Y." role="editor" surname="Lafon">
1510            <organization abbrev="W3C">World Wide Web Consortium</organization>
1511            <address><email></email></address>
1512          </author>
1513          <author fullname="Julian F. Reschke" initials="J. F." role="editor" surname="Reschke">
1514            <organization abbrev="greenbytes">greenbytes GmbH</organization>
1515            <address><email></email></address>
1516          </author>
1517          <date month="&ID-MONTH;" year="&ID-YEAR;" />
1518        </front>
1519        <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p2-semantics-&ID-VERSION;" />
1520        <x:source basename="p2-semantics" href="p2-semantics.xml" />
1521      </reference>
1523      <reference anchor="Part3">
1524        <front>
1525          <title abbrev="HTTP/1.1">HTTP/1.1, part 3: Message Payload and Content Negotiation</title>
1526          <author fullname="Roy T. Fielding" initials="R." role="editor" surname="Fielding">
1527            <organization abbrev="Day Software">Day Software</organization>
1528            <address><email></email></address>
1529          </author>
1530          <author fullname="Jim Gettys" initials="J." surname="Gettys">
1531            <organization>One Laptop per Child</organization>
1532            <address><email></email></address>
1533          </author>
1534          <author fullname="Jeffrey C. Mogul" initials="J." surname="Mogul">
1535            <organization abbrev="HP">Hewlett-Packard Company</organization>
1536            <address><email></email></address>
1537          </author>
1538          <author fullname="Henrik Frystyk Nielsen" initials="H." surname="Frystyk">
1539            <organization abbrev="Microsoft">Microsoft Corporation</organization>
1540            <address><email></email></address>
1541          </author>
1542          <author fullname="Larry Masinter" initials="L." surname="Masinter">
1543            <organization abbrev="Adobe Systems">Adobe Systems, Incorporated</organization>
1544            <address><email></email></address>
1545          </author>
1546          <author fullname="Paul J. Leach" initials="P." surname="Leach">
1547            <organization abbrev="Microsoft">Microsoft Corporation</organization>
1548            <address><email></email></address>
1549          </author>
1550          <author fullname="Tim Berners-Lee" initials="T." surname="Berners-Lee">
1551            <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
1552            <address><email></email></address>
1553          </author>
1554          <author fullname="Yves Lafon" initials="Y." role="editor" surname="Lafon">
1555            <organization abbrev="W3C">World Wide Web Consortium</organization>
1556            <address><email></email></address>
1557          </author>
1558          <author fullname="Julian F. Reschke" initials="J. F." role="editor" surname="Reschke">
1559            <organization abbrev="greenbytes">greenbytes GmbH</organization>
1560            <address><email></email></address>
1561          </author>
1562          <date month="&ID-MONTH;" year="&ID-YEAR;" />
1563        </front>
1564        <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p3-payload-&ID-VERSION;" />
1565        <x:source basename="p3-payload" href="p3-payload.xml" />
1566      </reference>
1568      <reference anchor="Part4">
1569        <front>
1570          <title abbrev="HTTP/1.1">HTTP/1.1, part 4: Conditional Requests</title>
1571          <author fullname="Roy T. Fielding" initials="R." role="editor" surname="Fielding">
1572            <organization abbrev="Day Software">Day Software</organization>
1573            <address><email></email></address>
1574          </author>
1575          <author fullname="Jim Gettys" initials="J." surname="Gettys">
1576            <organization>One Laptop per Child</organization>
1577            <address><email></email></address>
1578          </author>
1579          <author fullname="Jeffrey C. Mogul" initials="J." surname="Mogul">
1580            <organization abbrev="HP">Hewlett-Packard Company</organization>
1581            <address><email></email></address>
1582          </author>
1583          <author fullname="Henrik Frystyk Nielsen" initials="H." surname="Frystyk">
1584            <organization abbrev="Microsoft">Microsoft Corporation</organization>
1585            <address><email></email></address>
1586          </author>
1587          <author fullname="Larry Masinter" initials="L." surname="Masinter">
1588            <organization abbrev="Adobe Systems">Adobe Systems, Incorporated</organization>
1589            <address><email></email></address>
1590          </author>
1591          <author fullname="Paul J. Leach" initials="P." surname="Leach">
1592            <organization abbrev="Microsoft">Microsoft Corporation</organization>
1593            <address><email></email></address>
1594          </author>
1595          <author fullname="Tim Berners-Lee" initials="T." surname="Berners-Lee">
1596            <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
1597            <address><email></email></address>
1598          </author>
1599          <author fullname="Yves Lafon" initials="Y." role="editor" surname="Lafon">
1600            <organization abbrev="W3C">World Wide Web Consortium</organization>
1601            <address><email></email></address>
1602          </author>
1603          <author fullname="Julian F. Reschke" initials="J. F." role="editor" surname="Reschke">
1604            <organization abbrev="greenbytes">greenbytes GmbH</organization>
1605            <address><email></email></address>
1606          </author>
1607          <date month="&ID-MONTH;" year="&ID-YEAR;" />
1608        </front>
1609        <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p4-conditional-&ID-VERSION;" />
1610        <x:source basename="p4-conditional" href="p4-conditional.xml" />
1611      </reference>
1613      <reference anchor="Part5">
1614        <front>
1615          <title abbrev="HTTP/1.1">HTTP/1.1, part 5: Range Requests and Partial Responses</title>
1616          <author fullname="Roy T. Fielding" initials="R." role="editor" surname="Fielding">
1617            <organization abbrev="Day Software">Day Software</organization>
1618            <address><email></email></address>
1619          </author>
1620          <author fullname="Jim Gettys" initials="J." surname="Gettys">
1621            <organization>One Laptop per Child</organization>
1622            <address><email></email></address>
1623          </author>
1624          <author fullname="Jeffrey C. Mogul" initials="J." surname="Mogul">
1625            <organization abbrev="HP">Hewlett-Packard Company</organization>
1626            <address><email></email></address>
1627          </author>
1628          <author fullname="Henrik Frystyk Nielsen" initials="H." surname="Frystyk">
1629            <organization abbrev="Microsoft">Microsoft Corporation</organization>
1630            <address><email></email></address>
1631          </author>
1632          <author fullname="Larry Masinter" initials="L." surname="Masinter">
1633            <organization abbrev="Adobe Systems">Adobe Systems, Incorporated</organization>
1634            <address><email></email></address>
1635          </author>
1636          <author fullname="Paul J. Leach" initials="P." surname="Leach">
1637            <organization abbrev="Microsoft">Microsoft Corporation</organization>
1638            <address><email></email></address>
1639          </author>
1640          <author fullname="Tim Berners-Lee" initials="T." surname="Berners-Lee">
1641            <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
1642            <address><email></email></address>
1643          </author>
1644          <author fullname="Yves Lafon" initials="Y." role="editor" surname="Lafon">
1645            <organization abbrev="W3C">World Wide Web Consortium</organization>
1646            <address><email></email></address>
1647          </author>
1648          <author fullname="Julian F. Reschke" initials="J. F." role="editor" surname="Reschke">
1649            <organization abbrev="greenbytes">greenbytes GmbH</organization>
1650            <address><email></email></address>
1651          </author>
1652          <date month="&ID-MONTH;" year="&ID-YEAR;" />
1653        </front>
1654        <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p5-range-&ID-VERSION;" />
1655        <x:source basename="p5-range" href="p5-range.xml" />
1656      </reference>
1658      <reference anchor="Part7">
1659        <front>
1660          <title abbrev="HTTP/1.1">HTTP/1.1, part 7: Authentication</title>
1661          <author fullname="Roy T. Fielding" initials="R." role="editor" surname="Fielding">
1662            <organization abbrev="Day Software">Day Software</organization>
1663            <address><email></email></address>
1664          </author>
1665          <author fullname="Jim Gettys" initials="J." surname="Gettys">
1666            <organization>One Laptop per Child</organization>
1667            <address><email></email></address>
1668          </author>
1669          <author fullname="Jeffrey C. Mogul" initials="J." surname="Mogul">
1670            <organization abbrev="HP">Hewlett-Packard Company</organization>
1671            <address><email></email></address>
1672          </author>
1673          <author fullname="Henrik Frystyk Nielsen" initials="H." surname="Frystyk">
1674            <organization abbrev="Microsoft">Microsoft Corporation</organization>
1675            <address><email></email></address>
1676          </author>
1677          <author fullname="Larry Masinter" initials="L." surname="Masinter">
1678            <organization abbrev="Adobe Systems">Adobe Systems, Incorporated</organization>
1679            <address><email></email></address>
1680          </author>
1681          <author fullname="Paul J. Leach" initials="P." surname="Leach">
1682            <organization abbrev="Microsoft">Microsoft Corporation</organization>
1683            <address><email></email></address>
1684          </author>
1685          <author fullname="Tim Berners-Lee" initials="T." surname="Berners-Lee">
1686            <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
1687            <address><email></email></address>
1688          </author>
1689          <author fullname="Yves Lafon" initials="Y." role="editor" surname="Lafon">
1690            <organization abbrev="W3C">World Wide Web Consortium</organization>
1691            <address><email></email></address>
1692          </author>
1693          <author fullname="Julian F. Reschke" initials="J. F." role="editor" surname="Reschke">
1694            <organization abbrev="greenbytes">greenbytes GmbH</organization>
1695            <address><email></email></address>
1696          </author>
1697          <date month="&ID-MONTH;" year="&ID-YEAR;" />
1698        </front>
1699        <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p7-auth-&ID-VERSION;" />
1700        <x:source basename="p7-auth" href="p7-auth.xml" />
1701      </reference>
1703      <reference anchor="RFC2047">
1704        <front>
1705          <title abbrev="Message Header Extensions">MIME (Multipurpose Internet Mail Extensions)
1706            Part Three: Message Header Extensions for Non-ASCII Text</title>
1707          <author fullname="Keith Moore" initials="K." surname="Moore">
1708            <organization>University of Tennessee</organization>
1709            <address><email></email></address>
1710          </author>
1711          <date month="November" year="1996" />
1712        </front>
1713        <seriesInfo name="RFC" value="2047" />
1714      </reference>
1716      <reference anchor="RFC2119">
1717        <front>
1718          <title>Key words for use in RFCs to Indicate Requirement Levels</title>
1719          <author fullname="Scott Bradner" initials="S." surname="Bradner">
1720            <organization>Harvard University</organization>
1721            <address><email></email></address>
1722          </author>
1723          <date month="March" year="1997" />
1724        </front>
1725        <seriesInfo name="BCP" value="14" />
1726        <seriesInfo name="RFC" value="2119" />
1727      </reference>
1729      <reference anchor="RFC5234">
1730        <front>
1731          <title abbrev="ABNF for Syntax Specifications">Augmented BNF for Syntax Specifications: ABNF</title>
1732          <author initials="D." surname="Crocker" fullname="Dave Crocker" role="editor">
1733            <organization>Brandenburg InternetWorking</organization>
1734            <address>
1735            <postal>
1736            <street>675 Spruce Dr.</street>
1737            <city>Sunnyvale</city>
1738            <region>CA</region>
1739            <code>94086</code>
1740            <country>US</country></postal>
1741            <phone>+1.408.246.8253</phone>
1742            <email></email></address> 
1743          </author>
1744          <author initials="P." surname="Overell" fullname="Paul Overell">
1745            <organization>THUS plc.</organization>
1746            <address>
1747            <postal>
1748            <street>1/2 Berkeley Square</street>
1749            <street>99 Berkely Street</street>
1750            <city>Glasgow</city>
1751            <code>G3 7HR</code>
1752            <country>UK</country></postal>
1753            <email></email></address>
1754          </author>
1755          <date month="January" year="2008"/>
1756        </front>
1757        <seriesInfo name="STD" value="68"/>
1758        <seriesInfo name="RFC" value="5234"/>
1759      </reference>
1761    </references>
1763    <references title="Informative References">
1765      <reference anchor="RFC1305">
1766        <front>
1767          <title>Network Time Protocol (Version 3) Specification, Implementation</title>
1768          <author fullname="David L. Mills" initials="D." surname="Mills">
1769            <organization>University of Delaware, Electrical Engineering Department</organization>
1770            <address><email></email></address>
1771          </author>
1772          <date month="March" year="1992" />
1773        </front>
1774        <seriesInfo name="RFC" value="1305" />
1775      </reference>
1777      <reference anchor="RFC2616">
1778        <front>
1779          <title>Hypertext Transfer Protocol -- HTTP/1.1</title>
1780          <author fullname="R. Fielding" initials="R." surname="Fielding">
1781            <organization>University of California, Irvine</organization>
1782            <address><email></email></address>
1783          </author>
1784          <author fullname="J. Gettys" initials="J." surname="Gettys">
1785            <organization>W3C</organization>
1786            <address><email></email></address>
1787          </author>
1788          <author fullname="J. Mogul" initials="J." surname="Mogul">
1789            <organization>Compaq Computer Corporation</organization>
1790            <address><email></email></address>
1791          </author>
1792          <author fullname="H. Frystyk" initials="H." surname="Frystyk">
1793            <organization>MIT Laboratory for Computer Science</organization>
1794            <address><email></email></address>
1795          </author>
1796          <author fullname="L. Masinter" initials="L." surname="Masinter">
1797            <organization>Xerox Corporation</organization>
1798            <address><email></email></address>
1799          </author>
1800          <author fullname="P. Leach" initials="P." surname="Leach">
1801            <organization>Microsoft Corporation</organization>
1802            <address><email></email></address>
1803          </author>
1804          <author fullname="T. Berners-Lee" initials="T." surname="Berners-Lee">
1805            <organization>W3C</organization>
1806            <address><email></email></address>
1807          </author>
1808          <date month="June" year="1999" />
1809        </front>
1810        <seriesInfo name="RFC" value="2616" />
1811      </reference>
1813      <reference anchor="RFC3864">
1814        <front>
1815          <title>Registration Procedures for Message Header Fields</title>
1816          <author fullname="G. Klyne" initials="G." surname="Klyne">
1817            <organization>Nine by Nine</organization>
1818            <address><email></email></address>
1819          </author>
1820          <author fullname="M. Nottingham" initials="M." surname="Nottingham">
1821            <organization>BEA Systems</organization>
1822            <address><email></email></address>
1823          </author>
1824          <author fullname="J. Mogul" initials="J." surname="Mogul">
1825            <organization>HP Labs</organization>
1826            <address><email></email></address>
1827          </author>
1828          <date month="September" year="2004" />
1829        </front>
1830        <seriesInfo name="BCP" value="90" />
1831        <seriesInfo name="RFC" value="3864" />
1832      </reference>
1834    </references>
1836    <section anchor="compatibility" title="Compatibility with Previous Versions">
1838      <section anchor="changes.from.rfc.2068" title="Changes from RFC 2068">
1839        <t>A case was missed in the Cache-Control model of HTTP/1.1; s-maxage was introduced to add
1840          this missing case. (Sections <xref format="counter" target="response.cacheability" />,
1841            <xref format="counter" target="header.cache-control" />).</t>
1842        <t>Transfer-coding and message lengths all interact in ways that required fixing exactly
1843          when chunked encoding is used (to allow for transfer encoding that may not be self
1844          delimiting); it was important to straighten out exactly how message lengths are computed.
1845          (see also <xref target="Part1" />, <xref target="Part3" /> and <xref target="Part5" />)</t>
1846        <t>Proxies should be able to add Content-Length when appropriate.</t>
1847        <t>Range request responses would become very verbose if all meta-data were always returned;
1848          by allowing the server to only send needed headers in a 206 response, this problem can be
1849          avoided. (<xref target="combining.headers" />)</t>
1850        <t>The Cache-Control: max-age directive was not properly defined for responses.</t>
1851        <t>Warnings could be cached incorrectly, or not updated appropriately. <xref
1852            format="counter" target="expiration.model" />, <xref format="counter"
1853            target="combining.headers" />, <xref format="counter" target="header.cache-control" />,
1854          and <xref format="counter" target="header.warning" />) Warning also needed to be a general
1855          header, as PUT or other methods may have need for it in requests.</t>
1856      </section>
1858      <section anchor="changes.from.rfc.2616" title="Changes from RFC 2616">
1859        <t>Clarify denial of service attack avoidance requirement. (<xref
1860            target="invalidation.after.updates.or.deletions" />)</t>
1861      </section>
1863    </section>
1865    <section anchor="change.log" title="Change Log (to be removed by RFC Editor before publication)">
1867      <section title="Since RFC2616">
1868        <t>Extracted relevant partitions from <xref target="RFC2616" />.</t>
1869      </section>
1871      <section title="Since draft-ietf-httpbis-p6-cache-00">
1872        <t>Closed issues: <list style="symbols">
1873            <t>
1874              <eref target="" />: "Trailer"
1875                (<eref target="" />)</t>
1876            <t>
1877              <eref target="" />: "Invalidation
1878              after Update or Delete" (<eref target="" />)</t>
1879            <t>
1880              <eref target="" />: "Normative and
1881              Informative references"</t>
1882            <t>
1883              <eref target="" />: "Date
1884              reference typo"</t>
1885            <t>
1886              <eref target="" />: "Connection
1887              header text"</t>
1888            <t>
1889              <eref target="" />: "Informative
1890              references"</t>
1891            <t>
1892              <eref target="" />: "ISO-8859-1
1893              Reference"</t>
1894            <t>
1895              <eref target="" />: "Normative
1896              up-to-date references"</t>
1897            <t>
1898              <eref target="" />: "typo in
1899              13.2.2"</t>
1900          </list>
1901        </t>
1902        <t>Other changes: <list style="symbols">
1903            <t>Use names of RFC4234 core rules DQUOTE and HTAB (work in progress on <eref
1904                target="" />)</t>
1905          </list>
1906        </t>
1907      </section>
1909      <section title="Since draft-ietf-httpbis-p6-cache-01">
1910        <t>Closed issues: <list style="symbols">
1911            <t>
1912              <eref target="" />: "rel_path not
1913              used"</t>
1914          </list>
1915        </t>
1916        <t>Other changes: <list style="symbols">
1917            <t>Get rid of duplicate BNF rule names ("host" -&gt; "uri-host") (work in progress
1918              on <eref target="" />)</t>
1919            <t>Add explicit references to BNF syntax and rules imported from other parts of the
1920              specification.</t>
1921          </list>
1922        </t>
1923      </section>
1925      <section anchor="changes.since.02" title="Since draft-ietf-httpbis-p6-cache-02">
1926        <t>Ongoing work on IANA Message Header Registration (<eref
1927            target="" />): <list style="symbols">
1928            <t>Reference RFC 3984, and update header registrations for headers defined in this
1929              document.</t>
1930          </list>
1931        </t>
1932      </section>
1934      <section anchor="changes.since.03" title="Since draft-ietf-httpbis-p6-cache-03">
1935        <t>Closed issues: <list style="symbols">
1936            <t>
1937              <eref target="" />: "Vary header
1938              classification"</t>
1939          </list>
1940        </t>
1941      </section>
1943      <section anchor="changes.since.04" title="Since draft-ietf-httpbis-p6-cache-04">
1944      <t>
1945      </t>
1946      </section>
1948      <section anchor="changes.since.05" title="Since draft-ietf-httpbis-p6-cache-05">
1949      <t>
1950        This is a total rewrite.
1951      </t>
1952      </section>
1954    </section>
1955  </back>
Note: See TracBrowser for help on using the repository browser.