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

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

add advice on how to treat multiple instances of freshness information (see #353)

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/xml
File size: 105.7 KB
[29]1<?xml version="1.0" encoding="utf-8"?>
[768]2<?xml-stylesheet type='text/xsl' href='../myxml2rfc.xslt'?>
[8]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>">
[29]14  <!ENTITY ID-VERSION "latest">
[1697]15  <!ENTITY ID-MONTH "July">
[1497]16  <!ENTITY ID-YEAR "2012">
[1692]17  <!ENTITY mdash "&#8212;">
18  <!ENTITY Note "<x:h xmlns:x=''>Note:</x:h>">
[1518]19  <!ENTITY architecture                "<xref target='Part1' x:rel='#architecture' xmlns:x=''/>">
[424]20  <!ENTITY notation                    "<xref target='Part1' x:rel='#notation' xmlns:x=''/>">
[1399]21  <!ENTITY acks                        "<xref target='Part1' x:rel='#acks' xmlns:x=''/>">
[1518]22  <!ENTITY whitespace                  "<xref target='Part1' x:rel='#whitespace' xmlns:x=''/>">
23  <!ENTITY field-components            "<xref target='Part1' x:rel='#field.components' xmlns:x=''/>">
[538]24  <!ENTITY uri                         "<xref target='Part1' x:rel='#uri' xmlns:x=''/>">
[1399]25  <!ENTITY effective-request-uri       "<xref target='Part1' x:rel='#effective.request.uri' xmlns:x=''/>">
[31]26  <!ENTITY messaging                   "<xref target='Part1' xmlns:x=''/>">
[1374]27  <!ENTITY semantics                   "<xref target='Part2' xmlns:x=''/>">
[183]28  <!ENTITY conditional                 "<xref target='Part4' xmlns:x=''/>">
[538]29  <!ENTITY partial                     "<xref target='Part5' xmlns:x=''/>">
[31]30  <!ENTITY combining-byte-ranges       "<xref target='Part5' x:rel='#combining.byte.ranges' xmlns:x=''/>">
[1436]31  <!ENTITY http-date                   "<xref target='Part2' x:rel='' xmlns:x=''/>">
[31]32  <!ENTITY header-authorization        "<xref target='Part7' x:rel='#header.authorization' xmlns:x=''/>">
33  <!ENTITY header-connection           "<xref target='Part1' x:rel='#header.connection' xmlns:x=''/>">
[1436]34  <!ENTITY header-date                 "<xref target='Part2' x:rel='' xmlns:x=''/>">
[205]35  <!ENTITY header-via                  "<xref target='Part1' x:rel='#header.via' xmlns:x=''/>">
[538]36  <!ENTITY header-last-modified        "<xref target='Part4' x:rel='#header.last-modified' xmlns:x=''/>">
[697]37  <!ENTITY header-fields               "<xref target='Part1' x:rel='#header.fields' xmlns:x=''/>">
[31]38  <!ENTITY safe-methods                "<xref target='Part2' x:rel='#safe.methods' xmlns:x=''/>">
[1374]39  <!ENTITY entity-tags                 "<xref target='Part4' x:rel='#header.etag' xmlns:x=''/>">
[607]40  <!ENTITY weak-and-strong             "<xref target='Part4' x:rel='#weak.and.strong.validators' xmlns:x=''/>">
[1374]41  <!ENTITY lastmod-comparison          "<xref target='Part4' x:rel='#lastmod.comparison' xmlns:x=''/>">
[1635]42  <!ENTITY status-codes                "<xref target='Part2' x:rel='' xmlns:x=''/>">
[943]43  <!ENTITY status.2xx                  "<xref target='Part2' x:rel='#status.2xx' xmlns:x=''/>">
45<?rfc toc="yes" ?>
[29]46<?rfc symrefs="yes" ?>
47<?rfc sortrefs="yes" ?>
[8]48<?rfc compact="yes"?>
49<?rfc subcompact="no" ?>
50<?rfc linkmailto="no" ?>
51<?rfc editing="no" ?>
[203]52<?rfc comments="yes"?>
53<?rfc inline="yes"?>
[799]54<?rfc rfcedstyle="yes"?>
[8]55<?rfc-ext allow-markup-in-artwork="yes" ?>
56<?rfc-ext include-references-in-index="yes" ?>
[538]57<rfc category="std" docName="draft-ietf-httpbis-p6-cache-&ID-VERSION;" ipr="pre5378Trust200902"
[1477]58  obsoletes="2616" x:maturity-level="proposed" xmlns:x="">
[1472]59<x:link rel="prev" basename="p5-range"/>
60<x:link rel="next" basename="p7-auth"/>
[1522]61<x:feedback template="{docname},%20%22{section}%22&amp;body=&lt;{ref}&gt;:"/>
[547]64  <title abbrev="HTTP/1.1, Part 6">HTTP/1.1, part 6: Caching</title>
[547]66  <author fullname="Roy T. Fielding" initials="R." role="editor" surname="Fielding">
[1106]67    <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
[547]68    <address>
[8]69      <postal>
[1106]70        <street>345 Park Ave</street>
71        <city>San Jose</city>
[8]72        <region>CA</region>
[1106]73        <code>95110</code>
[29]74        <country>USA</country>
[8]75      </postal>
[29]76      <email></email>
77      <uri></uri>
[8]78    </address>
[547]79  </author>
[547]81  <author fullname="Yves Lafon" initials="Y." role="editor" surname="Lafon">
82    <organization abbrev="W3C">World Wide Web Consortium</organization>
83    <address>
[93]84      <postal>
85        <street>W3C / ERCIM</street>
86        <street>2004, rte des Lucioles</street>
87        <city>Sophia-Antipolis</city>
88        <region>AM</region>
89        <code>06902</code>
90        <country>France</country>
91      </postal>
92      <email></email>
93      <uri></uri>
94    </address>
[547]95  </author>
[601]97  <author fullname="Mark Nottingham" initials="M." role="editor" surname="Nottingham">
[1438]98    <organization>Rackspace</organization>
[607]99    <address>
100      <email></email>
101      <uri></uri>
[601]102    </address>
103  </author>
[547]105  <author fullname="Julian F. Reschke" initials="J. F." role="editor" surname="Reschke">
106    <organization abbrev="greenbytes">greenbytes GmbH</organization>
107    <address>
[95]108      <postal>
109        <street>Hafenweg 16</street>
110        <city>Muenster</city><region>NW</region><code>48155</code>
111        <country>Germany</country>
112      </postal>
[607]113      <email></email>
114      <uri></uri>
[95]115    </address>
[547]116  </author>
[547]118  <date month="&ID-MONTH;" year="&ID-YEAR;" />
119  <workgroup>HTTPbis Working Group</workgroup>
[949]123   The Hypertext Transfer Protocol (HTTP) is an application-level protocol for
[1373]124   distributed, collaborative, hypertext information systems. HTTP has been in
125   use by the World Wide Web global information initiative since 1990. This
126   document is Part 6 of the seven-part specification that defines the protocol
127   referred to as "HTTP/1.1" and, taken together, obsoletes RFC 2616.
130   Part 6 defines requirements on HTTP caches and the associated header fields
131   that control cache behavior or indicate cacheable response messages.
[540]135<note title="Editorial Note (To be removed by RFC Editor)">
[1268]136  <t>
[1685]137    Discussion of this draft ought to take place on the HTTPBIS working group
[1268]138    mailing list (, which is archived at
139    <eref target=""/>.
140  </t>
141  <t>
142    The current issues list is at
143    <eref target=""/> and related
144    documents (including fancy diffs) can be found at
145    <eref target=""/>.
146  </t>
147  <t>
[1592]148    The changes in this draft are summarized in <xref target="changes.since.19"/>.
[1268]149  </t>
[949]152   </front>
153   <middle>
[540]155<section anchor="caching" title="Introduction">
[949]157   HTTP is typically used for distributed information systems, where
158   performance can be improved by the use of response caches. This document
159   defines aspects of HTTP/1.1 related to caching and reusing response
160   messages.
[540]163<section anchor="intro.purpose" title="Purpose">
164<iref item="cache" />
[949]166   An HTTP <x:dfn>cache</x:dfn> is a local store of response messages and the
167   subsystem that controls its message storage, retrieval, and deletion. A
168   cache stores cacheable responses in order to reduce the response time and
169   network bandwidth consumption on future, equivalent requests. Any client or
170   server &MAY; employ a cache, though a cache cannot be used by a server that
171   is acting as a tunnel.
[1374]174   The goal of caching in HTTP/1.1 is to significantly improve performance
175   by reusing a prior response message to satisfy a current request.
176   A stored response is considered "fresh", as defined in
177   <xref target="expiration.model" />, if the response can be reused without
178   "validation" (checking with the origin server to see if the cached response
179   remains valid for this request).  A fresh cache response can therefore
180   reduce both latency and network transfers each time it is reused.
181   When a cached response is not fresh, it might still be reusable if it can
182   be freshened by validation (<xref target="validation.model" />) or if the
183   origin is unavailable.
[540]187<section anchor="intro.terminology" title="Terminology">
[949]189   This specification uses a number of terms to refer to the roles played by
190   participants in, and objects of, HTTP caching.
[1112]193   <iref item="cache" />
194   <x:dfn>cache</x:dfn>
195   <list>
196      <t>A conformant implementation of a HTTP cache. Note that this implies
197        an HTTP/1.1 cache; this specification does not define conformance
198        for HTTP/1.0 caches.</t>
199   </list>
201<t anchor="shared.and.non-shared.caches">
202   <iref item="shared cache" />
203   <x:dfn>shared cache</x:dfn>
204   <list>
[1374]205      <t>A cache that stores responses to be reused by more than one user;
206         usually (but not always) deployed as part of an intermediary.</t>
[1112]207   </list>
210   <iref item="private cache" />
211   <x:dfn>private cache</x:dfn>
212   <list>
213      <t>A cache that is dedicated to a single user.</t>
214   </list>
[949]217   <iref item="cacheable" />
218   <x:dfn>cacheable</x:dfn>
219   <list>
220      <t>A response is cacheable if a cache is allowed to store a copy of the
221      response message for use in answering subsequent requests. Even when a
222      response is cacheable, there might be additional constraints on whether
[1112]223      a cache can use the stored copy to satisfy a particular request.</t>
[949]224   </list>
[949]227   <iref item="explicit expiration time" />
228   <x:dfn>explicit expiration time</x:dfn>
229   <list>
230      <t>The time at which the origin server intends that a representation
[969]231      no longer be returned by a cache without further validation.</t>
[949]232   </list>
[949]235   <iref item="heuristic expiration time" />
236   <x:dfn>heuristic expiration time</x:dfn>
237   <list>
238      <t>An expiration time assigned by a cache when no explicit expiration
239      time is available.</t>
240   </list>
[949]243   <iref item="age" />
244   <x:dfn>age</x:dfn>
245   <list>
246      <t>The age of a response is the time since it was sent by, or
247      successfully validated with, the origin server.</t>
248   </list>
[949]251   <iref item="first-hand" />
252   <x:dfn>first-hand</x:dfn>
253   <list>
254      <t>A response is first-hand if the freshness model is not in use; i.e.,
255      its age is 0.</t>
256   </list>
[949]259   <iref item="freshness lifetime" />
260   <x:dfn>freshness lifetime</x:dfn>
261   <list>
262      <t>The length of time between the generation of a response and its
263      expiration time.</t>
264   </list>
[949]267   <iref item="fresh" />
268   <x:dfn>fresh</x:dfn>
269   <list>
270      <t>A response is fresh if its age has not yet exceeded its freshness
271      lifetime.</t>
272   </list>
[949]275   <iref item="stale" />
276   <x:dfn>stale</x:dfn>
277   <list>
278      <t>A response is stale if its age has passed its freshness lifetime
279      (either explicit or heuristic).</t>
280   </list>
[949]283   <iref item="validator" />
284   <x:dfn>validator</x:dfn>
285   <list>
286      <t>A protocol element (e.g., an entity-tag or a Last-Modified time) that
[1112]287      is used to find out whether a stored response is an equivalent copy of
[1374]288      a representation. See &weak-and-strong;.</t>
[949]289   </list>
292   <iref item="strong validator" />
[1376]293   <iref item="validator" subitem="strong" />
[1374]294   <x:dfn>strong validator</x:dfn>
295   <list>
296      <t>A validator that is defined by the origin server such that its
297         current value will change if the representation body changes; i.e.,
298         an entity-tag that is not marked as weak (&entity-tags;) or,
299         if no entity-tag is provided, a Last-Modified value that is strong
300         in the sense defined by &lastmod-comparison;.</t>
301   </list>
[1452]305<section title="Conformance and Error Handling" anchor="intro.conformance.and.error.handling">
[847]307   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
308   "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
309   document are to be interpreted as described in <xref target="RFC2119"/>.
[1452]312   This document defines conformance criteria for several roles in HTTP
313   communication, including Senders, Recipients, Clients, Servers, User-Agents,
314   Origin Servers, Intermediaries, Proxies and Gateways. See &architecture;
315   for definitions of these terms.
318   An implementation is considered conformant if it complies with all of the
319   requirements associated with its role(s). Note that SHOULD-level requirements
320   are relevant here, unless one of the documented exceptions is applicable.
323   This document also uses ABNF to define valid protocol elements
324   (<xref target="notation"/>). In addition to the prose requirements placed
325   upon them, Senders &MUST-NOT; generate protocol elements that are invalid.
[1682]328   Unless noted otherwise, Recipients &MUST; be able to parse all protocol
329   elements matching the ABNF rules defined for them and &MAY; take steps to
330   recover a usable protocol element from an invalid construct. However, HTTP does not define
[1452]331   specific error handling mechanisms, except in cases where it has direct
332   impact on security. This is because different uses of the protocol require
[1684]333   different error handling strategies; for example, a Web browser might wish to
[1452]334   transparently recover from a response where the Location header field
335   doesn't parse according to the ABNF, whereby in a systems control protocol
336   using HTTP, this type of error recovery could lead to dangerous consequences.
[424]340<section title="Syntax Notation" anchor="notation">
[949]341   <x:anchor-alias value="ALPHA"/>
342   <x:anchor-alias value="CR"/>
343   <x:anchor-alias value="DIGIT"/>
344   <x:anchor-alias value="DQUOTE"/>
345   <x:anchor-alias value="LF"/>
346   <x:anchor-alias value="OCTET"/>
347   <x:anchor-alias value="SP"/>
348   <x:anchor-alias value="VCHAR"/>
[1518]350   This specification uses the Augmented Backus-Naur Form (ABNF) notation
351   of <xref target="RFC5234"/> with the list rule extension defined in
352   &notation;<xref target="collected.abnf"/> shows the collected ABNF
353   with the list rule expanded.
[949]356   The following core rules are included by reference, as defined in <xref
357   target="RFC5234" x:fmt="," x:sec="B.1"/>: ALPHA (letters), CR (carriage
358   return), CRLF (CR LF), CTL (controls), DIGIT (decimal 0-9), DQUOTE (double
359   quote), HEXDIG (hexadecimal 0-9/A-F/a-f), LF (line feed), OCTET (any 8-bit
[1425]360   sequence of data), SP (space), and VCHAR (any visible US-ASCII character).
[424]363<section title="Core Rules" anchor="core.rules">
[949]364   <x:anchor-alias value="quoted-string"/>
365   <x:anchor-alias value="token"/>
366   <x:anchor-alias value="OWS"/>
[1396]368   The core rules below are defined in <xref target="Part1"/>:
370<figure><artwork type="abnf2616">
[1518]371  <x:ref>OWS</x:ref>           = &lt;OWS, defined in &whitespace;&gt;
372  <x:ref>quoted-string</x:ref> = &lt;quoted-string, defined in &field-components;&gt;
373  <x:ref>token</x:ref>         = &lt;token, defined in &field-components;&gt;
[949]377<section title="ABNF Rules defined in other Parts of the Specification"
378    anchor="abnf.dependencies">
379   <x:anchor-alias value="field-name"/>
380   <x:anchor-alias value="HTTP-date"/>
381   <x:anchor-alias value="port"/>
382   <x:anchor-alias value="pseudonym"/>
383   <x:anchor-alias value="uri-host"/>
[949]385   The ABNF rules below are defined in other parts:
[207]387<figure><!--Part1--><artwork type="abnf2616">
[647]388  <x:ref>field-name</x:ref>    = &lt;field-name, defined in &header-fields;&gt;
[1436]389  <x:ref>HTTP-date</x:ref>     = &lt;HTTP-date, defined in &http-date;&gt;
[374]390  <x:ref>port</x:ref>          = &lt;port, defined in &uri;&gt;
[229]391  <x:ref>pseudonym</x:ref>     = &lt;pseudonym, defined in &header-via;&gt; 
[374]392  <x:ref>uri-host</x:ref>      = &lt;uri-host, defined in &uri;&gt;
[1323]397<section title="Delta Seconds" anchor="delta-seconds">
399   The delta-seconds rule specifies a non-negative integer, representing time
400   in seconds.
402<figure><artwork type="abnf2616"><iref item="Grammar" primary="true" subitem="delta-seconds" />
403  <x:ref>delta-seconds</x:ref>  = 1*<x:ref>DIGIT</x:ref>
406   If an implementation receives a delta-seconds value larger than the largest
407   positive integer it can represent, or if any of its subsequent calculations
408   overflows, it &MUST; consider the value to be 2147483648 (2<x:sup>31</x:sup>).
[1433]409   Recipients parsing a delta-seconds value &MUST; use an arithmetic type of
[1323]410   at least 31 bits of range, and senders &MUST-NOT; send delta-seconds with a
411   value greater than 2147483648.
[540]417<section anchor="caching.overview" title="Cache Operation">
[1374]418<iref item="cache entry" />
419<iref item="cache key" />
421   Proper cache operation preserves the semantics of HTTP transfers
422   (&semantics;) while eliminating the transfer of information already held
423   in the cache.  Although caching is an entirely &OPTIONAL; feature of HTTP,
424   we assume that reusing the cached response is desirable and that such
425   reuse is the default behavior when no requirement or locally-desired
426   configuration prevents it.  Therefore, HTTP cache requirements are focused
427   on preventing a cache from either storing a non-reusable response or
428   reusing a stored response inappropriately.
431   Each <x:dfn>cache entry</x:dfn> consists of a cache key and one or more
432   HTTP responses corresponding to prior requests that used the same key.
433   The most common form of cache entry is a successful result of a retrieval
[1715]434   request: i.e., a <x:ref>200 (OK)</x:ref> response containing a representation
435   of the resource identified by the request target.  However, it is also possible
[1713]436   to cache negative results (e.g., <x:ref>404 (Not Found)</x:ref>, incomplete results
437   (e.g., <x:ref>206 (Partial Content)</x:ref>), and responses to safe methods other than
[1374]438   GET if the method's definition allows such caching and defines something
439   suitable for use as a cache key.
442   The default <x:dfn>cache key</x:dfn> consists of the request method and
443   target URI.  However, since HTTP caches in common use today are typically
444   limited to caching responses to GET, most implementations simply decline
445   other methods and use only the URI as the key.
448   If a request target is subject to content negotiation, its cache entry
449   might consist of multiple stored responses, each differentiated by a
450   secondary key for the values of the original request's selecting header
451   fields (<xref target="caching.negotiated.responses"/>).
[540]454<section anchor="response.cacheability" title="Response Cacheability">
[949]456   A cache &MUST-NOT; store a response to any request, unless:
457   <list style="symbols">
458      <t>The request method is understood by the cache and defined as being
459      cacheable, and</t>
460      <t>the response status code is understood by the cache, and</t>
461      <t>the "no-store" cache directive (see <xref
462      target="header.cache-control" />) does not appear in request or response
[994]463      header fields, and</t>
[949]464      <t>the "private" cache response directive (see <xref
[1514]465      target="cache-response-directive" />) does not appear in the response, if
[949]466      the cache is shared, and</t>
[994]467      <t>the "Authorization" header field (see &header-authorization;) does not
[949]468      appear in the request, if the cache is shared, unless the response
469      explicitly allows it (see <xref target="caching.authenticated.responses"
470      />), and</t>
471      <t>the response either:
472         <list style="symbols">
[994]473            <t>contains an Expires header field (see <xref target="header.expires"
[949]474            />), or</t>
475            <t>contains a max-age response cache directive (see <xref
476            target="cache-response-directive" />), or</t>
477            <t>contains a s-maxage response cache directive and the cache is
478            shared, or</t>
479            <t>contains a Cache Control Extension (see <xref
480            target="cache.control.extensions" />) that allows it to be cached,
481            or</t>
482            <t>has a status code that can be served with heuristic freshness
483            (see <xref target="heuristic.freshness" />).</t>
484         </list>
485      </t>
486   </list>
[1292]489   Note that any of the requirements listed above can be overridden by a
[1291]490   cache-control extension; see <xref target="cache.control.extensions" />.
[949]493   In this context, a cache has "understood" a request method or a response
[1374]494   status code if it recognizes it and implements any cache-specific
495   behavior.
[1374]498   Note that, in normal operation, most caches will not store a response that
[949]499   has neither a cache validator nor an explicit expiration time, as such
500   responses are not usually useful to store. However, caches are not
501   prohibited from storing such responses.
[1374]504   A response message is considered complete when all of the octets
505   indicated by the message framing (&messaging;) are received
[1715]506   prior to the connection being closed. If the request is GET, the response
507   status is <x:ref>200 (OK)</x:ref>, and the entire
[1374]508   response header block has been received, a cache &MAY; store an incomplete
[1544]509   response message body if the cache entry is recorded as incomplete.
[1708]510   Likewise, a <x:ref>206 (Partial Content)</x:ref> response &MAY; be stored as if it were
[1715]511   an incomplete <x:ref>200 (OK)</x:ref> cache entry.  However, a cache &MUST-NOT; store
[1374]512   incomplete or partial content responses if it does not support the Range
513   and Content-Range header fields or if it does not understand the
514   range units used in those fields.
[1374]517   A cache &MAY; complete a stored incomplete response by making a subsequent
518   range request (&partial;) and combining the successful response with the
519   stored entry, as defined in <xref target="combining.responses"/>.
520   A cache &MUST-NOT; use an incomplete response to answer requests
521   unless the response has been made complete or the request is partial and
522   specifies a range that is wholly within the incomplete response.
523   A cache &MUST-NOT; send a partial response to a client without explicitly
[1708]524   marking it as such using the <x:ref>206 (Partial Content)</x:ref> status code.
[949]529<section anchor="constructing.responses.from.caches" 
530   title="Constructing Responses from Caches">
[949]532   For a presented request, a cache &MUST-NOT; return a stored response,
533   unless:
534   <list style="symbols">
[965]535      <t>The presented effective request URI (&effective-request-uri;) and
[949]536      that of the stored response match, and</t>
537      <t>the request method associated with the stored response allows it to
538      be used for the presented request, and</t>
[1163]539      <t>selecting header fields nominated by the stored response (if any)
[949]540      match those presented (see <xref target="caching.negotiated.responses"
541      />), and</t>
[1483]542      <t>the presented request does not contain the no-cache pragma (<xref
543      target="header.pragma"/>), nor the no-cache cache directive (<xref
544      target="cache-request-directive"/>), unless the stored response is
545      successfully validated (<xref target="validation.model"/>), and</t>
546      <t>the stored response does not contain the no-cache cache directive
547      (<xref target="cache-response-directive"/>), unless it is successfully
548      validated (<xref target="validation.model"/>), and</t>
[949]549      <t>the stored response is either:
550         <list style="symbols">
551            <t>fresh (see <xref target="expiration.model" />), or</t>
552            <t>allowed to be served stale (see <xref
553            target="serving.stale.responses" />), or</t>
554            <t>successfully validated (see <xref target="validation.model"
555            />).</t>
556         </list>
557      </t>
[540]558  </list>
[1292]561   Note that any of the requirements listed above can be overridden by a
[1291]562   cache-control extension; see <xref target="cache.control.extensions" />.
[949]565   When a stored response is used to satisfy a request without validation,
[1112]566   a cache &MUST; include a single Age header field (<xref target="header.age"
[949]567   />) in the response with a value equal to the stored response's
568   current_age; see <xref target="age.calculations" />.
[1112]571   A cache &MUST; write through requests with methods that are unsafe
[1604]572   (&safe-methods;) to the origin server; i.e., a cache is not allowed to generate
[1112]573   a reply to such a request before having forwarded the request and having
574   received a corresponding response.
[949]577   Also, note that unsafe requests might invalidate already stored responses;
578   see <xref target="invalidation.after.updates.or.deletions" />.
[1277]581   When more than one suitable response is stored, a cache &MUST; use the
582   most recent response (as determined by the Date header field). It can also
[949]583   forward a request with "Cache-Control: max-age=0" or "Cache-Control:
584   no-cache" to disambiguate which response to use.
[1184]587   A cache that does not have a clock available &MUST-NOT; use stored responses
[1112]588   without revalidating them on every use. A cache, especially a shared
[1044]589   cache, &SHOULD; use a mechanism, such as NTP <xref target="RFC1305"/>, to
590   synchronize its clock with a reliable external standard.
[540]595<section anchor="expiration.model" title="Freshness Model">
[949]597   When a response is "fresh" in the cache, it can be used to satisfy
598   subsequent requests without contacting the origin server, thereby improving
599   efficiency.
[949]602   The primary mechanism for determining freshness is for an origin server to
603   provide an explicit expiration time in the future, using either the Expires
[994]604   header field (<xref target="header.expires" />) or the max-age response cache
[949]605   directive (<xref target="cache-response-directive" />). Generally, origin
606   servers will assign future explicit expiration times to responses in the
607   belief that the representation is not likely to change in a semantically
608   significant way before the expiration time is reached.
[949]611   If an origin server wishes to force a cache to validate every request, it
[969]612   can assign an explicit expiration time in the past to indicate that the
[1113]613   response is already stale. Compliant caches will normally validate the
614   cached response before reusing it for subsequent requests (see <xref
615   target="serving.stale.responses" />).
[1112]618   Since origin servers do not always provide explicit expiration times,
619   a cache &MAY; assign a heuristic expiration time when an explicit time is not
620   specified, employing algorithms that use other header field values (such as the
621   Last-Modified time) to estimate a plausible expiration time. This
[949]622   specification does not provide specific algorithms, but does impose
623   worst-case constraints on their results.
[575]627  The calculation to determine if a response is fresh is:
629<artwork type="code">
[538]630   response_is_fresh = (freshness_lifetime &gt; current_age)
[949]634   The freshness_lifetime is defined in <xref
635   target="calculating.freshness.lifetime" />; the current_age is defined in
636   <xref target="age.calculations" />.
[1692]639   Additionally, clients can influence freshness calculation &mdash; either
640   constraining it relaxing it &mdash; by using the max-age and min-fresh
[1483]641   request cache directives. See <xref target="cache-request-directive" /> 
642   for details.
[949]645   Note that freshness applies only to cache operation; it cannot be used to
646   force a user agent to refresh its display or reload a resource. See <xref
647   target="history.lists" /> for an explanation of the difference between
648   caches and history mechanisms.
[949]651<section anchor="calculating.freshness.lifetime" 
652   title="Calculating Freshness Lifetime">
[949]654   A cache can calculate the freshness lifetime (denoted as
655   freshness_lifetime) of a response by using the first match of:
656   <list style="symbols">
657      <t>If the cache is shared and the s-maxage response cache directive
658      (<xref target="cache-response-directive" />) is present, use its value,
659      or</t>
660      <t>If the max-age response cache directive (<xref
[540]661      target="cache-response-directive" />) is present, use its value, or</t>
[994]662      <t>If the Expires response header field (<xref target="header.expires" />) is
663      present, use its value minus the value of the Date response header field,
[949]664      or</t>
665      <t>Otherwise, no explicit expiration time is present in the response. A
666      heuristic freshness lifetime might be applicable; see <xref
667      target="heuristic.freshness" />.</t>
668   </list>
[949]671   Note that this calculation is not vulnerable to clock skew, since all of
672   the information comes from the origin server.
675   When there is more than one value present for a given directive (e.g., two
676   Expires header fields, multiple Cache-Control: max-age directives), it is
677   considered invalid. Caches are encouraged to consider responses that have
678   invalid freshness information to be stale.
[540]681<section anchor="heuristic.freshness" title="Calculating Heuristic Freshness">
[949]683   If no explicit expiration time is present in a stored response that has a
684   status code whose definition allows heuristic freshness to be used
685   (including the following in &status-codes;: 200, 203, 206, 300, 301 and
[1112]686   410), a cache &MAY; calculate a heuristic expiration time. A cache &MUST-NOT; 
687   use heuristics to determine freshness for responses with status codes that do
688   not explicitly allow it.
[1112]691   When a heuristic is used to calculate freshness lifetime, a cache
[994]692   &SHOULD; attach a Warning header field with a 113 warn-code to the response if
[949]693   its current_age is more than 24 hours and such a warning is not already
694   present.
[1433]697   Also, if the response has a Last-Modified header field
698   (&header-last-modified;), caches are encouraged to use a heuristic
699   expiration value that is no more than some fraction of the interval since
700   that time. A typical setting of this fraction might be 10%.
[949]703   <t>
[1692]704      &Note; RFC 2616 (<xref target="RFC2616" x:fmt=","
[949]705      x:sec="13.9"/>) required that caches do not calculate heuristic
[1173]706      freshness for URIs with query components (i.e., those containing '?').
[949]707      In practice, this has not been widely implemented. Therefore, servers
708      are encouraged to send explicit directives (e.g., Cache-Control:
709      no-cache) if they wish to preclude caching.
710   </t>
[540]715<section anchor="age.calculations" title="Calculating Age">
[1163]717   HTTP/1.1 uses the Age header field to convey the estimated age of the
[949]718   response message when obtained from a cache. The Age field value is the
719   cache's estimate of the amount of time since the response was generated or
720   validated by the origin server. In essence, the Age value is the sum of the
721   time that the response has been resident in each of the caches along the
722   path from the origin server, plus the amount of time it has been in transit
723   along network paths.
[949]726   The following data is used for the age calculation:
[949]729   <x:dfn>age_value</x:dfn>
730   <list>
731      <t>
[994]732         The term "age_value" denotes the value of the Age header field (<xref
[949]733         target="header.age"/>), in a form appropriate for arithmetic
734         operation; or 0, if not available.
735      </t>
736   </list>
[949]739   <x:dfn>date_value</x:dfn>
740   <list>
741      <t>
[994]742         HTTP/1.1 requires origin servers to send a Date header field, if possible,
[949]743         with every response, giving the time at which the response was
744         generated. The term "date_value" denotes the value of the Date
[994]745         header field, in a form appropriate for arithmetic operations. See
746         &header-date; for the definition of the Date header field, and for
747         requirements regarding responses without it.
[949]748      </t>
749   </list>
[949]752   <x:dfn>now</x:dfn>
753   <list>
754      <t>
755         The term "now" means "the current value of the clock at the host
[1112]756         performing the calculation". A cache &SHOULD; use NTP (<xref
757         target="RFC1305"/>) or some similar protocol to synchronize its
[949]758         clocks to a globally accurate time standard.
759      </t>
760   </list>
[949]763   <x:dfn>request_time</x:dfn>
764   <list>
765      <t>
766         The current value of the clock at the host at the time the request
767         resulting in the stored response was made.
768      </t>
769   </list>
[949]772   <x:dfn>response_time</x:dfn>
773   <list>
774      <t>
775         The current value of the clock at the host at the time the response
776         was received.
777      </t>
778   </list>
[949]781   A response's age can be calculated in two entirely independent ways:
782   <list style="numbers">
783      <t>the "apparent_age": response_time minus date_value, if the local
784      clock is reasonably well synchronized to the origin server's clock. If
785      the result is negative, the result is replaced by zero.</t>
786      <t>the "corrected_age_value", if all of the caches along the response
[1112]787      path implement HTTP/1.1. A cache &MUST; interpret this value relative
[949]788      to the time the request was initiated, not the time that the response
789      was received.</t>
790   </list>
793<artwork type="code">
[786]794  apparent_age = max(0, response_time - date_value);
[786]796  response_delay = response_time - request_time;
[792]797  corrected_age_value = age_value + response_delay; 
[1484]801<preamble>These &SHOULD; be combined as</preamble>
[792]802<artwork type="code">
803  corrected_initial_age = max(apparent_age, corrected_age_value);
[1484]806   unless the cache is confident in the value of the Age header (e.g., because
807   there are no HTTP/1.0 hops in the Via header), in which case the
808   corrected_age_value &MAY; be used as the corrected_initial_age.</t>
[949]810   The current_age of a stored response can then be calculated by adding the
811   amount of time (in seconds) since the stored response was last validated by
812   the origin server to the corrected_initial_age.
[786]814<figure><artwork type="code">
[540]815  resident_time = now - response_time;
[786]816  current_age = corrected_initial_age + resident_time;
[1418]819   Additionally, to avoid common problems in date parsing:
822  <list style="symbols">
823     <t>HTTP/1.1 clients and caches &SHOULD; assume that an RFC-850 date
824        which appears to be more than 50 years in the future is in fact
825        in the past (this helps solve the "year 2000" problem).</t>
827     <t>Although all date formats are specified to be case-sensitive,
828        recipients &SHOULD; match day, week and timezone names
829        case-insensitively.</t>
831     <t>An HTTP/1.1 implementation &MAY; internally represent a parsed
832        Expires date as earlier than the proper value, but &MUST-NOT;
833        internally represent a parsed Expires date as later than the
834        proper value.</t>
836     <t>All expiration-related calculations &MUST; be done in GMT. The
837        local time zone &MUST-NOT; influence the calculation or comparison
838        of an age or expiration time.</t>
840     <t>If an HTTP header field incorrectly carries a date value with a time
841        zone other than GMT, it &MUST; be converted into GMT using the
842        most conservative possible conversion.</t>
843  </list>
[540]847<section anchor="serving.stale.responses" title="Serving Stale Responses">
[949]849   A "stale" response is one that either has explicit expiry information or is
850   allowed to have heuristic expiry calculated, but is not fresh according to
851   the calculations in <xref target="expiration.model" />.
[1112]854   A cache &MUST-NOT; return a stale response if it is prohibited by an
[949]855   explicit in-protocol directive (e.g., by a "no-store" or "no-cache" cache
856   directive, a "must-revalidate" cache-response-directive, or an applicable
857   "s-maxage" or "proxy-revalidate" cache-response-directive; see <xref
858   target="cache-response-directive"/>).
[1433]861   A cache &MUST-NOT; return stale responses unless it is disconnected
[949]862   (i.e., it cannot contact the origin server or otherwise find a forward
[1264]863   path) or doing so is explicitly allowed (e.g., by the max-stale request
[949]864   directive; see <xref target="cache-request-directive" />).
[1112]867   A cache &SHOULD; append a Warning header field with the 110 warn-code (see
868   <xref target="header.warning" />) to stale responses. Likewise, a cache
869   &SHOULD; add the 112 warn-code to stale responses if the cache is
870   disconnected.
[949]873   If a cache receives a first-hand response (either an entire response, or a
[1708]874   <x:ref>304 (Not Modified)</x:ref> response) that it would normally forward to the
[949]875   requesting client, and the received response is no longer fresh, the cache
[1433]876   can forward it to the requesting client without adding a new Warning (but
877   without removing any existing Warning header fields). A cache shouldn't
[949]878   attempt to validate a response simply because that response became stale in
879   transit.
[540]884<section anchor="validation.model" title="Validation Model">
[949]886   When a cache has one or more stored responses for a requested URI, but
887   cannot serve any of them (e.g., because they are not fresh, or one cannot
888   be selected; see <xref target="caching.negotiated.responses"/>), it can use
889   the conditional request mechanism &conditional; in the forwarded request to
890   give the origin server an opportunity to both select a valid stored
891   response to be used, and to update it. This process is known as
892   "validating" or "revalidating" the stored response.
[1433]895   When sending such a conditional request, a cache adds an If-Modified-Since
896   header field whose value is that of the Last-Modified header field from the
897   selected (see <xref target="caching.negotiated.responses"/>) stored
898   response, if available.
[1433]901   Additionally, a cache can add an If-None-Match header field whose value is
902   that of the ETag header field(s) from all responses stored for the
903   requested URI, if present. However, if any of the stored responses contains
904   only partial content, the cache shouldn't include its entity-tag in the
905   If-None-Match header field unless the request is for a range that would be
906   fully satisfied by that stored response.
909<t>Cache handling of a response to a conditional request is dependent upon its status code:</t>
[1419]912   <list style="symbols">
913      <t>
[1708]914         A <x:ref>304 (Not Modified)</x:ref> response status code indicates that the stored
[1419]915         response can be updated and reused; see <xref
916         target="freshening.responses"/>.
917      </t>
918      <t>
919         A full response (i.e., one with a response body) indicates that none
920         of the stored responses nominated in the conditional request is
[1433]921         suitable. Instead, the cache can use the full response to
922         satisfy the request and &MAY; replace the stored response(s).
[1419]923      </t>
924      <t>
925         However, if a cache receives a 5xx response while attempting to
[1433]926         validate a response, it can either forward this response to the
[1419]927         requesting client, or act as if the server failed to respond. In the
[1433]928         latter case, it can return a previously stored response (see <xref
[1419]929         target="serving.stale.responses" />).
930      </t>
931   </list>
[1554]934<section anchor="freshening.responses" title="Freshening Responses with 304 Not Modified">
[1708]936   When a cache receives a <x:ref>304 (Not Modified)</x:ref> response and already has one
[1715]937   or more stored <x:ref>200 (OK)</x:ref> responses for the same cache key, the cache needs
[1419]938   to identify which of the stored responses are updated by this new response
939   and then update the stored response(s) with the new information provided in
940   the 304 response.
941   <list style="symbols">
942    <t>
943     If the new response contains a strong validator, then that strong
944     validator identifies the selected representation.  All of the stored
945     responses with the same strong validator are selected.
946     If none of the stored responses contain the same strong validator, then
947     this new response corresponds to a new selected representation and
948     &MUST-NOT; update the existing stored responses.
949    </t>
950    <t>
951     If the new response contains a weak validator and that validator
952     corresponds to one of the cache's stored responses, then the most
953     recent of those matching stored responses is selected.
954    </t>
955    <t>
956     If the new response does not include any form of validator, there is
957     only one stored response, and that stored response also lacks a
958     validator, then that stored response is selected.
959    </t>
960   </list>
[1419]963   If a stored response is selected for update, the cache &MUST;:
964   <list style="symbols">
965      <t>delete any Warning header fields in the stored response with
966         warn-code 1xx (see <xref target="header.warning" />);</t>
967      <t>retain any Warning header fields in the stored response with
968         warn-code 2xx; and,</t>
969      <t>use other header fields provided in the 304 response to replace
970         all instances of the corresponding header fields in the stored
971         response.</t>
972   </list>
[1554]978<section anchor="head.effects" title="Updating Caches with HEAD Responses">
980   A response to the HEAD method is identical to what an equivalent request
981   made with a GET would have been, except it lacks a body. This property
982   of HEAD responses is used to both invalidate and update cached GET
983   responses.
986   If one or more stored GET responses can be selected (as per <xref
987   target="caching.negotiated.responses"/>) for a HEAD request, and the
988   Content-Length, ETag or Last-Modified value of a HEAD response differs from
989   that in a selected GET response, the cache &MUST; consider that selected
990   response to be stale.
993   If the Content-Length, ETag and Last-Modified values of a HEAD response
994   (when present) are the same as that in a selected GET response (as per
[1675]995   <xref target="caching.negotiated.responses"/>), the cache &SHOULD; update the
[1554]996   remaining headers in the stored response using the following rules:
997   <list style="symbols">
998      <t>delete any Warning header fields in the stored response with
999         warn-code 1xx (see <xref target="header.warning" />);</t>
1000      <t>retain any Warning header fields in the stored response with
1001         warn-code 2xx; and,</t>
1002      <t>use other header fields provided in the response to replace
1003         all instances of the corresponding header fields in the stored
1004         response.</t>
1005   </list>
[949]1010<section anchor="invalidation.after.updates.or.deletions" 
1011   title="Request Methods that Invalidate">
[1290]1013   Because unsafe request methods (&safe-methods;) such as PUT, POST or DELETE
1014   have the potential for changing state on the origin server, intervening
1015   caches can use them to keep their contents up-to-date.
[1112]1018   A cache &MUST; invalidate the effective Request URI
1019   (&effective-request-uri;) as well as the URI(s) in the Location
[1529]1020   and Content-Location response header fields (if present) when a non-error
[1314]1021   response to a request with an unsafe method is received.
[1529]1024   However, a cache &MUST-NOT; invalidate a URI from a Location or
1025   Content-Location response header field if the host part of that URI differs
1026   from the host part in the effective request URI (&effective-request-uri;).
1027   This helps prevent denial of service attacks.
[1433]1030   A cache &MUST; invalidate the effective request URI
[1314]1031   (&effective-request-uri;) when it receives a non-error response
1032   to a request with a method whose safety is unknown.
[1727]1035   Here, a "non-error response" is one with a <x:ref>2xx</x:ref> or <x:ref>3xx</x:ref> status code.
[1314]1036   "Invalidate" means that the cache will either remove all stored
[965]1037   responses related to the effective request URI, or will mark these as
[949]1038   "invalid" and in need of a mandatory validation before they can be returned
1039   in response to a subsequent request.
[949]1042   Note that this does not guarantee that all appropriate responses are
1043   invalidated. For example, the request that caused the change at the origin
1044   server might not have gone through the cache where a response is stored.
[949]1048<section anchor="caching.authenticated.responses" 
1049   title="Shared Caching of Authenticated Responses">
[1112]1052   A shared cache &MUST-NOT; use a cached response to a request with an
[994]1053   Authorization header field (&header-authorization;) to satisfy any subsequent
[949]1054   request unless a cache directive that allows such responses to be stored is
1055   present in the response.
1059   In this specification, the following Cache-Control response directives
1060   (<xref target="cache-response-directive"/>) have such an effect:
1061   must-revalidate, public, s-maxage.
1065   Note that cached responses that contain the "must-revalidate" and/or
1066   "s-maxage" response directives are not allowed to be served stale (<xref
1067   target="serving.stale.responses"/>) by shared caches. In particular, a
1068   response with either "max-age=0, must-revalidate" or "s-maxage=0" cannot be
1069   used to satisfy a subsequent request without revalidating it on the origin
1070   server.
[949]1074<section anchor="caching.negotiated.responses" 
1075   title="Caching Negotiated Responses">
[949]1077   When a cache receives a request that can be satisfied by a stored response
1078   that has a Vary header field (<xref target="header.vary"/>), it &MUST-NOT;
[1163]1079   use that response unless all of the selecting header fields nominated by
[994]1080   the Vary header field match in both the original request (i.e., that associated
[949]1081   with the stored response), and the presented request.
[1163]1084   The selecting header fields from two requests are defined to match if and
[949]1085   only if those in the first request can be transformed to those in the
1086   second request by applying any of the following:
1087   <list style="symbols">
1088      <t>
[994]1089         adding or removing whitespace, where allowed in the header field's syntax
[949]1090      </t>
1091      <t>
[1163]1092         combining multiple header fields with the same field name
[949]1093         (see &header-fields;)
1094      </t>
1095      <t>
[994]1096         normalizing both header field values in a way that is known to have
1097         identical semantics, according to the header field's specification (e.g.,
[949]1098         re-ordering field values when order is not significant;
1099         case-normalization, where values are defined to be case-insensitive)
1100      </t>
[771]1101  </list>
[949]1104   If (after any normalization that might take place) a header field is absent
1105   from a request, it can only match another request if it is also absent
1106   there.
[949]1109   A Vary header field-value of "*" always fails to match, and subsequent
1110   requests to that resource can only be properly interpreted by the origin
1111   server.
[1163]1114   The stored response with matching selecting header fields is known as the
[949]1115   selected response.
[1292]1118   If multiple selected responses are available, the most recent response
1119   (as determined by the Date header field) is used; see <xref 
1120   target="constructing.responses.from.caches"/>.
[1433]1123   If no selected response is available, the cache can forward the presented
[949]1124   request to the origin server in a conditional request; see <xref
1125   target="validation.model"/>.
[1374]1129<section anchor="combining.responses" title="Combining Partial Content">
[1374]1131   A response might transfer only a partial representation if the
1132   connection closed prematurely or if the request used one or more Range
1133   specifiers (&partial;).  After several such transfers, a cache might have
1134   received several ranges of the same representation.  A cache &MAY; combine
1135   these ranges into a single stored response, and reuse that response to
1136   satisfy later requests, if they all share the same strong validator and
1137   the cache complies with the client requirements in &combining-byte-ranges;.
[1374]1140   When combining the new response with one or more stored responses, a
1141   cache &MUST;:
1142   <list style="symbols">
1143      <t>delete any Warning header fields in the stored response with
1144         warn-code 1xx (see <xref target="header.warning" />);</t>
1145      <t>retain any Warning header fields in the stored response with
1146         warn-code 2xx; and,</t>
1147      <t>use other header fields provided in the new response, aside
1148         from Content-Range, to replace all instances of the corresponding
1149         header fields in the stored response.</t>
1150   </list>
[1415]1157<section anchor="header.field.definitions" title="Header Field Definitions">
[949]1159   This section defines the syntax and semantics of HTTP/1.1 header fields
1160   related to caching.
[540]1163<section anchor="header.age" title="Age">
[1120]1164   <iref item="Age header field" primary="true" x:for-anchor="" />
1165   <iref item="Header Fields" primary="true" subitem="Age" x:for-anchor="" />
[949]1166   <x:anchor-alias value="Age"/>
1167   <x:anchor-alias value="age-value"/>
[1163]1169   The "Age" header field conveys the sender's estimate of the amount
[949]1170   of time since the response was generated or successfully validated at the
1171   origin server. Age values are calculated as specified in <xref
1172   target="age.calculations" />.
[1231]1174<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Age"/>
1175  <x:ref>Age</x:ref> = <x:ref>delta-seconds</x:ref>
[1323]1178  Age field-values are non-negative integers, representing time in seconds
1179  (see <xref target="delta-seconds"/>).
[949]1182   The presence of an Age header field in a response implies that a response
1183   is not first-hand. However, the converse is not true, since HTTP/1.0 caches
1184   might not implement the Age header field.
[540]1188<section anchor="header.cache-control" title="Cache-Control">
[1120]1189   <iref item="Cache-Control header field" primary="true" x:for-anchor="" />
1190   <iref item="Header Fields" primary="true" subitem="Cache-Control" 
[949]1191      x:for-anchor="" />
1192   <x:anchor-alias value="Cache-Control"/>
1193   <x:anchor-alias value="cache-directive"/>
[1163]1195   The "Cache-Control" header field is used to specify directives for
[949]1196   caches along the request/response chain. Such cache directives are
1197   unidirectional in that the presence of a directive in a request does not
1198   imply that the same directive is to be given in the response.
[1112]1201   A cache &MUST; obey the requirements of the Cache-Control
[949]1202   directives defined in this section. See <xref
1203   target="cache.control.extensions"/> for information about how Cache-Control
1204   directives defined elsewhere are handled.
[949]1207   <t>
[1692]1208       &Note; HTTP/1.0 caches might not implement Cache-Control and
[949]1209       might only implement Pragma: no-cache (see <xref target="header.pragma"
1210       />).
1211   </t>
[1173]1214   A proxy, whether or not it implements a cache, &MUST; pass cache directives
1215   through in forwarded messages, regardless of their
[1112]1216   significance to that application, since the directives might be applicable
1217   to all recipients along the request/response chain. It is not possible to
1218   target a directive to a specific cache.
1221   Cache directives are identified by a token, to be compared case-insensitively,
1222   and have an optional argument, that can use both token and quoted-string
1223   syntax. For the directives defined below that define arguments, recipients
1224   ought to accept both forms, even if one is documented to be preferred. For
1225   any directive not defined by this specification, recipients &MUST; accept
1226   both forms.
1228<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Cache-Control"/><iref primary="true" item="Grammar" subitem="cache-directive"/>
[1231]1229  <x:ref>Cache-Control</x:ref>   = 1#<x:ref>cache-directive</x:ref>
[1695]1231  <x:ref>cache-directive</x:ref> = <x:ref>token</x:ref> [ "=" ( <x:ref>token</x:ref> / <x:ref>quoted-string</x:ref> ) ]
1234   For the cache directives defined below, no argument is defined (nor allowed)
1235   otherwise stated otherwise.
[949]1238<section anchor="cache-request-directive" 
1239   title="Request Cache-Control Directives">
[1695]1241<section title="no-cache" anchor="">
[949]1242   <iref item="Cache Directives" primary="true" subitem="no-cache" />
1243   <iref item="no-cache" primary="true" subitem="Cache Directive" />
1245   The no-cache request directive indicates that a cache &MUST-NOT; 
1246   use a stored response to satisfy the request without successful
1247   validation on the origin server.
1251<section title="no-store" anchor="">
[949]1252   <iref item="Cache Directives" primary="true" subitem="no-store" />
1253   <iref item="no-store" primary="true" subitem="Cache Directive" />
1255   The no-store request directive indicates that a cache &MUST-NOT;
1256   store any part of either this request or any response to it. This
1257   directive applies to both private and shared caches. "&MUST-NOT;
1258   store" in this context means that the cache &MUST-NOT; intentionally
1259   store the information in non-volatile storage, and &MUST; make a
1260   best-effort attempt to remove the information from volatile storage as
1261   promptly as possible after forwarding it.
[1695]1264   This directive is NOT a reliable or sufficient mechanism for ensuring
1265   privacy. In particular, malicious or compromised caches might not
1266   recognize or obey this directive, and communications networks might be
1267   vulnerable to eavesdropping.
1270   Note that if a request containing this directive is satisfied from a
1271   cache, the no-store request directive does not apply to the already
1272   stored response.
1276<section title="max-age" anchor="cache-request-directive.max-age">
[949]1277   <iref item="Cache Directives" primary="true" subitem="max-age" />
1278   <iref item="max-age" primary="true" subitem="Cache Directive" />
1280   Argument syntax:
[949]1281   <list>
[1695]1282      <t>
1283        <x:ref>delta-seconds</x:ref> (see <xref target="delta-seconds"/>)
1284      </t>
[949]1285   </list>
[1695]1288   The max-age request directive indicates that the client is unwilling to
1289   accept a response whose age is greater than the specified number of
1290   seconds. Unless the max-stale request directive is also present, the
1291   client is not willing to accept a stale response.
1294   &Note; This directive uses the token form of the argument syntax;
1295   e.g., 'max-age=5', not 'max-age="5"'. Senders &SHOULD-NOT; use the
1296   quoted-string form.
1300<section title="max-stale" anchor="cache-request-directive.max-stale">
[949]1301   <iref item="Cache Directives" primary="true" subitem="max-stale" />
1302   <iref item="max-stale" primary="true" subitem="Cache Directive" />
1304   Argument syntax:
[949]1305   <list>
[1695]1306      <t>
1307        <x:ref>delta-seconds</x:ref> (see <xref target="delta-seconds"/>)
1308      </t>
[949]1309   </list>
[1695]1312   The max-stale request directive indicates that the client is willing
1313   to accept a response that has exceeded its expiration time. If max-stale
1314   is assigned a value, then the client is willing to accept a response
1315   that has exceeded its expiration time by no more than the specified
1316   number of seconds. If no value is assigned to max-stale, then the client
1317   is willing to accept a stale response of any age.
1320   &Note; This directive uses the token form of the argument syntax;
1321   e.g., 'max-stale=10', not 'max-stale="10"'. Senders &SHOULD-NOT; use the
1322   quoted-string form.
1326<section title="min-fresh" anchor="cache-request-directive.min-fresh">
[949]1327   <iref item="Cache Directives" primary="true" subitem="min-fresh" />
1328   <iref item="min-fresh" primary="true" subitem="Cache Directive" />
1330   Argument syntax:
[949]1331   <list>
[1695]1332      <t>
1333        <x:ref>delta-seconds</x:ref> (see <xref target="delta-seconds"/>)
1334      </t>
[949]1335   </list>
[1695]1338   The min-fresh request directive indicates that the client is willing
1339   to accept a response whose freshness lifetime is no less than its
1340   current age plus the specified time in seconds. That is, the client
1341   wants a response that will still be fresh for at least the specified
1342   number of seconds.
1345   &Note; This directive uses the token form of the argument syntax;
1346   e.g., 'min-fresh=20', not 'min-fresh="20"'. Senders &SHOULD-NOT; use the
1347   quoted-string form.
1351<section title="no-transform" anchor="">
[949]1352   <iref item="Cache Directives" primary="true" subitem="no-transform" />
1353   <iref item="no-transform" primary="true" subitem="Cache Directive" />
1355   The no-transform request directive indicates that an intermediary
1356   (whether or not it implements a cache) &MUST-NOT; change the
1357   Content-Encoding, Content-Range or Content-Type request header fields,
1358   nor the request representation.
1362<section title="only-if-cached" anchor="cache-request-directive.only-if-cached">
[949]1363   <iref item="Cache Directives" primary="true" subitem="only-if-cached" />
1364   <iref item="only-if-cached" primary="true" subitem="Cache Directive" />
1366   The only-if-cached request directive indicates that the client only
1367   wishes to obtain a stored response. If it receives 3ive, a
1368   cache &SHOULD; either respond using a stored response that is consistent
[1710]1369   with the other constraints of the request, or respond with a <x:ref>504
1370   (Gateway Timeout)</x:ref> status code. If a group of caches is being operated as
[1695]1371   a unified system with good internal connectivity, a member cache &MAY;
1372   forward such a request within that group of caches.
[949]1377<section anchor="cache-response-directive" 
1378   title="Response Cache-Control Directives">
1379   <x:anchor-alias value="cache-response-directive" />
[1695]1381<section title="public" anchor="cache-response-directive.only-if-cached">
[949]1382   <iref item="Cache Directives" primary="true" subitem="public" />
1383   <iref item="public" primary="true" subitem="Cache Directive" />
1385   The public response directive indicates that a response whose
1386   associated request contains an 'Authentication' header &MAY; be
1387   stored (see <xref target="caching.authenticated.responses" />).
1391<section title="private" anchor="cache-response-directive.private">
[949]1392   <iref item="Cache Directives" primary="true" subitem="private" />
1393   <iref item="private" primary="true" subitem="Cache Directive" />
1395   Argument syntax:
[949]1396   <list>
[1695]1397      <t>
1398        #<x:ref>field-name</x:ref>
[1664]1399      </t>
[949]1400   </list>
[1695]1403   The private response directive indicates that the response message is
1404   intended for a single user and &MUST-NOT; be stored by a shared cache. A
1405   private cache &MAY; store the response.
1408   If the private response directive specifies one or more field-names,
1409   this requirement is limited to the field-values associated with the
1410   listed response header fields. That is, a shared cache &MUST-NOT; store
1411   the specified field-names(s), whereas it &MAY; store the remainder of the
1412   response message.
1415   The field-names given are not limited to the set of standard header
1416   fields defined by this specification. Field names are case-insensitive.
1419   &Note; This usage of the word "private" only controls
1420   where the response can be stored; it cannot ensure the privacy of the
1421   message content. Also, private response directives with field-names are
1422   often handled by implementations as if an unqualified private directive
1423   was received; i.e., the special handling for the qualified form is not
1424   widely implemented.
1427   &Note; This directive uses the quoted-string form of the argument
1428   syntax. Senders &SHOULD-NOT; use the token form (even if quoting appears not
1429   to be needed for single-entry lists).
1433<section title="no-cache" anchor="">
[949]1434   <iref item="Cache Directives" primary="true" subitem="no-cache" />
1435   <iref item="no-cache" primary="true" subitem="Cache Directive" />
1437   Argument syntax:
[949]1438   <list>
[1695]1439      <t>
1440        #<x:ref>field-name</x:ref>
[1664]1441      </t>
[949]1442   </list>
[1695]1445   The no-cache response directive indicates that the response &MUST-NOT;
1446   be used to satisfy a subsequent request without successful validation on
1447   the origin server. This allows an origin server to prevent a cache from
1448   using it to satisfy a request without contacting it, even by caches that
1449   have been configured to return stale responses.
1452   If the no-cache response directive specifies one or more field-names,
1453   then a cache &MAY; use the response to satisfy a subsequent request,
1454   subject to any other restrictions on caching. However, any header fields
1455   in the response that have the field-name(s) listed &MUST-NOT; be sent
1456   in the response to a subsequent request without successful revalidation
1457   with the origin server. This allows an origin server to prevent the
1458   re-use of certain header fields in a response, while still allowing
1459   caching of the rest of the response.
1462   The field-names given are not limited to the set of standard header
1463   fields defined by this specification. Field names are case-insensitive.
1466   &Note; Most HTTP/1.0 caches will not recognize or obey
1467   this directive. Also, no-cache response directives with field-names are
1468   often handled by implementations as if an unqualified no-cache directive
1469   was received; i.e., the special handling for the qualified form is not
1470   widely implemented.
1473   &Note; This directive uses the quoted-string form of the argument
1474   syntax. Senders &SHOULD-NOT; use the token form (even if quoting appears not
1475   to be needed for single-entry lists).
1479<section title="no-store" anchor="">
[949]1480   <iref item="Cache Directives" primary="true" subitem="no-store" />
1481   <iref item="no-store" primary="true" subitem="Cache Directive" />
1483   The no-store response directive indicates that a cache &MUST-NOT;
1484   store any part of either the immediate request or response. This
1485   directive applies to both private and shared caches. "&MUST-NOT;
1486   store" in this context means that the cache &MUST-NOT; intentionally
1487   store the information in non-volatile storage, and &MUST; make a
1488   best-effort attempt to remove the information from volatile storage as
1489   promptly as possible after forwarding it.
[1695]1492   This directive is NOT a reliable or sufficient mechanism for ensuring
1493   privacy. In particular, malicious or compromised caches might not
1494   recognize or obey this directive, and communications networks might be
1495   vulnerable to eavesdropping.
1499<section title="must-revalidate" anchor="cache-response-directive.must-revalidate">
[949]1500   <iref item="Cache Directives" primary="true" subitem="must-revalidate" />
1501   <iref item="must-revalidate" primary="true" subitem="Cache Directive" />
1503   The must-revalidate response directive indicates that once it has
1504   become stale, a cache &MUST-NOT; use the response to satisfy subsequent
1505   requests without successful validation on the origin server.
[1695]1508   The must-revalidate directive is necessary to support reliable
1509   operation for certain protocol features. In all circumstances a
1510   cache &MUST; obey the must-revalidate directive; in particular,
1511   if a cache cannot reach the origin server for any reason, it &MUST;
[1710]1512   generate a <x:ref>504 (Gateway Timeout)</x:ref> response.
1515   The must-revalidate directive ought to be used by servers if and only
1516   if failure to validate a request on the representation could result in
1517   incorrect operation, such as a silently unexecuted financial
1518   transaction.
1522<section title="proxy-revalidate" anchor="cache-response-directive.proxy-revalidate">
[949]1523   <iref item="Cache Directives" primary="true" subitem="proxy-revalidate" />
1524   <iref item="proxy-revalidate" primary="true" subitem="Cache Directive" />
1526   The proxy-revalidate response directive has the same meaning as the
1527   must-revalidate response directive, except that it does not apply to
1528   private caches.
1532<section title="max-age" anchor="cache-response-directive.max-age">
[949]1533   <iref item="Cache Directives" primary="true" subitem="max-age" />
1534   <iref item="max-age" primary="true" subitem="Cache Directive" />
1536   Argument syntax:
[949]1537   <list>
[1695]1538      <t>
1539        <x:ref>delta-seconds</x:ref> (see <xref target="delta-seconds"/>)
1540      </t>
[949]1541   </list>
[1695]1544   The max-age response directive indicates that the response is to be
1545   considered stale after its age is greater than the specified number of
1546   seconds.
1549   &Note; This directive uses the token form of the argument syntax;
1550   e.g., 'max-age=5', not 'max-age="5"'. Senders &SHOULD-NOT; use the
1551   quoted-string form.
1555<section title="s-maxage" anchor="cache-response-directive.s-maxage">
[949]1556   <iref item="Cache Directives" primary="true" subitem="s-maxage" />
1557   <iref item="s-maxage" primary="true" subitem="Cache Directive" />
1559   Argument syntax:
[949]1560   <list>
[1695]1561      <t>
1562        <x:ref>delta-seconds</x:ref> (see <xref target="delta-seconds"/>)
1563      </t>
[949]1564   </list>
[1695]1567   The s-maxage response directive indicates that, in shared caches, the
1568   maximum age specified by this directive overrides the maximum age
1569   specified by either the max-age directive or the Expires header field. The
1570   s-maxage directive also implies the semantics of the proxy-revalidate
1571   response directive.
1574   &Note; This directive uses the token form of the argument syntax;
1575   e.g., 's-maxage=10', not 's-maxage="10"'. Senders &SHOULD-NOT; use the
1576   quoted-string form.
1580<section title="no-transform" anchor="">
[949]1581   <iref item="Cache Directives" primary="true" subitem="no-transform" />
1582   <iref item="no-transform" primary="true" subitem="Cache Directive" />
1584   The no-transform response directive indicates that an intermediary
1585   (regardless of whether it implements a cache) &MUST-NOT; change the
1586   Content-Encoding, Content-Range or Content-Type response header fields,
1587   nor the response representation.
[540]1593<section anchor="cache.control.extensions" title="Cache Control Extensions">
[949]1595   The Cache-Control header field can be extended through the use of one or
1596   more cache-extension tokens, each with an optional value. Informational
1597   extensions (those that do not require a change in cache behavior) can be
1598   added without changing the semantics of other directives. Behavioral
1599   extensions are designed to work by acting as modifiers to the existing base
1600   of cache directives. Both the new directive and the standard directive are
1601   supplied, such that applications that do not understand the new directive
1602   will default to the behavior specified by the standard directive, and those
1603   that understand the new directive will recognize it as modifying the
1604   requirements associated with the standard directive. In this way,
1605   extensions to the cache-control directives can be made without requiring
1606   changes to the base protocol.
[949]1609   This extension mechanism depends on an HTTP cache obeying all of the
1610   cache-control directives defined for its native HTTP-version, obeying
1611   certain extensions, and ignoring all directives that it does not
1612   understand.
[949]1615   For example, consider a hypothetical new response directive called
1616   "community" that acts as a modifier to the private directive. We define
[1112]1617   this new directive to mean that, in addition to any private cache, any
[949]1618   cache that is shared only by members of the community named within its
[1707]1619   value is allowed to cache the response. An origin server wishing to allow
1620   the UCI community to use an otherwise private response in their shared
1621   cache(s) could do so by including
1623<figure><artwork type="example">
[458]1624  Cache-Control: private, community="UCI"
[949]1627   A cache seeing this header field will act correctly even if the cache does
1628   not understand the community cache-extension, since it will also see and
1629   understand the private directive and thus default to the safe behavior.
[1285]1632   A cache &MUST; ignore unrecognized cache directives; it is assumed that any
[949]1633   cache directive likely to be unrecognized by an HTTP/1.1 cache will be
1634   combined with standard directives (or the response's default cacheability)
1635   such that the cache behavior will remain minimally correct even if the
1636   cache does not understand the extension(s).
[1701]1639   New extension directives ought to consider defining:
1642   <list style="symbols">
1643      <t>What it means for a directive to be specified multiple times,</t>
1644      <t>When the directive does not take an argument, what it means when an
1645      argument is present,</t>
1646      <t>When the directive requires an argument, what it means when it is
1647      missing.</t>
1648   </list>
[949]1651   The HTTP Cache Directive Registry defines the name space for the cache
1652   directives.
[1112]1655   A registration &MUST; include the following fields:
[949]1656   <list style="symbols">
1657      <t>Cache Directive Name</t>
1658      <t>Pointer to specification text</t>
1659   </list>
[1567]1662   Values to be added to this name space require IETF Review (see <xref
[949]1663   target="RFC5226" x:fmt="," x:sec="4.1"/>).
[949]1666   The registry itself is maintained at <eref
1667   target=""/>.
[540]1673<section anchor="header.expires" title="Expires">
[1120]1674   <iref item="Expires header field" primary="true" x:for-anchor="" />
1675   <iref item="Header Fields" primary="true" subitem="Expires" x:for-anchor="" />
[949]1676   <x:anchor-alias value="Expires"/>
[965]1678   The "Expires" header field gives the date/time after which the
[949]1679   response is considered stale. See <xref target="expiration.model" /> for
1680   further discussion of the freshness model.
[949]1683   The presence of an Expires field does not imply that the original resource
1684   will change or cease to exist at, before, or after that time.
[949]1687   The field-value is an absolute date and time as defined by HTTP-date in
[1436]1688   &http-date;; a sender &MUST; use the rfc1123-date format.
[1231]1690<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Expires"/>
1691  <x:ref>Expires</x:ref> = <x:ref>HTTP-date</x:ref>
1694  <preamble>For example</preamble>
1695<artwork type="example">
[364]1696  Expires: Thu, 01 Dec 1994 16:00:00 GMT
1699   A cache &MUST; treat other invalid date formats,
1700   especially including the value "0", as in the past (i.e., "already
1701   expired").
[949]1704   <t>
[1692]1705       &Note; If a response includes a Cache-Control field with the
[949]1706       max-age directive (see <xref target="cache-response-directive" />),
1707       that directive overrides the Expires field. Likewise, the s-maxage
1708       directive overrides Expires in shared caches.
1709   </t>
[1400]1712   Historically, HTTP required the Expires field-value to be no more than a
1713   year in the future. While longer freshness lifetimes are no longer
1714   prohibited, extremely large values have been demonstrated to cause
1715   problems (e.g., clock overflows due to use of 32-bit integers for
1716   time values), and most caches will evict a response far sooner than
1717   that. Therefore, senders ought not produce them.
1720   An origin server without a clock &MUST-NOT; assign Expires
1721   values to a response unless these values were associated
1722   with the resource by a system or user with a reliable clock. It &MAY;
1723   assign an Expires value that is known, at or before server
1724   configuration time, to be in the past (this allows "pre-expiration"
1725   of responses without storing separate Expires values for each
1726   resource).
[540]1730<section anchor="header.pragma" title="Pragma">
[1120]1731   <iref item="Pragma header field" primary="true" x:for-anchor="" />
1732   <iref item="Header Fields" primary="true" subitem="Pragma" x:for-anchor="" />
[949]1733   <x:anchor-alias value="extension-pragma"/>
1734   <x:anchor-alias value="Pragma"/>
1735   <x:anchor-alias value="pragma-directive"/>
[1287]1737   The "Pragma" header field allows backwards compatibility with HTTP/1.0
[1284]1738   caches, so that clients can specify a "no-cache" request that they will
1739   understand (as Cache-Control was not defined until HTTP/1.1). When the
1740   Cache-Control header is also present and understood in a request, Pragma is
1741   ignored.
[1287]1744   In HTTP/1.0, Pragma was defined as an extensible field for
[1284]1745   implementation-specified directives for recipients. This specification
1746   deprecates such extensions to improve interoperability.
[1231]1748<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Pragma"/><iref primary="true" item="Grammar" subitem="pragma-directive"/><iref primary="true" item="Grammar" subitem="extension-pragma"/>
1749  <x:ref>Pragma</x:ref>           = 1#<x:ref>pragma-directive</x:ref>
1750  <x:ref>pragma-directive</x:ref> = "no-cache" / <x:ref>extension-pragma</x:ref>
1751  <x:ref>extension-pragma</x:ref> = <x:ref>token</x:ref> [ "=" ( <x:ref>token</x:ref> / <x:ref>quoted-string</x:ref> ) ]
[1287]1754   When the Cache-Control header is not present in a request, the no-cache
[1284]1755   request pragma-directive &MUST; have the same effect on caches as if
1756   "Cache-Control: no-cache" were present (see <xref
1757   target="cache-request-directive" />).
[1433]1760   When sending a no-cache request, a client ought to include both the pragma
1761   and cache-control directives, unless Cache-Control: no-cache is
1762   purposefully omitted to target other Cache-Control response directives at
1763   HTTP/1.1 caches. For example:
[1287]1766<artwork type="message/http; msgtype=&#34;response&#34;" x:indent-with="  ">
[1284]1767GET / HTTP/1.1
1769Cache-Control: max-age=30
1770Pragma: no-cache
1775   will constrain HTTP/1.1 caches to serve a response no older than 30
1776   seconds, while precluding implementations that do not understand
1777   Cache-Control from serving a cached response.
[949]1780   <t>
[1692]1781      &Note; Because the meaning of "Pragma: no-cache" in responses is not
[1284]1782      specified, it does not provide a reliable replacement for
1783      "Cache-Control: no-cache" in them.
[1287]1784   </t>
[540]1788<section anchor="header.vary" title="Vary">
[1120]1789   <iref item="Vary header field" primary="true" x:for-anchor="" />
1790   <iref item="Header Fields" primary="true" subitem="Vary" x:for-anchor="" />
[949]1791   <x:anchor-alias value="Vary"/>
[1163]1793   The "Vary" header field conveys the set of header fields
[949]1794   that were used to select the representation.
[949]1797   Caches use this information, in part, to determine whether a stored
1798   response can be used to satisfy a given request; see <xref
1799   target="caching.negotiated.responses" />. determines, while the response is
1800   fresh, whether a cache is permitted to use the response to reply to a
1801   subsequent request without validation; see <xref
1802   target="caching.negotiated.responses" />.
[949]1805   In uncacheable or stale responses, the Vary field value advises the user
1806   agent about the criteria that were used to select the representation.
[1231]1808<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Vary"/>
1809  <x:ref>Vary</x:ref> = "*" / 1#<x:ref>field-name</x:ref>
[949]1812   The set of header fields named by the Vary field value is known as the
[1163]1813   selecting header fields.
[1112]1816   A server &SHOULD; include a Vary header field with any cacheable response
[949]1817   that is subject to server-driven negotiation. Doing so allows a cache to
1818   properly interpret future requests on that resource and informs the user
1819   agent about the presence of negotiation on that resource. A server &MAY;
1820   include a Vary header field with a non-cacheable response that is subject
1821   to server-driven negotiation, since this might provide the user agent with
1822   useful information about the dimensions over which the response varies at
1823   the time of the response.
[949]1826   A Vary field value of "*" signals that unspecified parameters not limited
[1163]1827   to the header fields (e.g., the network address of the client), play a
[949]1828   role in the selection of the response representation; therefore, a cache
[1112]1829   cannot determine whether this response is appropriate. A proxy &MUST-NOT;
1830   generate the "*" value.
[1163]1833   The field-names given are not limited to the set of standard header
[949]1834   fields defined by this specification. Field names are case-insensitive.
[540]1838<section anchor="header.warning" title="Warning">
[1120]1839   <iref item="Warning header field" primary="true" x:for-anchor="" />
1840   <iref item="Header Fields" primary="true" subitem="Warning" x:for-anchor="" />
[949]1841   <x:anchor-alias value="Warning"/>
1842   <x:anchor-alias value="warning-value"/>
1843   <x:anchor-alias value="warn-agent"/>
1844   <x:anchor-alias value="warn-code"/>
1845   <x:anchor-alias value="warn-date"/>
1846   <x:anchor-alias value="warn-text"/>
[1163]1848   The "Warning" header field is used to carry additional information
[949]1849   about the status or transformation of a message that might not be reflected
1850   in the message. This information is typically used to warn about possible
1851   incorrectness introduced by caching operations or transformations applied
1852   to the payload of the message.
[949]1855   Warnings can be used for other purposes, both cache-related and otherwise.
1856   The use of a warning, rather than an error status code, distinguishes these
1857   responses from true failures.
[994]1860   Warning header fields can in general be applied to any message, however some
[949]1861   warn-codes are specific to caches and can only be applied to response
1862   messages.
[1231]1864<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Warning"/><iref primary="true" item="Grammar" subitem="warning-value"/><iref primary="true" item="Grammar" subitem="warn-code"/><iref primary="true" item="Grammar" subitem="warn-agent"/><iref primary="true" item="Grammar" subitem="warn-text"/><iref primary="true" item="Grammar" subitem="warn-date"/>
1865  <x:ref>Warning</x:ref>       = 1#<x:ref>warning-value</x:ref>
[229]1867  <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>
1868                                        [<x:ref>SP</x:ref> <x:ref>warn-date</x:ref>]
[229]1870  <x:ref>warn-code</x:ref>  = 3<x:ref>DIGIT</x:ref>
[334]1871  <x:ref>warn-agent</x:ref> = ( <x:ref>uri-host</x:ref> [ ":" <x:ref>port</x:ref> ] ) / <x:ref>pseudonym</x:ref>
[135]1872                  ; the name or pseudonym of the server adding
[994]1873                  ; the Warning header field, for use in debugging
[229]1874  <x:ref>warn-text</x:ref>  = <x:ref>quoted-string</x:ref>
1875  <x:ref>warn-date</x:ref>  = <x:ref>DQUOTE</x:ref> <x:ref>HTTP-date</x:ref> <x:ref>DQUOTE</x:ref>
[949]1878   Multiple warnings can be attached to a response (either by the origin
1879   server or by a cache), including multiple warnings with the same code
1880   number, only differing in warn-text.
[949]1883   When this occurs, the user agent &SHOULD; inform the user of as many of
1884   them as possible, in the order that they appear in the response.
[1433]1887   Systems that generate multiple Warning header fields are encouraged to
1888   order them with this user agent behavior in mind. New Warning header fields
1889   are added after any existing Warning headers fields.
[949]1892   Warnings are assigned three digit warn-codes. The first digit indicates
1893   whether the Warning is required to be deleted from a stored response after
1894   validation:
1895   <list style="symbols">
1896      <t>1xx Warnings describe the freshness or validation status of the
[1112]1897      response, and so &MUST; be deleted by a cache after validation. They can
[949]1898      only be generated by a cache when validating a cached entry, and
1899      &MUST-NOT; be generated in any other situation.</t>
1900      <t>2xx Warnings describe some aspect of the representation that is not
1901      rectified by a validation (for example, a lossy compression of the
[1112]1902      representation) and &MUST-NOT; be deleted by a cache after validation,
[949]1903      unless a full response is returned, in which case they &MUST; be.</t>
1904   </list>
[994]1907   If an implementation sends a message with one or more Warning header fields to a
[949]1908   receiver whose version is HTTP/1.0 or lower, then the sender &MUST; include
[994]1909   in each warning-value a warn-date that matches the Date header field in the
[949]1910   message.
[1112]1913   If a system receives a message with a warning-value that includes
[949]1914   a warn-date, and that warn-date is different from the Date value in the
1915   response, then that warning-value &MUST; be deleted from the message before
1916   storing, forwarding, or using it. (preventing the consequences of naive
1917   caching of Warning header fields.) If all of the warning-values are deleted
[994]1918   for this reason, the Warning header field &MUST; be deleted as well.
[949]1921   The following warn-codes are defined by this specification, each with a
1922   recommended warn-text in English, and a description of its meaning.
1925<section title="110 Response is Stale" anchor="warn.110">
1926  <iref primary="true" item="110 Response is Stale (warn code)" x:for-anchor=""/>
1927  <iref primary="true" item="Warn Codes" subitem="110 Response is Stale" x:for-anchor=""/>
1929   A cache &SHOULD; include this whenever the returned response is stale.
1933<section title="111 Revalidation Failed" anchor="warn.111">
1934  <iref primary="true" item="111 Revalidation Failed (warn code)" x:for-anchor=""/>
1935  <iref primary="true" item="Warn Codes" subitem="111 Revalidation Failed" x:for-anchor=""/>
1937   A cache &SHOULD; include this when returning a stale response because an
1938   attempt to validate the response failed, due to an inability to reach
1939   the server.
1943<section title="112 Disconnected Operation" anchor="warn.112">
1944  <iref primary="true" item="112 Disconnected Operation (warn code)" x:for-anchor=""/>
1945  <iref primary="true" item="Warn Codes" subitem="112 Disconnected Operation" x:for-anchor=""/>
1947   A cache &SHOULD; include this if it is intentionally disconnected from
1948   the rest of the network for a period of time.
1952<section title="113 Heuristic Expiration" anchor="warn.113">
1953  <iref primary="true" item="113 Heuristic Expiration (warn code)" x:for-anchor=""/>
1954  <iref primary="true" item="Warn Codes" subitem="113 Heuristic Expiration" x:for-anchor=""/>
1956   A cache &SHOULD; include this if it heuristically chose a freshness
1957   lifetime greater than 24 hours and the response's age is greater than 24
1958   hours.
1962<section title="199 Miscellaneous Warning" anchor="warn.199">
1963  <iref primary="true" item="199 Miscellaneous Warning (warn code)" x:for-anchor=""/>
1964  <iref primary="true" item="Warn Codes" subitem="199 Miscellaneous Warning" x:for-anchor=""/>
1966   The warning text can include arbitrary information to be presented to
1967   a human user, or logged. A system receiving this warning &MUST-NOT; take
1968   any automated action, besides presenting the warning to the user.
1972<section title="214 Transformation Applied" anchor="warn.214">
1973  <iref primary="true" item="214 Transformation Applied (warn code)" x:for-anchor=""/>
1974  <iref primary="true" item="Warn Codes" subitem="214 Transformation Applied" x:for-anchor=""/>
1976   &MUST; be added by a proxy if it applies any transformation to the
1977   representation, such as changing the content-coding, media-type, or
1978   modifying the representation data, unless this Warning code already appears
1979   in the response.
1983<section title="299 Miscellaneous Persistent Warning" anchor="warn.299">
1984  <iref primary="true" item="299 Miscellaneous Persistent Warning (warn code)" x:for-anchor=""/>
1985  <iref primary="true" item="Warn Codes" subitem="299 Miscellaneous Persistent Warning" x:for-anchor=""/>
1987   The warning text can include arbitrary information to be presented to
1988   a human user, or logged. A system receiving this warning &MUST-NOT; take
1989   any automated action.
[1485]1993<section title="Warn Code Extensions" anchor="warn.code.extensions">
1995   The HTTP Warn Code Registry defines the name space for warn codes.
1998   A registration &MUST; include the following fields:
1999   <list style="symbols">
2000      <t>Warn Code (3 digits)</t>
2001      <t>Short Description</t>
2002      <t>Pointer to specification text</t>
2003   </list>
[1567]2006   Values to be added to this name space require IETF Review (see <xref
[1485]2007   target="RFC5226" x:fmt="," x:sec="4.1"/>).
2010   The registry itself is maintained at <eref
2011   target=""/>.
[540]2017<section anchor="history.lists" title="History Lists">
[949]2019   User agents often have history mechanisms, such as "Back" buttons and
2020   history lists, that can be used to redisplay a representation retrieved
2021   earlier in a session.
[949]2024   The freshness model (<xref target="expiration.model"/>) does not
2025   necessarily apply to history mechanisms. I.e., a history mechanism can
2026   display a previous representation even if it has expired.
2029   This does not prohibit the history mechanism from telling the user that a
2030   view might be stale, or from honoring cache directives (e.g.,
2031   Cache-Control: no-store).
[540]2036<section anchor="IANA.considerations" title="IANA Considerations">
[949]2038<section title="Cache Directive Registry" 
2039   anchor="cache.directive.registration">
[949]2041   The registration procedure for HTTP Cache Directives is defined by <xref
2042   target="cache.control.extensions"/> of this document.
[969]2045   The HTTP Cache Directive Registry shall be created at <eref
[949]2046   target=""/> and be
2047   populated with the registrations below:
2049<?BEGININC p6-cache.cache-directives ?>
2050<!--AUTOGENERATED FROM extract-cache-directives-defs.xslt, do not edit manually-->
[825]2051<texttable xmlns:my="#my" align="left" suppress-title="true"
[817]2052           anchor="iana.cache.directive.registration.table">
2053   <ttcol>Cache Directive</ttcol>
2054   <ttcol>Reference</ttcol>
2056   <c>max-age</c>
2057   <c>
[1695]2058      <xref target="cache-request-directive.max-age"/>, <xref target="cache-response-directive.max-age"/>
[817]2059   </c>
2060   <c>max-stale</c>
2061   <c>
[1695]2062      <xref target="cache-request-directive.max-stale"/>
[817]2063   </c>
2064   <c>min-fresh</c>
2065   <c>
[1695]2066      <xref target="cache-request-directive.min-fresh"/>
[817]2067   </c>
2068   <c>must-revalidate</c>
2069   <c>
[1695]2070      <xref target="cache-response-directive.must-revalidate"/>
[817]2071   </c>
2072   <c>no-cache</c>
2073   <c>
[1695]2074      <xref target=""/>, <xref target=""/>
[817]2075   </c>
2076   <c>no-store</c>
2077   <c>
[1695]2078      <xref target=""/>, <xref target=""/>
[817]2079   </c>
2080   <c>no-transform</c>
2081   <c>
[1695]2082      <xref target=""/>, <xref target=""/>
[817]2083   </c>
2084   <c>only-if-cached</c>
2085   <c>
[1695]2086      <xref target="cache-request-directive.only-if-cached"/>
[817]2087   </c>
2088   <c>private</c>
2089   <c>
[1695]2090      <xref target="cache-response-directive.private"/>
[817]2091   </c>
2092   <c>proxy-revalidate</c>
2093   <c>
[1695]2094      <xref target="cache-response-directive.proxy-revalidate"/>
[817]2095   </c>
2096   <c>public</c>
2097   <c>
[1695]2098      <xref target="cache-response-directive.only-if-cached"/>
[817]2099   </c>
2100   <c>s-maxage</c>
2101   <c>
[1695]2102      <xref target="cache-response-directive.s-maxage"/>
[817]2103   </c>
[825]2104   <c>stale-if-error</c>
2105   <c>
2106      <xref xmlns:x="" target="RFC5861" x:fmt="," x:sec="4"/>
2107   </c>
2108   <c>stale-while-revalidate</c>
2109   <c>
2110      <xref xmlns:x="" target="RFC5861" x:fmt="," x:sec="3"/>
2111   </c>
2114<?ENDINC p6-cache.cache-directives ?>
[1485]2117<section title="Warn Code Registry" 
2118   anchor="warn.code.registration">
2120   The registration procedure for HTTP Warn Codes is defined by <xref
2121   target="warn.code.extensions"/> of this document.
2124   The HTTP Warn Code Registry shall be created at <eref
2125   target=""/> and be
2126   populated with the registrations below:
[1487]2128<?BEGININC p6-cache.iana-warn-codes ?>
2129<!--AUTOGENERATED FROM extract-warn-code-defs.xslt, do not edit manually-->
2130<texttable align="left" suppress-title="true" anchor="iana.warn.code.registration.table">
[1485]2131   <ttcol>Warn Code</ttcol>
2132   <ttcol>Short Description</ttcol>
2133   <ttcol>Reference</ttcol>
2134   <c>110</c>
[1487]2135   <c>Response is Stale</c>
2136   <c>
2137      <xref target="warn.110"/>
2138   </c>
[1485]2139   <c>111</c>
[1487]2140   <c>Revalidation Failed</c>
2141   <c>
2142      <xref target="warn.111"/>
2143   </c>
[1485]2144   <c>112</c>
[1487]2145   <c>Disconnected Operation</c>
2146   <c>
2147      <xref target="warn.112"/>
2148   </c>
[1485]2149   <c>113</c>
[1487]2150   <c>Heuristic Expiration</c>
2151   <c>
2152      <xref target="warn.113"/>
2153   </c>
[1485]2154   <c>199</c>
[1487]2155   <c>Miscellaneous Warning</c>
2156   <c>
2157      <xref target="warn.199"/>
2158   </c>
[1485]2159   <c>214</c>
[1487]2160   <c>Transformation Applied</c>
2161   <c>
2162      <xref target="warn.214"/>
2163   </c>
[1485]2164   <c>299</c>
[1487]2165   <c>Miscellaneous Persistent Warning</c>
2166   <c>
2167      <xref target="warn.299"/>
2168   </c>
2171<?ENDINC p6-cache.iana-warn-codes ?>
[921]2174<section title="Header Field Registration" anchor="header.field.registration">
[949]2176  The Message Header Field Registry located at <eref 
[540]2177  target="" />
[969]2178  shall be updated with the permanent registrations below (see <xref target="RFC3864" />):
[680]2180<?BEGININC p6-cache.iana-headers ?>
[540]2181<!--AUTOGENERATED FROM extract-header-defs.xslt, do not edit manually-->
[680]2182<texttable align="left" suppress-title="true" anchor="iana.header.registration.table">
2183   <ttcol>Header Field Name</ttcol>
2184   <ttcol>Protocol</ttcol>
2185   <ttcol>Status</ttcol>
2186   <ttcol>Reference</ttcol>
[680]2188   <c>Age</c>
2189   <c>http</c>
2190   <c>standard</c>
2191   <c>
2192      <xref target="header.age"/>
2193   </c>
2194   <c>Cache-Control</c>
2195   <c>http</c>
2196   <c>standard</c>
2197   <c>
2198      <xref target="header.cache-control"/>
2199   </c>
2200   <c>Expires</c>
2201   <c>http</c>
2202   <c>standard</c>
2203   <c>
2204      <xref target="header.expires"/>
2205   </c>
2206   <c>Pragma</c>
2207   <c>http</c>
2208   <c>standard</c>
2209   <c>
2210      <xref target="header.pragma"/>
2211   </c>
2212   <c>Vary</c>
2213   <c>http</c>
2214   <c>standard</c>
2215   <c>
2216      <xref target="header.vary"/>
2217   </c>
2218   <c>Warning</c>
2219   <c>http</c>
2220   <c>standard</c>
2221   <c>
2222      <xref target="header.warning"/>
2223   </c>
[680]2226<?ENDINC p6-cache.iana-headers ?>
[949]2228   The change controller is: "IETF ( - Internet Engineering Task
2229   Force".
[540]2234<section anchor="security.considerations" title="Security Considerations">
[949]2236   Caches expose additional potential vulnerabilities, since the contents of
2237   the cache represent an attractive target for malicious exploitation.
2238   Because cache contents persist after an HTTP request is complete, an attack
2239   on the cache can reveal information long after a user believes that the
2240   information has been removed from the network. Therefore, cache contents
[969]2241   need to be protected as sensitive information.
[1364]2245<section title="Acknowledgments" anchor="acks">
[1364]2247  See &acks;.
2254<references title="Normative References">
[540]2256  <reference anchor="Part1">
2257    <front>
[1726]2258      <title>HTTP/1.1, part 1: URIs, Connections, and Message Parsing</title>
[540]2259      <author fullname="Roy T. Fielding" initials="R." role="editor" surname="Fielding">
[1106]2260        <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
[540]2261        <address><email></email></address>
2262      </author>
2263      <author fullname="Yves Lafon" initials="Y." role="editor" surname="Lafon">
2264        <organization abbrev="W3C">World Wide Web Consortium</organization>
2265        <address><email></email></address>
2266      </author>
2267      <author fullname="Julian F. Reschke" initials="J. F." role="editor" surname="Reschke">
2268        <organization abbrev="greenbytes">greenbytes GmbH</organization>
2269        <address><email></email></address>
2270      </author>
2271      <date month="&ID-MONTH;" year="&ID-YEAR;" />
2272    </front>
2273    <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p1-messaging-&ID-VERSION;" />
2274    <x:source basename="p1-messaging" href="p1-messaging.xml" />
2275  </reference>
[540]2277  <reference anchor="Part2">
2278    <front>
[1726]2279      <title>HTTP/1.1, part 2: Message Semantics, Payload and Content Negotiation</title>
[540]2280      <author fullname="Roy T. Fielding" initials="R." role="editor" surname="Fielding">
[1106]2281        <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
[540]2282        <address><email></email></address>
2283      </author>
2284      <author fullname="Yves Lafon" initials="Y." role="editor" surname="Lafon">
2285        <organization abbrev="W3C">World Wide Web Consortium</organization>
2286        <address><email></email></address>
2287      </author>
2288      <author fullname="Julian F. Reschke" initials="J. F." role="editor" surname="Reschke">
2289        <organization abbrev="greenbytes">greenbytes GmbH</organization>
2290        <address><email></email></address>
2291      </author>
2292      <date month="&ID-MONTH;" year="&ID-YEAR;" />
2293    </front>
2294    <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p2-semantics-&ID-VERSION;" />
[1710]2295    <x:source basename="p2-semantics" href="p2-semantics.xml">
[1727]2296      <x:defines>2xx</x:defines>
[1715]2297      <x:defines>200 (OK)</x:defines>
[1727]2298      <x:defines>3xx</x:defines>
[1713]2299      <x:defines>404 (Not Found)</x:defines>
[1710]2300      <x:defines>504 (Gateway Timeout)</x:defines>
2301    </x:source>
[540]2302  </reference>
[540]2304  <reference anchor="Part4">
2305    <front>
[1726]2306      <title>HTTP/1.1, part 4: Conditional Requests</title>
[540]2307      <author fullname="Roy T. Fielding" initials="R." role="editor" surname="Fielding">
[1106]2308        <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
[540]2309        <address><email></email></address>
2310      </author>
2311      <author fullname="Yves Lafon" initials="Y." role="editor" surname="Lafon">
2312        <organization abbrev="W3C">World Wide Web Consortium</organization>
2313        <address><email></email></address>
2314      </author>
2315      <author fullname="Julian F. Reschke" initials="J. F." role="editor" surname="Reschke">
2316        <organization abbrev="greenbytes">greenbytes GmbH</organization>
2317        <address><email></email></address>
2318      </author>
2319      <date month="&ID-MONTH;" year="&ID-YEAR;" />
2320    </front>
2321    <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p4-conditional-&ID-VERSION;" />
[1708]2322    <x:source basename="p4-conditional" href="p4-conditional.xml">
2323      <x:defines>304 (Not Modified)</x:defines>
2324    </x:source>
[540]2325  </reference>
[540]2327  <reference anchor="Part5">
2328    <front>
[1726]2329      <title>HTTP/1.1, part 5: Range Requests and Partial Responses</title>
[540]2330      <author fullname="Roy T. Fielding" initials="R." role="editor" surname="Fielding">
[1106]2331        <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
[540]2332        <address><email></email></address>
2333      </author>
2334      <author fullname="Yves Lafon" initials="Y." role="editor" surname="Lafon">
2335        <organization abbrev="W3C">World Wide Web Consortium</organization>
2336        <address><email></email></address>
2337      </author>
2338      <author fullname="Julian F. Reschke" initials="J. F." role="editor" surname="Reschke">
2339        <organization abbrev="greenbytes">greenbytes GmbH</organization>
2340        <address><email></email></address>
2341      </author>
2342      <date month="&ID-MONTH;" year="&ID-YEAR;" />
2343    </front>
2344    <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p5-range-&ID-VERSION;" />
[1708]2345    <x:source basename="p5-range" href="p5-range.xml">
2346      <x:defines>206 (Partial Content)</x:defines>
2347    </x:source>
[540]2348  </reference>
[540]2350  <reference anchor="Part7">
2351    <front>
[1726]2352      <title>HTTP/1.1, part 7: Authentication</title>
[540]2353      <author fullname="Roy T. Fielding" initials="R." role="editor" surname="Fielding">
[1106]2354        <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
[540]2355        <address><email></email></address>
2356      </author>
2357      <author fullname="Yves Lafon" initials="Y." role="editor" surname="Lafon">
2358        <organization abbrev="W3C">World Wide Web Consortium</organization>
2359        <address><email></email></address>
2360      </author>
2361      <author fullname="Julian F. Reschke" initials="J. F." role="editor" surname="Reschke">
2362        <organization abbrev="greenbytes">greenbytes GmbH</organization>
2363        <address><email></email></address>
2364      </author>
2365      <date month="&ID-MONTH;" year="&ID-YEAR;" />
2366    </front>
2367    <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p7-auth-&ID-VERSION;" />
2368    <x:source basename="p7-auth" href="p7-auth.xml" />
2369  </reference>
[540]2371  <reference anchor="RFC2119">
2372    <front>
2373      <title>Key words for use in RFCs to Indicate Requirement Levels</title>
2374      <author fullname="Scott Bradner" initials="S." surname="Bradner">
2375        <organization>Harvard University</organization>
2376        <address><email></email></address>
2377      </author>
2378      <date month="March" year="1997" />
2379    </front>
2380    <seriesInfo name="BCP" value="14" />
2381    <seriesInfo name="RFC" value="2119" />
2382  </reference>
[540]2384  <reference anchor="RFC5234">
2385    <front>
2386      <title abbrev="ABNF for Syntax Specifications">Augmented BNF for Syntax Specifications: ABNF</title>
2387      <author initials="D." surname="Crocker" fullname="Dave Crocker" role="editor">
2388        <organization>Brandenburg InternetWorking</organization>
2389        <address>
[728]2390          <email></email>
2391        </address> 
[540]2392      </author>
2393      <author initials="P." surname="Overell" fullname="Paul Overell">
2394        <organization>THUS plc.</organization>
2395        <address>
[728]2396          <email></email>
2397        </address>
[540]2398      </author>
2399      <date month="January" year="2008"/>
2400    </front>
2401    <seriesInfo name="STD" value="68"/>
2402    <seriesInfo name="RFC" value="5234"/>
2403  </reference>
[540]2407<references title="Informative References">
[540]2409  <reference anchor="RFC1305">
2410    <front>
2411      <title>Network Time Protocol (Version 3) Specification, Implementation</title>
2412      <author fullname="David L. Mills" initials="D." surname="Mills">
2413        <organization>University of Delaware, Electrical Engineering Department</organization>
2414        <address><email></email></address>
2415      </author>
2416      <date month="March" year="1992" />
2417    </front>
2418    <seriesInfo name="RFC" value="1305" />
2419  </reference>
[540]2421  <reference anchor="RFC2616">
2422    <front>
2423      <title>Hypertext Transfer Protocol -- HTTP/1.1</title>
2424      <author fullname="R. Fielding" initials="R." surname="Fielding">
2425        <organization>University of California, Irvine</organization>
2426        <address><email></email></address>
2427      </author>
2428      <author fullname="J. Gettys" initials="J." surname="Gettys">
2429        <organization>W3C</organization>
2430        <address><email></email></address>
2431      </author>
2432      <author fullname="J. Mogul" initials="J." surname="Mogul">
2433        <organization>Compaq Computer Corporation</organization>
2434        <address><email></email></address>
2435      </author>
2436      <author fullname="H. Frystyk" initials="H." surname="Frystyk">
2437        <organization>MIT Laboratory for Computer Science</organization>
2438        <address><email></email></address>
2439      </author>
2440      <author fullname="L. Masinter" initials="L." surname="Masinter">
2441        <organization>Xerox Corporation</organization>
2442        <address><email></email></address>
2443      </author>
2444      <author fullname="P. Leach" initials="P." surname="Leach">
2445        <organization>Microsoft Corporation</organization>
2446        <address><email></email></address>
2447      </author>
2448      <author fullname="T. Berners-Lee" initials="T." surname="Berners-Lee">
2449        <organization>W3C</organization>
2450        <address><email></email></address>
2451      </author>
2452      <date month="June" year="1999" />
2453    </front>
2454    <seriesInfo name="RFC" value="2616" />
2455  </reference>
2457  <reference anchor="RFC3864">
2458    <front>
2459      <title>Registration Procedures for Message Header Fields</title>
2460      <author fullname="G. Klyne" initials="G." surname="Klyne">
2461        <organization>Nine by Nine</organization>
2462        <address><email></email></address>
2463      </author>
2464      <author fullname="M. Nottingham" initials="M." surname="Nottingham">
2465        <organization>BEA Systems</organization>
2466        <address><email></email></address>
2467      </author>
2468      <author fullname="J. Mogul" initials="J." surname="Mogul">
2469        <organization>HP Labs</organization>
2470        <address><email></email></address>
2471      </author>
2472      <date month="September" year="2004" />
2473    </front>
2474    <seriesInfo name="BCP" value="90" />
2475    <seriesInfo name="RFC" value="3864" />
2476  </reference>
[817]2478  <reference anchor='RFC5226'>
2479    <front>
2480      <title>Guidelines for Writing an IANA Considerations Section in RFCs</title>
2481      <author initials='T.' surname='Narten' fullname='T. Narten'>
2482        <organization>IBM</organization>
2483        <address><email></email></address>
2484      </author>
2485      <author initials='H.' surname='Alvestrand' fullname='H. Alvestrand'>
2486        <organization>Google</organization>
2487        <address><email></email></address>
2488      </author>
2489      <date year='2008' month='May' />
2490    </front>
2491    <seriesInfo name='BCP' value='26' />
2492    <seriesInfo name='RFC' value='5226' />
2493  </reference>
[825]2495  <reference anchor='RFC5861'>
2496    <front>
2497      <title abbrev="HTTP stale controls">HTTP Cache-Control Extensions for Stale Content</title>
2498      <author initials="M." surname="Nottingham" fullname="Mark Nottingham">
2499        <organization>Yahoo! Inc.</organization>
2500        <address><email></email></address>
2501      </author>
2502      <date month="April" year="2010"/>
2503    </front>
2504    <seriesInfo name='RFC' value='5861' />
2505  </reference>
2509<section anchor="changes.from.rfc.2616" title="Changes from RFC 2616">
[795]2511  Make the specified age calculation algorithm less conservative.
2512  (<xref target="age.calculations"/>)
[691]2515  Remove requirement to consider Content-Location in successful responses
2516  in order to determine the appropriate response to use.
2517  (<xref target="validation.model" />)
[540]2520  Clarify denial of service attack avoidance requirement.
2521  (<xref target="invalidation.after.updates.or.deletions" />)
[1231]2524  Change ABNF productions for header fields to only define the field value.
[1415]2525  (<xref target="header.field.definitions"/>)
[994]2528  Do not mention RFC 2047 encoding and multiple languages in Warning header fields
[669]2529  anymore, as these aspects never were implemented.
2530  (<xref target="header.warning" />)
[680]2534<?BEGININC p6-cache.abnf-appendix ?>
[427]2535<section xmlns:x="" title="Collected ABNF" anchor="collected.abnf">
2537<artwork type="abnf" name="p6-cache.parsed-abnf">
[1231]2538<x:ref>Age</x:ref> = delta-seconds
[1231]2540<x:ref>Cache-Control</x:ref> = *( "," OWS ) cache-directive *( OWS "," [ OWS
[425]2541 cache-directive ] )
[1231]2543<x:ref>Expires</x:ref> = HTTP-date
[1663]2545<x:ref>HTTP-date</x:ref> = &lt;HTTP-date, defined in [Part2], Section 5.1&gt;
[1523]2547<x:ref>OWS</x:ref> = &lt;OWS, defined in [Part1], Section 3.2.1&gt;
[1231]2549<x:ref>Pragma</x:ref> = *( "," OWS ) pragma-directive *( OWS "," [ OWS
[425]2550 pragma-directive ] )
[1231]2552<x:ref>Vary</x:ref> = "*" / ( *( "," OWS ) field-name *( OWS "," [ OWS field-name ]
2553 ) )
[1231]2555<x:ref>Warning</x:ref> = *( "," OWS ) warning-value *( OWS "," [ OWS warning-value ]
2556 )
[1695]2558<x:ref>cache-directive</x:ref> = token [ "=" ( token / quoted-string ) ]
[427]2560<x:ref>delta-seconds</x:ref> = 1*DIGIT
2562<x:ref>extension-pragma</x:ref> = token [ "=" ( token / quoted-string ) ]
[678]2564<x:ref>field-name</x:ref> = &lt;field-name, defined in [Part1], Section 3.2&gt;
[1318]2566<x:ref>port</x:ref> = &lt;port, defined in [Part1], Section 2.7&gt;
[427]2567<x:ref>pragma-directive</x:ref> = "no-cache" / extension-pragma
[1587]2568<x:ref>pseudonym</x:ref> = &lt;pseudonym, defined in [Part1], Section 6.2&gt;
[1523]2570<x:ref>quoted-string</x:ref> = &lt;quoted-string, defined in [Part1], Section 3.2.4&gt;
[1523]2572<x:ref>token</x:ref> = &lt;token, defined in [Part1], Section 3.2.4&gt;
[1318]2574<x:ref>uri-host</x:ref> = &lt;uri-host, defined in [Part1], Section 2.7&gt;
2576<x:ref>warn-agent</x:ref> = ( uri-host [ ":" port ] ) / pseudonym
2577<x:ref>warn-code</x:ref> = 3DIGIT
2578<x:ref>warn-date</x:ref> = DQUOTE HTTP-date DQUOTE
2579<x:ref>warn-text</x:ref> = quoted-string
2580<x:ref>warning-value</x:ref> = warn-code SP warn-agent SP warn-text [ SP warn-date
[425]2581 ]
[532]2584<figure><preamble>ABNF diagnostics:</preamble><artwork type="inline">
2585; Age defined but not used
[425]2586; Cache-Control defined but not used
2587; Expires defined but not used
2588; Pragma defined but not used
2589; Vary defined but not used
2590; Warning defined but not used
[680]2592<?ENDINC p6-cache.abnf-appendix ?>
[540]2594<section anchor="change.log" title="Change Log (to be removed by RFC Editor before publication)">
[1624]2596  Changes up to the first Working Group Last Call draft are summarized
2597  in <eref target=""/>.
[1592]2600<section title="Since draft-ietf-httpbis-p6-cache-19" anchor="changes.since.19">
[1666]2602  Closed issues:
2603  <list style="symbols">
2604    <t>
[1695]2605      <eref target=""/>:
2606      "untangle Cache-Control ABNF"
2607    </t>
2608    <t>
[1731]2609      <eref target=""/>:
2610      "Multiple values in Cache-Control headers"
2611    </t>
2612    <t>
[1666]2613      <eref target=""/>:
2614      "Case sensitivity of header fields in CC values"
2615    </t>
2616    <t>
2617      <eref target=""/>:
2618      "Spurious 'MAY's"
2619    </t>
[1682]2620    <t>
[1702]2621      <eref target=""/>:
2622      "enhance considerations for new cache control directives"
2623    </t>
2624    <t>
[1682]2625      <eref target=""/>:
2626      "ABNF requirements for recipients"
2627    </t>
[1666]2628  </list>
[538]2633  </back>
Note: See TracBrowser for help on using the repository browser.