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