1 | <!DOCTYPE html |
---|
2 | PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
---|
3 | <html lang="en"> |
---|
4 | <head profile="http://dublincore.org/documents/2008/08/04/dc-html/"> |
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
---|
6 | <title>Hypertext Transfer Protocol (HTTP/1.1): Caching</title><script> |
---|
7 | var buttonsAdded = false; |
---|
8 | |
---|
9 | function init() { |
---|
10 | var fb = document.createElement("div"); |
---|
11 | fb.className = "feedback noprint"; |
---|
12 | fb.setAttribute("onclick", "feedback();"); |
---|
13 | fb.appendChild(document.createTextNode("feedback")); |
---|
14 | |
---|
15 | var bodyl = document.getElementsByTagName("body"); |
---|
16 | bodyl.item(0).appendChild(fb); |
---|
17 | } |
---|
18 | |
---|
19 | function feedback() { |
---|
20 | toggleButtonsToElementsByName("h1"); |
---|
21 | toggleButtonsToElementsByName("h2"); |
---|
22 | toggleButtonsToElementsByName("h3"); |
---|
23 | toggleButtonsToElementsByName("h4"); |
---|
24 | |
---|
25 | buttonsAdded = !buttonsAdded; |
---|
26 | } |
---|
27 | |
---|
28 | function toggleButtonsToElementsByName(name) { |
---|
29 | var list = document.getElementsByTagName(name); |
---|
30 | for (var i = 0; i < list.length; i++) { |
---|
31 | toggleButton(list.item(i)); |
---|
32 | } |
---|
33 | } |
---|
34 | |
---|
35 | function toggleButton(node) { |
---|
36 | if (! buttonsAdded) { |
---|
37 | |
---|
38 | // docname |
---|
39 | var template = "mailto:ietf-http-wg@w3.org?subject={docname},%20%22{section}%22&body=<{ref}>:"; |
---|
40 | |
---|
41 | var id = node.getAttribute("id"); |
---|
42 | // better id available? |
---|
43 | var titlelinks = node.getElementsByTagName("a"); |
---|
44 | for (var i = 0; i < titlelinks.length; i++) { |
---|
45 | var tl = titlelinks.item(i); |
---|
46 | if (tl.getAttribute("id")) { |
---|
47 | id = tl.getAttribute("id"); |
---|
48 | } |
---|
49 | } |
---|
50 | |
---|
51 | // ref |
---|
52 | var ref = window.location.toString(); |
---|
53 | var hash = ref.indexOf("#"); |
---|
54 | if (hash != -1) { |
---|
55 | ref = ref.substring(0, hash); |
---|
56 | } |
---|
57 | if (id != "") { |
---|
58 | ref += "#" + id; |
---|
59 | } |
---|
60 | |
---|
61 | // docname |
---|
62 | var docname = "draft-ietf-httpbis-p6-cache-latest"; |
---|
63 | |
---|
64 | // section |
---|
65 | var section = node.textContent; |
---|
66 | section = section.replace("\u00a0", " "); |
---|
67 | |
---|
68 | // build URI from template |
---|
69 | var uri = template.replace("{docname}", encodeURIComponent(docname)); |
---|
70 | uri = uri.replace("{section}", encodeURIComponent(section)); |
---|
71 | uri = uri.replace("{ref}", encodeURIComponent(ref)); |
---|
72 | |
---|
73 | var button = document.createElement("a"); |
---|
74 | button.className = "fbbutton noprint"; |
---|
75 | button.setAttribute("href", uri); |
---|
76 | button.appendChild(document.createTextNode("send feedback")); |
---|
77 | node.appendChild(button); |
---|
78 | } |
---|
79 | else { |
---|
80 | var buttons = node.getElementsByTagName("a"); |
---|
81 | for (var i = 0; i < buttons.length; i++) { |
---|
82 | var b = buttons.item(i); |
---|
83 | if (b.className == "fbbutton noprint") { |
---|
84 | node.removeChild(b); |
---|
85 | } |
---|
86 | } |
---|
87 | } |
---|
88 | }</script><style type="text/css" title="Xml2Rfc (sans serif)"> |
---|
89 | a { |
---|
90 | text-decoration: none; |
---|
91 | } |
---|
92 | a.smpl { |
---|
93 | color: black; |
---|
94 | } |
---|
95 | a:hover { |
---|
96 | text-decoration: underline; |
---|
97 | } |
---|
98 | a:active { |
---|
99 | text-decoration: underline; |
---|
100 | } |
---|
101 | address { |
---|
102 | margin-top: 1em; |
---|
103 | margin-left: 2em; |
---|
104 | font-style: normal; |
---|
105 | } |
---|
106 | body { |
---|
107 | color: black; |
---|
108 | font-family: verdana, helvetica, arial, sans-serif; |
---|
109 | font-size: 10pt; |
---|
110 | margin-right: 2em; |
---|
111 | } |
---|
112 | cite { |
---|
113 | font-style: normal; |
---|
114 | } |
---|
115 | div.note { |
---|
116 | margin-left: 2em; |
---|
117 | } |
---|
118 | dl { |
---|
119 | margin-left: 2em; |
---|
120 | } |
---|
121 | ul.empty { |
---|
122 | list-style-type: none; |
---|
123 | } |
---|
124 | ul.empty li { |
---|
125 | margin-top: .5em; |
---|
126 | } |
---|
127 | dl p { |
---|
128 | margin-left: 0em; |
---|
129 | } |
---|
130 | dt { |
---|
131 | margin-top: .5em; |
---|
132 | } |
---|
133 | h1 { |
---|
134 | font-size: 14pt; |
---|
135 | line-height: 21pt; |
---|
136 | page-break-after: avoid; |
---|
137 | } |
---|
138 | h1.np { |
---|
139 | page-break-before: always; |
---|
140 | } |
---|
141 | h1 a { |
---|
142 | color: #333333; |
---|
143 | } |
---|
144 | h2 { |
---|
145 | font-size: 12pt; |
---|
146 | line-height: 15pt; |
---|
147 | page-break-after: avoid; |
---|
148 | } |
---|
149 | h3, h4, h5, h6 { |
---|
150 | font-size: 10pt; |
---|
151 | page-break-after: avoid; |
---|
152 | } |
---|
153 | h2 a, h3 a, h4 a, h5 a, h6 a { |
---|
154 | color: black; |
---|
155 | } |
---|
156 | img { |
---|
157 | margin-left: 3em; |
---|
158 | } |
---|
159 | li { |
---|
160 | margin-left: 2em; |
---|
161 | } |
---|
162 | ol { |
---|
163 | margin-left: 2em; |
---|
164 | } |
---|
165 | ol.la { |
---|
166 | list-style-type: lower-alpha; |
---|
167 | } |
---|
168 | ol.ua { |
---|
169 | list-style-type: upper-alpha; |
---|
170 | } |
---|
171 | ol p { |
---|
172 | margin-left: 0em; |
---|
173 | } |
---|
174 | p { |
---|
175 | margin-left: 2em; |
---|
176 | } |
---|
177 | pre { |
---|
178 | margin-left: 3em; |
---|
179 | background-color: lightyellow; |
---|
180 | padding: .25em; |
---|
181 | page-break-inside: avoid; |
---|
182 | } |
---|
183 | pre.text2 { |
---|
184 | border-style: dotted; |
---|
185 | border-width: 1px; |
---|
186 | background-color: #f0f0f0; |
---|
187 | width: 69em; |
---|
188 | } |
---|
189 | pre.inline { |
---|
190 | background-color: white; |
---|
191 | padding: 0em; |
---|
192 | } |
---|
193 | pre.text { |
---|
194 | border-style: dotted; |
---|
195 | border-width: 1px; |
---|
196 | background-color: #f8f8f8; |
---|
197 | width: 69em; |
---|
198 | } |
---|
199 | pre.drawing { |
---|
200 | border-style: solid; |
---|
201 | border-width: 1px; |
---|
202 | background-color: #f8f8f8; |
---|
203 | padding: 2em; |
---|
204 | } |
---|
205 | sup { |
---|
206 | font-size: 60%; |
---|
207 | } |
---|
208 | table { |
---|
209 | margin-left: 2em; |
---|
210 | } |
---|
211 | table.tt { |
---|
212 | vertical-align: top; |
---|
213 | } |
---|
214 | table.full { |
---|
215 | border-style: outset; |
---|
216 | border-width: 1px; |
---|
217 | } |
---|
218 | table.headers { |
---|
219 | border-style: outset; |
---|
220 | border-width: 1px; |
---|
221 | } |
---|
222 | table.tt td { |
---|
223 | vertical-align: top; |
---|
224 | } |
---|
225 | table.full td { |
---|
226 | border-style: inset; |
---|
227 | border-width: 1px; |
---|
228 | } |
---|
229 | table.tt th { |
---|
230 | vertical-align: top; |
---|
231 | } |
---|
232 | table.full th { |
---|
233 | border-style: inset; |
---|
234 | border-width: 1px; |
---|
235 | } |
---|
236 | table.headers th { |
---|
237 | border-style: none none inset none; |
---|
238 | border-width: 1px; |
---|
239 | } |
---|
240 | table.left { |
---|
241 | margin-right: auto; |
---|
242 | } |
---|
243 | table.right { |
---|
244 | margin-left: auto; |
---|
245 | } |
---|
246 | table.center { |
---|
247 | margin-left: auto; |
---|
248 | margin-right: auto; |
---|
249 | } |
---|
250 | caption { |
---|
251 | caption-side: bottom; |
---|
252 | font-weight: bold; |
---|
253 | font-size: 9pt; |
---|
254 | margin-top: .5em; |
---|
255 | } |
---|
256 | |
---|
257 | table.header { |
---|
258 | border-spacing: 1px; |
---|
259 | width: 95%; |
---|
260 | font-size: 10pt; |
---|
261 | color: white; |
---|
262 | } |
---|
263 | td.top { |
---|
264 | vertical-align: top; |
---|
265 | } |
---|
266 | td.topnowrap { |
---|
267 | vertical-align: top; |
---|
268 | white-space: nowrap; |
---|
269 | } |
---|
270 | table.header td { |
---|
271 | background-color: gray; |
---|
272 | width: 50%; |
---|
273 | } |
---|
274 | table.header a { |
---|
275 | color: white; |
---|
276 | } |
---|
277 | td.reference { |
---|
278 | vertical-align: top; |
---|
279 | white-space: nowrap; |
---|
280 | padding-right: 1em; |
---|
281 | } |
---|
282 | thead { |
---|
283 | display:table-header-group; |
---|
284 | } |
---|
285 | ul.toc, ul.toc ul { |
---|
286 | list-style: none; |
---|
287 | margin-left: 1.5em; |
---|
288 | padding-left: 0em; |
---|
289 | } |
---|
290 | ul.toc li { |
---|
291 | line-height: 150%; |
---|
292 | font-weight: bold; |
---|
293 | font-size: 10pt; |
---|
294 | margin-left: 0em; |
---|
295 | } |
---|
296 | ul.toc li li { |
---|
297 | line-height: normal; |
---|
298 | font-weight: normal; |
---|
299 | font-size: 9pt; |
---|
300 | margin-left: 0em; |
---|
301 | } |
---|
302 | li.excluded { |
---|
303 | font-size: 0pt; |
---|
304 | } |
---|
305 | ul p { |
---|
306 | margin-left: 0em; |
---|
307 | } |
---|
308 | ul.ind, ul.ind ul { |
---|
309 | list-style: none; |
---|
310 | margin-left: 1.5em; |
---|
311 | padding-left: 0em; |
---|
312 | page-break-before: avoid; |
---|
313 | } |
---|
314 | ul.ind li { |
---|
315 | font-weight: bold; |
---|
316 | line-height: 200%; |
---|
317 | margin-left: 0em; |
---|
318 | } |
---|
319 | ul.ind li li { |
---|
320 | font-weight: normal; |
---|
321 | line-height: 150%; |
---|
322 | margin-left: 0em; |
---|
323 | } |
---|
324 | .avoidbreak { |
---|
325 | page-break-inside: avoid; |
---|
326 | } |
---|
327 | .bcp14 { |
---|
328 | font-style: normal; |
---|
329 | text-transform: lowercase; |
---|
330 | font-variant: small-caps; |
---|
331 | } |
---|
332 | .comment { |
---|
333 | background-color: yellow; |
---|
334 | } |
---|
335 | .center { |
---|
336 | text-align: center; |
---|
337 | } |
---|
338 | .error { |
---|
339 | color: red; |
---|
340 | font-style: italic; |
---|
341 | font-weight: bold; |
---|
342 | } |
---|
343 | .figure { |
---|
344 | font-weight: bold; |
---|
345 | text-align: center; |
---|
346 | font-size: 9pt; |
---|
347 | } |
---|
348 | .filename { |
---|
349 | color: #333333; |
---|
350 | font-weight: bold; |
---|
351 | font-size: 12pt; |
---|
352 | line-height: 21pt; |
---|
353 | text-align: center; |
---|
354 | } |
---|
355 | .fn { |
---|
356 | font-weight: bold; |
---|
357 | } |
---|
358 | .left { |
---|
359 | text-align: left; |
---|
360 | } |
---|
361 | .right { |
---|
362 | text-align: right; |
---|
363 | } |
---|
364 | .title { |
---|
365 | color: #990000; |
---|
366 | font-size: 18pt; |
---|
367 | line-height: 18pt; |
---|
368 | font-weight: bold; |
---|
369 | text-align: center; |
---|
370 | margin-top: 36pt; |
---|
371 | } |
---|
372 | .vcardline { |
---|
373 | display: block; |
---|
374 | } |
---|
375 | .warning { |
---|
376 | font-size: 14pt; |
---|
377 | background-color: yellow; |
---|
378 | } |
---|
379 | .feedback { |
---|
380 | position: fixed; |
---|
381 | bottom: 1%; |
---|
382 | right: 1%; |
---|
383 | padding: 3px 5px; |
---|
384 | color: white; |
---|
385 | border-radius: 5px; |
---|
386 | background: #a00000; |
---|
387 | border: 1px solid silver; |
---|
388 | } |
---|
389 | .fbbutton { |
---|
390 | margin-left: 1em; |
---|
391 | color: #303030; |
---|
392 | font-size: small; |
---|
393 | font-weight: normal; |
---|
394 | background: #d0d000; |
---|
395 | padding: 1px 4px; |
---|
396 | border: 1px solid silver; |
---|
397 | border-radius: 5px; |
---|
398 | } |
---|
399 | |
---|
400 | @media print { |
---|
401 | .noprint { |
---|
402 | display: none; |
---|
403 | } |
---|
404 | |
---|
405 | a { |
---|
406 | color: black; |
---|
407 | text-decoration: none; |
---|
408 | } |
---|
409 | |
---|
410 | table.header { |
---|
411 | width: 90%; |
---|
412 | } |
---|
413 | |
---|
414 | td.header { |
---|
415 | width: 50%; |
---|
416 | color: black; |
---|
417 | background-color: white; |
---|
418 | vertical-align: top; |
---|
419 | font-size: 12pt; |
---|
420 | } |
---|
421 | |
---|
422 | ul.toc a:nth-child(2)::after { |
---|
423 | content: leader('.') target-counter(attr(href), page); |
---|
424 | } |
---|
425 | |
---|
426 | ul.ind li li a { |
---|
427 | content: target-counter(attr(href), page); |
---|
428 | } |
---|
429 | |
---|
430 | .print2col { |
---|
431 | column-count: 2; |
---|
432 | -moz-column-count: 2; |
---|
433 | column-fill: auto; |
---|
434 | } |
---|
435 | } |
---|
436 | |
---|
437 | @page { |
---|
438 | @top-left { |
---|
439 | content: "Internet-Draft"; |
---|
440 | } |
---|
441 | @top-right { |
---|
442 | content: "September 2013"; |
---|
443 | } |
---|
444 | @top-center { |
---|
445 | content: "HTTP/1.1 Caching"; |
---|
446 | } |
---|
447 | @bottom-left { |
---|
448 | content: "Fielding, et al."; |
---|
449 | } |
---|
450 | @bottom-center { |
---|
451 | content: "Expires March 27, 2014"; |
---|
452 | } |
---|
453 | @bottom-right { |
---|
454 | content: "[Page " counter(page) "]"; |
---|
455 | } |
---|
456 | } |
---|
457 | |
---|
458 | @page:first { |
---|
459 | @top-left { |
---|
460 | content: normal; |
---|
461 | } |
---|
462 | @top-right { |
---|
463 | content: normal; |
---|
464 | } |
---|
465 | @top-center { |
---|
466 | content: normal; |
---|
467 | } |
---|
468 | } |
---|
469 | </style><link rel="Contents" href="#rfc.toc"> |
---|
470 | <link rel="Author" href="#rfc.authors"> |
---|
471 | <link rel="Copyright" href="#rfc.copyrightnotice"> |
---|
472 | <link rel="Index" href="#rfc.index"> |
---|
473 | <link rel="Chapter" title="1 Introduction" href="#rfc.section.1"> |
---|
474 | <link rel="Chapter" title="2 Overview of Cache Operation" href="#rfc.section.2"> |
---|
475 | <link rel="Chapter" title="3 Storing Responses in Caches" href="#rfc.section.3"> |
---|
476 | <link rel="Chapter" title="4 Constructing Responses from Caches" href="#rfc.section.4"> |
---|
477 | <link rel="Chapter" title="5 Header Field Definitions" href="#rfc.section.5"> |
---|
478 | <link rel="Chapter" title="6 History Lists" href="#rfc.section.6"> |
---|
479 | <link rel="Chapter" title="7 IANA Considerations" href="#rfc.section.7"> |
---|
480 | <link rel="Chapter" title="8 Security Considerations" href="#rfc.section.8"> |
---|
481 | <link rel="Chapter" title="9 Acknowledgments" href="#rfc.section.9"> |
---|
482 | <link rel="Chapter" href="#rfc.section.10" title="10 References"> |
---|
483 | <link rel="Appendix" title="A Changes from RFC 2616" href="#rfc.section.A"> |
---|
484 | <link rel="Appendix" title="B Imported ABNF" href="#rfc.section.B"> |
---|
485 | <link rel="Appendix" title="C Collected ABNF" href="#rfc.section.C"> |
---|
486 | <link rel="Appendix" title="D Change Log (to be removed by RFC Editor before publication)" href="#rfc.section.D"> |
---|
487 | <link href="p5-range.html" rel="prev"> |
---|
488 | <link href="p7-auth.html" rel="next"> |
---|
489 | <meta name="generator" content="http://greenbytes.de/tech/webdav/rfc2629.xslt, Revision 1.599, 2013/08/29 10:34:28, XSLT vendor: SAXON 8.9 from Saxonica http://www.saxonica.com/"> |
---|
490 | <link rel="schema.dct" href="http://purl.org/dc/terms/"> |
---|
491 | <meta name="dct.creator" content="Fielding, R."> |
---|
492 | <meta name="dct.creator" content="Nottingham, M."> |
---|
493 | <meta name="dct.creator" content="Reschke, J. F."> |
---|
494 | <meta name="dct.identifier" content="urn:ietf:id:draft-ietf-httpbis-p6-cache-latest"> |
---|
495 | <meta name="dct.issued" scheme="ISO8601" content="2013-09-23"> |
---|
496 | <meta name="dct.replaces" content="urn:ietf:rfc:2616"> |
---|
497 | <meta name="dct.abstract" content="The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypertext information systems. This document defines requirements on HTTP caches and the associated header fields that control cache behavior or indicate cacheable response messages."> |
---|
498 | <meta name="description" content="The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypertext information systems. This document defines requirements on HTTP caches and the associated header fields that control cache behavior or indicate cacheable response messages."> |
---|
499 | </head> |
---|
500 | <body onload="init();"> |
---|
501 | <table class="header"> |
---|
502 | <tbody> |
---|
503 | <tr> |
---|
504 | <td class="left">HTTPbis Working Group</td> |
---|
505 | <td class="right">R. Fielding, Editor</td> |
---|
506 | </tr> |
---|
507 | <tr> |
---|
508 | <td class="left">Internet-Draft</td> |
---|
509 | <td class="right">Adobe</td> |
---|
510 | </tr> |
---|
511 | <tr> |
---|
512 | <td class="left">Obsoletes: <a href="http://tools.ietf.org/html/rfc2616">2616</a> (if approved) |
---|
513 | </td> |
---|
514 | <td class="right">M. Nottingham, Editor</td> |
---|
515 | </tr> |
---|
516 | <tr> |
---|
517 | <td class="left">Intended status: Standards Track</td> |
---|
518 | <td class="right">Akamai</td> |
---|
519 | </tr> |
---|
520 | <tr> |
---|
521 | <td class="left">Expires: March 27, 2014</td> |
---|
522 | <td class="right">J. Reschke, Editor</td> |
---|
523 | </tr> |
---|
524 | <tr> |
---|
525 | <td class="left"></td> |
---|
526 | <td class="right">greenbytes</td> |
---|
527 | </tr> |
---|
528 | <tr> |
---|
529 | <td class="left"></td> |
---|
530 | <td class="right">September 23, 2013</td> |
---|
531 | </tr> |
---|
532 | </tbody> |
---|
533 | </table> |
---|
534 | <p class="title">Hypertext Transfer Protocol (HTTP/1.1): Caching<br><span class="filename">draft-ietf-httpbis-p6-cache-latest</span></p> |
---|
535 | <h1 id="rfc.abstract"><a href="#rfc.abstract">Abstract</a></h1> |
---|
536 | <p>The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypertext information |
---|
537 | systems. This document defines requirements on HTTP caches and the associated header fields that control cache behavior or |
---|
538 | indicate cacheable response messages. |
---|
539 | </p> |
---|
540 | <h1 id="rfc.note.1"><a href="#rfc.note.1">Editorial Note (To be removed by RFC Editor)</a></h1> |
---|
541 | <p>Discussion of this draft takes place on the HTTPBIS working group mailing list (ietf-http-wg@w3.org), which is archived at <<a href="http://lists.w3.org/Archives/Public/ietf-http-wg/">http://lists.w3.org/Archives/Public/ietf-http-wg/</a>>. |
---|
542 | </p> |
---|
543 | <p>The current issues list is at <<a href="http://tools.ietf.org/wg/httpbis/trac/report/3">http://tools.ietf.org/wg/httpbis/trac/report/3</a>> and related documents (including fancy diffs) can be found at <<a href="http://tools.ietf.org/wg/httpbis/">http://tools.ietf.org/wg/httpbis/</a>>. |
---|
544 | </p> |
---|
545 | <p>The changes in this draft are summarized in <a href="#changes.since.23" title="Since draft-ietf-httpbis-p6-cache-23">Appendix D.5</a>. |
---|
546 | </p> |
---|
547 | <h1><a id="rfc.status" href="#rfc.status">Status of This Memo</a></h1> |
---|
548 | <p>This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.</p> |
---|
549 | <p>Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute |
---|
550 | working documents as Internet-Drafts. The list of current Internet-Drafts is at <a href="http://datatracker.ietf.org/drafts/current/">http://datatracker.ietf.org/drafts/current/</a>. |
---|
551 | </p> |
---|
552 | <p>Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other |
---|
553 | documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as “work |
---|
554 | in progress”. |
---|
555 | </p> |
---|
556 | <p>This Internet-Draft will expire on March 27, 2014.</p> |
---|
557 | <h1><a id="rfc.copyrightnotice" href="#rfc.copyrightnotice">Copyright Notice</a></h1> |
---|
558 | <p>Copyright © 2013 IETF Trust and the persons identified as the document authors. All rights reserved.</p> |
---|
559 | <p>This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights |
---|
560 | and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License |
---|
561 | text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified |
---|
562 | BSD License. |
---|
563 | </p> |
---|
564 | <p>This document may contain material from IETF Documents or IETF Contributions published or made publicly available before November |
---|
565 | 10, 2008. The person(s) controlling the copyright in some of this material may not have granted the IETF Trust the right to |
---|
566 | allow modifications of such material outside the IETF Standards Process. Without obtaining an adequate license from the person(s) |
---|
567 | controlling the copyright in such materials, this document may not be modified outside the IETF Standards Process, and derivative |
---|
568 | works of it may not be created outside the IETF Standards Process, except to format it for publication as an RFC or to translate |
---|
569 | it into languages other than English. |
---|
570 | </p> |
---|
571 | <hr class="noprint"> |
---|
572 | <h1 class="np" id="rfc.toc"><a href="#rfc.toc">Table of Contents</a></h1> |
---|
573 | <ul class="toc"> |
---|
574 | <li><a href="#rfc.section.1">1.</a> <a href="#caching">Introduction</a><ul> |
---|
575 | <li><a href="#rfc.section.1.1">1.1</a> <a href="#conformance">Conformance and Error Handling</a></li> |
---|
576 | <li><a href="#rfc.section.1.2">1.2</a> <a href="#notation">Syntax Notation</a><ul> |
---|
577 | <li><a href="#rfc.section.1.2.1">1.2.1</a> <a href="#delta-seconds">Delta Seconds</a></li> |
---|
578 | </ul> |
---|
579 | </li> |
---|
580 | </ul> |
---|
581 | </li> |
---|
582 | <li><a href="#rfc.section.2">2.</a> <a href="#caching.overview">Overview of Cache Operation</a></li> |
---|
583 | <li><a href="#rfc.section.3">3.</a> <a href="#response.cacheability">Storing Responses in Caches</a><ul> |
---|
584 | <li><a href="#rfc.section.3.1">3.1</a> <a href="#incomplete.responses">Storing Incomplete Responses</a></li> |
---|
585 | <li><a href="#rfc.section.3.2">3.2</a> <a href="#caching.authenticated.responses">Storing Responses to Authenticated Requests</a></li> |
---|
586 | <li><a href="#rfc.section.3.3">3.3</a> <a href="#combining.responses">Combining Partial Content</a></li> |
---|
587 | </ul> |
---|
588 | </li> |
---|
589 | <li><a href="#rfc.section.4">4.</a> <a href="#constructing.responses.from.caches">Constructing Responses from Caches</a><ul> |
---|
590 | <li><a href="#rfc.section.4.1">4.1</a> <a href="#caching.negotiated.responses">Calculating Secondary Keys with Vary</a></li> |
---|
591 | <li><a href="#rfc.section.4.2">4.2</a> <a href="#expiration.model">Freshness</a><ul> |
---|
592 | <li><a href="#rfc.section.4.2.1">4.2.1</a> <a href="#calculating.freshness.lifetime">Calculating Freshness Lifetime</a></li> |
---|
593 | <li><a href="#rfc.section.4.2.2">4.2.2</a> <a href="#heuristic.freshness">Calculating Heuristic Freshness</a></li> |
---|
594 | <li><a href="#rfc.section.4.2.3">4.2.3</a> <a href="#age.calculations">Calculating Age</a></li> |
---|
595 | <li><a href="#rfc.section.4.2.4">4.2.4</a> <a href="#serving.stale.responses">Serving Stale Responses</a></li> |
---|
596 | </ul> |
---|
597 | </li> |
---|
598 | <li><a href="#rfc.section.4.3">4.3</a> <a href="#validation.model">Validation</a><ul> |
---|
599 | <li><a href="#rfc.section.4.3.1">4.3.1</a> <a href="#validation.sent">Sending a Validation Request</a></li> |
---|
600 | <li><a href="#rfc.section.4.3.2">4.3.2</a> <a href="#validation.received">Handling a Received Validation Request</a></li> |
---|
601 | <li><a href="#rfc.section.4.3.3">4.3.3</a> <a href="#validation.response">Handling a Validation Response</a></li> |
---|
602 | <li><a href="#rfc.section.4.3.4">4.3.4</a> <a href="#freshening.responses">Freshening Stored Responses upon Validation</a></li> |
---|
603 | <li><a href="#rfc.section.4.3.5">4.3.5</a> <a href="#head.effects">Freshening Responses via HEAD</a></li> |
---|
604 | </ul> |
---|
605 | </li> |
---|
606 | <li><a href="#rfc.section.4.4">4.4</a> <a href="#invalidation">Invalidation</a></li> |
---|
607 | </ul> |
---|
608 | </li> |
---|
609 | <li><a href="#rfc.section.5">5.</a> <a href="#header.field.definitions">Header Field Definitions</a><ul> |
---|
610 | <li><a href="#rfc.section.5.1">5.1</a> <a href="#header.age">Age</a></li> |
---|
611 | <li><a href="#rfc.section.5.2">5.2</a> <a href="#header.cache-control">Cache-Control</a><ul> |
---|
612 | <li><a href="#rfc.section.5.2.1">5.2.1</a> <a href="#cache-request-directive">Request Cache-Control Directives</a><ul> |
---|
613 | <li><a href="#rfc.section.5.2.1.1">5.2.1.1</a> <a href="#cache-request-directive.max-age">max-age</a></li> |
---|
614 | <li><a href="#rfc.section.5.2.1.2">5.2.1.2</a> <a href="#cache-request-directive.max-stale">max-stale</a></li> |
---|
615 | <li><a href="#rfc.section.5.2.1.3">5.2.1.3</a> <a href="#cache-request-directive.min-fresh">min-fresh</a></li> |
---|
616 | <li><a href="#rfc.section.5.2.1.4">5.2.1.4</a> <a href="#cache-request-directive.no-cache">no-cache</a></li> |
---|
617 | <li><a href="#rfc.section.5.2.1.5">5.2.1.5</a> <a href="#cache-request-directive.no-store">no-store</a></li> |
---|
618 | <li><a href="#rfc.section.5.2.1.6">5.2.1.6</a> <a href="#cache-request-directive.no-transform">no-transform</a></li> |
---|
619 | <li><a href="#rfc.section.5.2.1.7">5.2.1.7</a> <a href="#cache-request-directive.only-if-cached">only-if-cached</a></li> |
---|
620 | </ul> |
---|
621 | </li> |
---|
622 | <li><a href="#rfc.section.5.2.2">5.2.2</a> <a href="#cache-response-directive">Response Cache-Control Directives</a><ul> |
---|
623 | <li><a href="#rfc.section.5.2.2.1">5.2.2.1</a> <a href="#cache-response-directive.must-revalidate">must-revalidate</a></li> |
---|
624 | <li><a href="#rfc.section.5.2.2.2">5.2.2.2</a> <a href="#cache-response-directive.no-cache">no-cache</a></li> |
---|
625 | <li><a href="#rfc.section.5.2.2.3">5.2.2.3</a> <a href="#cache-response-directive.no-store">no-store</a></li> |
---|
626 | <li><a href="#rfc.section.5.2.2.4">5.2.2.4</a> <a href="#cache-response-directive.no-transform">no-transform</a></li> |
---|
627 | <li><a href="#rfc.section.5.2.2.5">5.2.2.5</a> <a href="#cache-response-directive.public">public</a></li> |
---|
628 | <li><a href="#rfc.section.5.2.2.6">5.2.2.6</a> <a href="#cache-response-directive.private">private</a></li> |
---|
629 | <li><a href="#rfc.section.5.2.2.7">5.2.2.7</a> <a href="#cache-response-directive.proxy-revalidate">proxy-revalidate</a></li> |
---|
630 | <li><a href="#rfc.section.5.2.2.8">5.2.2.8</a> <a href="#cache-response-directive.max-age">max-age</a></li> |
---|
631 | <li><a href="#rfc.section.5.2.2.9">5.2.2.9</a> <a href="#cache-response-directive.s-maxage">s-maxage</a></li> |
---|
632 | </ul> |
---|
633 | </li> |
---|
634 | <li><a href="#rfc.section.5.2.3">5.2.3</a> <a href="#cache.control.extensions">Cache Control Extensions</a></li> |
---|
635 | </ul> |
---|
636 | </li> |
---|
637 | <li><a href="#rfc.section.5.3">5.3</a> <a href="#header.expires">Expires</a></li> |
---|
638 | <li><a href="#rfc.section.5.4">5.4</a> <a href="#header.pragma">Pragma</a></li> |
---|
639 | <li><a href="#rfc.section.5.5">5.5</a> <a href="#header.warning">Warning</a><ul> |
---|
640 | <li><a href="#rfc.section.5.5.1">5.5.1</a> <a href="#warn.110">Warning: 110 means "Response is Stale"</a></li> |
---|
641 | <li><a href="#rfc.section.5.5.2">5.5.2</a> <a href="#warn.111">Warning: 111 means "Revalidation Failed"</a></li> |
---|
642 | <li><a href="#rfc.section.5.5.3">5.5.3</a> <a href="#warn.112">Warning: 112 means "Disconnected Operation"</a></li> |
---|
643 | <li><a href="#rfc.section.5.5.4">5.5.4</a> <a href="#warn.113">Warning: 113 means "Heuristic Expiration"</a></li> |
---|
644 | <li><a href="#rfc.section.5.5.5">5.5.5</a> <a href="#warn.199">Warning: 199 means "Miscellaneous Warning"</a></li> |
---|
645 | <li><a href="#rfc.section.5.5.6">5.5.6</a> <a href="#warn.214">Warning: 214 means "Transformation Applied"</a></li> |
---|
646 | <li><a href="#rfc.section.5.5.7">5.5.7</a> <a href="#warn.299">Warning: 299 means "Miscellaneous Persistent Warning"</a></li> |
---|
647 | </ul> |
---|
648 | </li> |
---|
649 | </ul> |
---|
650 | </li> |
---|
651 | <li><a href="#rfc.section.6">6.</a> <a href="#history.lists">History Lists</a></li> |
---|
652 | <li><a href="#rfc.section.7">7.</a> <a href="#iana.considerations">IANA Considerations</a><ul> |
---|
653 | <li><a href="#rfc.section.7.1">7.1</a> <a href="#cache.directive.registry">Cache Directive Registry</a><ul> |
---|
654 | <li><a href="#rfc.section.7.1.1">7.1.1</a> <a href="#cache.directive.registry.procedure">Procedure</a></li> |
---|
655 | <li><a href="#rfc.section.7.1.2">7.1.2</a> <a href="#cache.directive.considerations">Considerations for New Cache Control Directives</a></li> |
---|
656 | <li><a href="#rfc.section.7.1.3">7.1.3</a> <a href="#cache.directive.registration">Registrations</a></li> |
---|
657 | </ul> |
---|
658 | </li> |
---|
659 | <li><a href="#rfc.section.7.2">7.2</a> <a href="#warn.code.registry">Warn Code Registry</a><ul> |
---|
660 | <li><a href="#rfc.section.7.2.1">7.2.1</a> <a href="#warn.code.registry.procedure">Procedure</a></li> |
---|
661 | <li><a href="#rfc.section.7.2.2">7.2.2</a> <a href="#warn.code.registration">Registrations</a></li> |
---|
662 | </ul> |
---|
663 | </li> |
---|
664 | <li><a href="#rfc.section.7.3">7.3</a> <a href="#header.field.registration">Header Field Registration</a></li> |
---|
665 | </ul> |
---|
666 | </li> |
---|
667 | <li><a href="#rfc.section.8">8.</a> <a href="#security.considerations">Security Considerations</a></li> |
---|
668 | <li><a href="#rfc.section.9">9.</a> <a href="#acks">Acknowledgments</a></li> |
---|
669 | <li><a href="#rfc.section.10">10.</a> <a href="#rfc.references">References</a><ul> |
---|
670 | <li><a href="#rfc.section.10.1">10.1</a> <a href="#rfc.references.1">Normative References</a></li> |
---|
671 | <li><a href="#rfc.section.10.2">10.2</a> <a href="#rfc.references.2">Informative References</a></li> |
---|
672 | </ul> |
---|
673 | </li> |
---|
674 | <li><a href="#rfc.authors">Authors' Addresses</a></li> |
---|
675 | <li><a href="#rfc.section.A">A.</a> <a href="#changes.from.rfc.2616">Changes from RFC 2616</a></li> |
---|
676 | <li><a href="#rfc.section.B">B.</a> <a href="#imported.abnf">Imported ABNF</a></li> |
---|
677 | <li><a href="#rfc.section.C">C.</a> <a href="#collected.abnf">Collected ABNF</a></li> |
---|
678 | <li><a href="#rfc.section.D">D.</a> <a href="#change.log">Change Log (to be removed by RFC Editor before publication)</a><ul> |
---|
679 | <li><a href="#rfc.section.D.1">D.1</a> <a href="#changes.since.19">Since draft-ietf-httpbis-p6-cache-19</a></li> |
---|
680 | <li><a href="#rfc.section.D.2">D.2</a> <a href="#changes.since.20">Since draft-ietf-httpbis-p6-cache-20</a></li> |
---|
681 | <li><a href="#rfc.section.D.3">D.3</a> <a href="#changes.since.21">Since draft-ietf-httpbis-p6-cache-21</a></li> |
---|
682 | <li><a href="#rfc.section.D.4">D.4</a> <a href="#changes.since.22">Since draft-ietf-httpbis-p6-cache-22</a></li> |
---|
683 | <li><a href="#rfc.section.D.5">D.5</a> <a href="#changes.since.23">Since draft-ietf-httpbis-p6-cache-23</a></li> |
---|
684 | </ul> |
---|
685 | </li> |
---|
686 | <li><a href="#rfc.index">Index</a></li> |
---|
687 | </ul> |
---|
688 | <h1 id="rfc.section.1" class="np"><a href="#rfc.section.1">1.</a> <a id="caching" href="#caching">Introduction</a></h1> |
---|
689 | <p id="rfc.section.1.p.1">HTTP is typically used for distributed information systems, where performance can be improved by the use of response caches. |
---|
690 | This document defines aspects of HTTP/1.1 related to caching and reusing response messages. |
---|
691 | </p> |
---|
692 | <div id="rfc.iref.c.1"></div> |
---|
693 | <p id="rfc.section.1.p.2">An HTTP <dfn>cache</dfn> is a local store of response messages and the subsystem that controls storage, retrieval, and deletion of messages in it. |
---|
694 | A cache stores cacheable responses in order to reduce the response time and network bandwidth consumption on future, equivalent |
---|
695 | requests. Any client or server <em class="bcp14">MAY</em> employ a cache, though a cache cannot be used by a server that is acting as a tunnel. |
---|
696 | </p> |
---|
697 | <div id="rfc.iref.s.1"></div> |
---|
698 | <div id="rfc.iref.p.1"></div> |
---|
699 | <div id="shared.and.private.caches"> |
---|
700 | <p id="rfc.section.1.p.3">A <dfn>shared cache</dfn> is a cache that stores responses to be reused by more than one user; shared caches are usually (but not always) deployed as |
---|
701 | a part of an intermediary. A <dfn>private cache</dfn>, in contrast, is dedicated to a single user. |
---|
702 | </p> |
---|
703 | </div> |
---|
704 | <p id="rfc.section.1.p.4">The goal of caching in HTTP/1.1 is to significantly improve performance by reusing a prior response message to satisfy a current |
---|
705 | request. A stored response is considered "fresh", as defined in <a href="#expiration.model" title="Freshness">Section 4.2</a>, if the response can be reused without "validation" (checking with the origin server to see if the cached response remains |
---|
706 | valid for this request). A fresh response can therefore reduce both latency and network overhead each time it is reused. When |
---|
707 | a cached response is not fresh, it might still be reusable if it can be freshened by validation (<a href="#validation.model" title="Validation">Section 4.3</a>) or if the origin is unavailable (<a href="#serving.stale.responses" title="Serving Stale Responses">Section 4.2.4</a>). |
---|
708 | </p> |
---|
709 | <h2 id="rfc.section.1.1"><a href="#rfc.section.1.1">1.1</a> <a id="conformance" href="#conformance">Conformance and Error Handling</a></h2> |
---|
710 | <p id="rfc.section.1.1.p.1">The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" |
---|
711 | in this document are to be interpreted as described in <a href="#RFC2119" id="rfc.xref.RFC2119.1"><cite title="Key words for use in RFCs to Indicate Requirement Levels">[RFC2119]</cite></a>. |
---|
712 | </p> |
---|
713 | <p id="rfc.section.1.1.p.2">Conformance criteria and considerations regarding error handling are defined in <a href="p1-messaging.html#conformance" title="Conformance and Error Handling">Section 2.5</a> of <a href="#Part1" id="rfc.xref.Part1.1"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing">[Part1]</cite></a>. |
---|
714 | </p> |
---|
715 | <h2 id="rfc.section.1.2"><a href="#rfc.section.1.2">1.2</a> <a id="notation" href="#notation">Syntax Notation</a></h2> |
---|
716 | <p id="rfc.section.1.2.p.1">This specification uses the Augmented Backus-Naur Form (ABNF) notation of <a href="#RFC5234" id="rfc.xref.RFC5234.1"><cite title="Augmented BNF for Syntax Specifications: ABNF">[RFC5234]</cite></a> with the list rule extension defined in <a href="p1-messaging.html#abnf.extension" title="ABNF list extension: #rule">Section 7</a> of <a href="#Part1" id="rfc.xref.Part1.2"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing">[Part1]</cite></a>. <a href="#imported.abnf" title="Imported ABNF">Appendix B</a> describes rules imported from other documents. <a href="#collected.abnf" title="Collected ABNF">Appendix C</a> shows the collected ABNF with the list rule expanded. |
---|
717 | </p> |
---|
718 | <h3 id="rfc.section.1.2.1"><a href="#rfc.section.1.2.1">1.2.1</a> <a id="delta-seconds" href="#delta-seconds">Delta Seconds</a></h3> |
---|
719 | <p id="rfc.section.1.2.1.p.1">The delta-seconds rule specifies a non-negative integer, representing time in seconds.</p> |
---|
720 | <div id="rfc.figure.u.1"></div><pre class="inline"><span id="rfc.iref.g.1"></span> <a href="#delta-seconds" class="smpl">delta-seconds</a> = 1*<a href="#imported.abnf" class="smpl">DIGIT</a> |
---|
721 | </pre><p id="rfc.section.1.2.1.p.3">If a cache receives a delta-seconds value larger than the largest positive integer it can represent, or if any of its subsequent |
---|
722 | calculations overflows, the cache <em class="bcp14">MUST</em> consider the value to be 2147483648 (2<sup>31</sup>). A recipient parsing a delta-seconds value <em class="bcp14">MUST</em> use an arithmetic type of at least 31 bits of range, and a sender <em class="bcp14">MUST NOT</em> generate delta-seconds with a value greater than 2147483648. |
---|
723 | </p> |
---|
724 | <div id="rfc.iref.c.2"></div> |
---|
725 | <div id="rfc.iref.c.3"></div> |
---|
726 | <h1 id="rfc.section.2"><a href="#rfc.section.2">2.</a> <a id="caching.overview" href="#caching.overview">Overview of Cache Operation</a></h1> |
---|
727 | <p id="rfc.section.2.p.1">Proper cache operation preserves the semantics of HTTP transfers (<a href="#Part2" id="rfc.xref.Part2.1"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content">[Part2]</cite></a>) while eliminating the transfer of information already held in the cache. Although caching is an entirely <em class="bcp14">OPTIONAL</em> feature of HTTP, we assume that reusing the cached response is desirable and that such reuse is the default behavior when |
---|
728 | no requirement or local configuration prevents it. Therefore, HTTP cache requirements are focused on preventing a cache from |
---|
729 | either storing a non-reusable response or reusing a stored response inappropriately, rather than mandating that caches always |
---|
730 | store and reuse particular responses. |
---|
731 | </p> |
---|
732 | <p id="rfc.section.2.p.2">Each <dfn>cache entry</dfn> consists of a cache key and one or more HTTP responses corresponding to prior requests that used the same key. The most common |
---|
733 | form of cache entry is a successful result of a retrieval request: i.e., a <a href="p2-semantics.html#status.200" class="smpl">200 (OK)</a> response to a GET request, which contains a representation of the resource identified by the request target (<a href="p2-semantics.html#GET" title="GET">Section 4.3.1</a> of <a href="#Part2" id="rfc.xref.Part2.2"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content">[Part2]</cite></a>). However, it is also possible to cache permanent redirects, negative results (e.g., <a href="p2-semantics.html#status.404" class="smpl">404 (Not Found)</a>), incomplete results (e.g., <a href="p5-range.html#status.206" class="smpl">206 (Partial Content)</a>), and responses to methods other than GET if the method's definition allows such caching and defines something suitable for |
---|
734 | use as a cache key. |
---|
735 | </p> |
---|
736 | <div id="rfc.iref.c.4"></div> |
---|
737 | <p id="rfc.section.2.p.3">The primary <dfn>cache key</dfn> consists of the request method and target URI. However, since HTTP caches in common use today are typically limited to caching |
---|
738 | responses to GET, many caches simply decline other methods and use only the URI as the primary cache key. |
---|
739 | </p> |
---|
740 | <p id="rfc.section.2.p.4">If a request target is subject to content negotiation, its cache entry might consist of multiple stored responses, each differentiated |
---|
741 | by a secondary key for the values of the original request's selecting header fields (<a href="#caching.negotiated.responses" title="Calculating Secondary Keys with Vary">Section 4.1</a>). |
---|
742 | </p> |
---|
743 | <h1 id="rfc.section.3"><a href="#rfc.section.3">3.</a> <a id="response.cacheability" href="#response.cacheability">Storing Responses in Caches</a></h1> |
---|
744 | <p id="rfc.section.3.p.1">A cache <em class="bcp14">MUST NOT</em> store a response to any request, unless: |
---|
745 | </p> |
---|
746 | <ul> |
---|
747 | <li>The request method is understood by the cache and defined as being cacheable, and</li> |
---|
748 | <li>the response status code is understood by the cache, and</li> |
---|
749 | <li>the "no-store" cache directive (see <a href="#header.cache-control" id="rfc.xref.header.cache-control.1" title="Cache-Control">Section 5.2</a>) does not appear in request or response header fields, and |
---|
750 | </li> |
---|
751 | <li>the "private" cache response directive (see <a href="#cache-response-directive.private" title="private">Section 5.2.2.6</a>) does not appear in the response, if the cache is shared, and |
---|
752 | </li> |
---|
753 | <li>the <a href="p7-auth.html#header.authorization" class="smpl">Authorization</a> header field (see <a href="p7-auth.html#header.authorization" title="Authorization">Section 4.1</a> of <a href="#Part7" id="rfc.xref.Part7.1"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Authentication">[Part7]</cite></a>) does not appear in the request, if the cache is shared, unless the response explicitly allows it (see <a href="#caching.authenticated.responses" title="Storing Responses to Authenticated Requests">Section 3.2</a>), and |
---|
754 | </li> |
---|
755 | <li>the response either: |
---|
756 | <ul> |
---|
757 | <li>contains an <a href="#header.expires" class="smpl">Expires</a> header field (see <a href="#header.expires" id="rfc.xref.header.expires.1" title="Expires">Section 5.3</a>), or |
---|
758 | </li> |
---|
759 | <li>contains a max-age response cache directive (see <a href="#cache-response-directive.max-age" title="max-age">Section 5.2.2.8</a>), or |
---|
760 | </li> |
---|
761 | <li>contains a s-maxage response cache directive (see <a href="#cache-response-directive.s-maxage" title="s-maxage">Section 5.2.2.9</a>) and the cache is shared, or |
---|
762 | </li> |
---|
763 | <li>contains a Cache Control Extension (see <a href="#cache.control.extensions" title="Cache Control Extensions">Section 5.2.3</a>) that allows it to be cached, or |
---|
764 | </li> |
---|
765 | <li>has a status code that is defined as cacheable (see <a href="#heuristic.freshness" title="Calculating Heuristic Freshness">Section 4.2.2</a>), or |
---|
766 | </li> |
---|
767 | <li>contains a public response cache directive (see <a href="#cache-response-directive.public" title="public">Section 5.2.2.5</a>). |
---|
768 | </li> |
---|
769 | </ul> |
---|
770 | </li> |
---|
771 | </ul> |
---|
772 | <p id="rfc.section.3.p.2">Note that any of the requirements listed above can be overridden by a cache-control extension; see <a href="#cache.control.extensions" title="Cache Control Extensions">Section 5.2.3</a>. |
---|
773 | </p> |
---|
774 | <p id="rfc.section.3.p.3">In this context, a cache has "understood" a request method or a response status code if it recognizes it and implements all |
---|
775 | specified caching-related behavior. |
---|
776 | </p> |
---|
777 | <p id="rfc.section.3.p.4">Note that, in normal operation, some caches will not store a response that has neither a cache validator nor an explicit expiration |
---|
778 | time, as such responses are not usually useful to store. However, caches are not prohibited from storing such responses. |
---|
779 | </p> |
---|
780 | <h2 id="rfc.section.3.1"><a href="#rfc.section.3.1">3.1</a> <a id="incomplete.responses" href="#incomplete.responses">Storing Incomplete Responses</a></h2> |
---|
781 | <p id="rfc.section.3.1.p.1">A response message is considered complete when all of the octets indicated by the message framing (<a href="#Part1" id="rfc.xref.Part1.3"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing">[Part1]</cite></a>) are received prior to the connection being closed. If the request method is GET, the response status code is <a href="p2-semantics.html#status.200" class="smpl">200 (OK)</a>, and the entire response header section has been received, a cache <em class="bcp14">MAY</em> store an incomplete response message body if the cache entry is recorded as incomplete. Likewise, a <a href="p5-range.html#status.206" class="smpl">206 (Partial Content)</a> response <em class="bcp14">MAY</em> be stored as if it were an incomplete <a href="p2-semantics.html#status.200" class="smpl">200 |
---|
782 | (OK)</a> cache entry. However, a cache <em class="bcp14">MUST NOT</em> store incomplete or partial content responses if it does not support the <a href="p5-range.html#header.range" class="smpl">Range</a> and <a href="p5-range.html#header.content-range" class="smpl">Content-Range</a> header fields or if it does not understand the range units used in those fields. |
---|
783 | </p> |
---|
784 | <p id="rfc.section.3.1.p.2">A cache <em class="bcp14">MAY</em> complete a stored incomplete response by making a subsequent range request (<a href="#Part5" id="rfc.xref.Part5.1"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Range Requests">[Part5]</cite></a>) and combining the successful response with the stored entry, as defined in <a href="#combining.responses" title="Combining Partial Content">Section 3.3</a>. A cache <em class="bcp14">MUST NOT</em> use an incomplete response to answer requests unless the response has been made complete or the request is partial and specifies |
---|
785 | a range that is wholly within the incomplete response. A cache <em class="bcp14">MUST NOT</em> send a partial response to a client without explicitly marking it as such using the <a href="p5-range.html#status.206" class="smpl">206 (Partial Content)</a> status code. |
---|
786 | </p> |
---|
787 | <h2 id="rfc.section.3.2"><a href="#rfc.section.3.2">3.2</a> <a id="caching.authenticated.responses" href="#caching.authenticated.responses">Storing Responses to Authenticated Requests</a></h2> |
---|
788 | <p id="rfc.section.3.2.p.1">A shared cache <em class="bcp14">MUST NOT</em> use a cached response to a request with an <a href="p7-auth.html#header.authorization" class="smpl">Authorization</a> header field (<a href="p7-auth.html#header.authorization" title="Authorization">Section 4.1</a> of <a href="#Part7" id="rfc.xref.Part7.2"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Authentication">[Part7]</cite></a>) to satisfy any subsequent request unless a cache directive that allows such responses to be stored is present in the response. |
---|
789 | </p> |
---|
790 | <p id="rfc.section.3.2.p.2">In this specification, the following <a href="#header.cache-control" class="smpl">Cache-Control</a> response directives (<a href="#cache-response-directive" title="Response Cache-Control Directives">Section 5.2.2</a>) have such an effect: must-revalidate, public, s-maxage. |
---|
791 | </p> |
---|
792 | <p id="rfc.section.3.2.p.3">Note that cached responses that contain the "must-revalidate" and/or "s-maxage" response directives are not allowed to be |
---|
793 | served stale (<a href="#serving.stale.responses" title="Serving Stale Responses">Section 4.2.4</a>) by shared caches. In particular, a response with either "max-age=0, must-revalidate" or "s-maxage=0" cannot be used to satisfy |
---|
794 | a subsequent request without revalidating it on the origin server. |
---|
795 | </p> |
---|
796 | <h2 id="rfc.section.3.3"><a href="#rfc.section.3.3">3.3</a> <a id="combining.responses" href="#combining.responses">Combining Partial Content</a></h2> |
---|
797 | <p id="rfc.section.3.3.p.1">A response might transfer only a partial representation if the connection closed prematurely or if the request used one or |
---|
798 | more Range specifiers (<a href="#Part5" id="rfc.xref.Part5.2"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Range Requests">[Part5]</cite></a>). After several such transfers, a cache might have received several ranges of the same representation. A cache <em class="bcp14">MAY</em> combine these ranges into a single stored response, and reuse that response to satisfy later requests, if they all share the |
---|
799 | same strong validator and the cache complies with the client requirements in <a href="p5-range.html#combining.byte.ranges" title="Combining Ranges">Section 4.3</a> of <a href="#Part5" id="rfc.xref.Part5.3"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Range Requests">[Part5]</cite></a>. |
---|
800 | </p> |
---|
801 | <p id="rfc.section.3.3.p.2">When combining the new response with one or more stored responses, a cache <em class="bcp14">MUST</em>: |
---|
802 | </p> |
---|
803 | <ul> |
---|
804 | <li>delete any <a href="#header.warning" class="smpl">Warning</a> header fields in the stored response with warn-code 1xx (see <a href="#header.warning" id="rfc.xref.header.warning.1" title="Warning">Section 5.5</a>); |
---|
805 | </li> |
---|
806 | <li>retain any <a href="#header.warning" class="smpl">Warning</a> header fields in the stored response with warn-code 2xx; and, |
---|
807 | </li> |
---|
808 | <li>use other header fields provided in the new response, aside from <a href="p5-range.html#header.content-range" class="smpl">Content-Range</a>, to replace all instances of the corresponding header fields in the stored response. |
---|
809 | </li> |
---|
810 | </ul> |
---|
811 | <h1 id="rfc.section.4"><a href="#rfc.section.4">4.</a> <a id="constructing.responses.from.caches" href="#constructing.responses.from.caches">Constructing Responses from Caches</a></h1> |
---|
812 | <p id="rfc.section.4.p.1">When presented with a request, a cache <em class="bcp14">MUST NOT</em> reuse a stored response, unless: |
---|
813 | </p> |
---|
814 | <ul> |
---|
815 | <li>The presented effective request URI (<a href="p1-messaging.html#effective.request.uri" title="Effective Request URI">Section 5.5</a> of <a href="#Part1" id="rfc.xref.Part1.4"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing">[Part1]</cite></a>) and that of the stored response match, and |
---|
816 | </li> |
---|
817 | <li>the request method associated with the stored response allows it to be used for the presented request, and</li> |
---|
818 | <li>selecting header fields nominated by the stored response (if any) match those presented (see <a href="#caching.negotiated.responses" title="Calculating Secondary Keys with Vary">Section 4.1</a>), and |
---|
819 | </li> |
---|
820 | <li>the presented request does not contain the no-cache pragma (<a href="#header.pragma" id="rfc.xref.header.pragma.1" title="Pragma">Section 5.4</a>), nor the no-cache cache directive (<a href="#cache-request-directive" title="Request Cache-Control Directives">Section 5.2.1</a>), unless the stored response is successfully validated (<a href="#validation.model" title="Validation">Section 4.3</a>), and |
---|
821 | </li> |
---|
822 | <li>the stored response does not contain the no-cache cache directive (<a href="#cache-response-directive.no-cache" title="no-cache">Section 5.2.2.2</a>), unless it is successfully validated (<a href="#validation.model" title="Validation">Section 4.3</a>), and |
---|
823 | </li> |
---|
824 | <li>the stored response is either: |
---|
825 | <ul> |
---|
826 | <li>fresh (see <a href="#expiration.model" title="Freshness">Section 4.2</a>), or |
---|
827 | </li> |
---|
828 | <li>allowed to be served stale (see <a href="#serving.stale.responses" title="Serving Stale Responses">Section 4.2.4</a>), or |
---|
829 | </li> |
---|
830 | <li>successfully validated (see <a href="#validation.model" title="Validation">Section 4.3</a>). |
---|
831 | </li> |
---|
832 | </ul> |
---|
833 | </li> |
---|
834 | </ul> |
---|
835 | <p id="rfc.section.4.p.2">Note that any of the requirements listed above can be overridden by a cache-control extension; see <a href="#cache.control.extensions" title="Cache Control Extensions">Section 5.2.3</a>. |
---|
836 | </p> |
---|
837 | <p id="rfc.section.4.p.3">When a stored response is used to satisfy a request without validation, a cache <em class="bcp14">MUST</em> generate an <a href="#header.age" class="smpl">Age</a> header field (<a href="#header.age" id="rfc.xref.header.age.1" title="Age">Section 5.1</a>), replacing any present in the response with a value equal to the stored response's current_age; see <a href="#age.calculations" title="Calculating Age">Section 4.2.3</a>. |
---|
838 | </p> |
---|
839 | <p id="rfc.section.4.p.4">A cache <em class="bcp14">MUST</em> write through requests with methods that are unsafe (<a href="p2-semantics.html#safe.methods" title="Safe Methods">Section 4.2.1</a> of <a href="#Part2" id="rfc.xref.Part2.3"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content">[Part2]</cite></a>) to the origin server; i.e., a cache is not allowed to generate a reply to such a request before having forwarded the request |
---|
840 | and having received a corresponding response. |
---|
841 | </p> |
---|
842 | <p id="rfc.section.4.p.5">Also, note that unsafe requests might invalidate already stored responses; see <a href="#invalidation" title="Invalidation">Section 4.4</a>. |
---|
843 | </p> |
---|
844 | <p id="rfc.section.4.p.6">When more than one suitable response is stored, a cache <em class="bcp14">MUST</em> use the most recent response (as determined by the <a href="p2-semantics.html#header.date" class="smpl">Date</a> header field). It can also forward the request with "Cache-Control: max-age=0" or "Cache-Control: no-cache" to disambiguate |
---|
845 | which response to use. |
---|
846 | </p> |
---|
847 | <p id="rfc.section.4.p.7">A cache that does not have a clock available <em class="bcp14">MUST NOT</em> use stored responses without revalidating them upon every use. |
---|
848 | </p> |
---|
849 | <h2 id="rfc.section.4.1"><a href="#rfc.section.4.1">4.1</a> <a id="caching.negotiated.responses" href="#caching.negotiated.responses">Calculating Secondary Keys with Vary</a></h2> |
---|
850 | <p id="rfc.section.4.1.p.1">When a cache receives a request that can be satisfied by a stored response that has a <a href="p2-semantics.html#header.vary" class="smpl">Vary</a> header field (<a href="p2-semantics.html#header.vary" title="Vary">Section 7.1.4</a> of <a href="#Part2" id="rfc.xref.Part2.4"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content">[Part2]</cite></a>), it <em class="bcp14">MUST NOT</em> use that response unless all of the selecting header fields nominated by the Vary header field match in both the original |
---|
851 | request (i.e., that associated with the stored response), and the presented request. |
---|
852 | </p> |
---|
853 | <p id="rfc.section.4.1.p.2">The selecting header fields from two requests are defined to match if and only if those in the first request can be transformed |
---|
854 | to those in the second request by applying any of the following: |
---|
855 | </p> |
---|
856 | <ul> |
---|
857 | <li>adding or removing whitespace, where allowed in the header field's syntax</li> |
---|
858 | <li>combining multiple header fields with the same field name (see <a href="p1-messaging.html#header.fields" title="Header Fields">Section 3.2</a> of <a href="#Part1" id="rfc.xref.Part1.5"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing">[Part1]</cite></a>) |
---|
859 | </li> |
---|
860 | <li>normalizing both header field values in a way that is known to have identical semantics, according to the header field's specification |
---|
861 | (e.g., re-ordering field values when order is not significant; case-normalization, where values are defined to be case-insensitive) |
---|
862 | </li> |
---|
863 | </ul> |
---|
864 | <p id="rfc.section.4.1.p.3">If (after any normalization that might take place) a header field is absent from a request, it can only match another request |
---|
865 | if it is also absent there. |
---|
866 | </p> |
---|
867 | <p id="rfc.section.4.1.p.4">A <a href="p2-semantics.html#header.vary" class="smpl">Vary</a> header field-value of "*" always fails to match. |
---|
868 | </p> |
---|
869 | <p id="rfc.section.4.1.p.5">The stored response with matching selecting header fields is known as the selected response.</p> |
---|
870 | <p id="rfc.section.4.1.p.6">If multiple selected responses are available (potentially including responses without a Vary header field), the cache will |
---|
871 | need to choose one to use. When a selecting header field has a known mechanism for doing so (e.g., qvalues on <a href="p2-semantics.html#header.accept" class="smpl">Accept</a> and similar request header fields), that mechanism <em class="bcp14">MAY</em> be used to select preferred responses; of the remainder, the most recent response (as determined by the <a href="p2-semantics.html#header.date" class="smpl">Date</a> header field) is used, as per <a href="#constructing.responses.from.caches" title="Constructing Responses from Caches">Section 4</a>. |
---|
872 | </p> |
---|
873 | <p id="rfc.section.4.1.p.7">If no selected response is available, the cache cannot satisfy the presented request. Typically, it is forwarded to the origin |
---|
874 | server in a (possibly conditional; see <a href="#validation.model" title="Validation">Section 4.3</a>) request. |
---|
875 | </p> |
---|
876 | <div id="rfc.iref.f.1"></div> |
---|
877 | <div id="rfc.iref.s.2"></div> |
---|
878 | <h2 id="rfc.section.4.2"><a href="#rfc.section.4.2">4.2</a> <a id="expiration.model" href="#expiration.model">Freshness</a></h2> |
---|
879 | <p id="rfc.section.4.2.p.1">A <dfn>fresh</dfn> response is one whose age has not yet exceeded its freshness lifetime. Conversely, a <dfn>stale</dfn> response is one where it has. |
---|
880 | </p> |
---|
881 | <div id="rfc.iref.f.2"></div> |
---|
882 | <div id="rfc.iref.e.1"></div> |
---|
883 | <div id="rfc.iref.h.1"></div> |
---|
884 | <p id="rfc.section.4.2.p.2">A response's <dfn>freshness lifetime</dfn> is the length of time between its generation by the origin server and its expiration time. An <dfn>explicit expiration time</dfn> is the time at which the origin server intends that a stored response can no longer be used by a cache without further validation, |
---|
885 | whereas a <dfn>heuristic expiration time</dfn> is assigned by a cache when no explicit expiration time is available. |
---|
886 | </p> |
---|
887 | <div id="rfc.iref.a.1"></div> |
---|
888 | <p id="rfc.section.4.2.p.3">A response's <dfn>age</dfn> is the time that has passed since it was generated by, or successfully validated with, the origin server. |
---|
889 | </p> |
---|
890 | <p id="rfc.section.4.2.p.4">When a response is "fresh" in the cache, it can be used to satisfy subsequent requests without contacting the origin server, |
---|
891 | thereby improving efficiency. |
---|
892 | </p> |
---|
893 | <p id="rfc.section.4.2.p.5">The primary mechanism for determining freshness is for an origin server to provide an explicit expiration time in the future, |
---|
894 | using either the <a href="#header.expires" class="smpl">Expires</a> header field (<a href="#header.expires" id="rfc.xref.header.expires.2" title="Expires">Section 5.3</a>) or the max-age response cache directive (<a href="#cache-response-directive.max-age" title="max-age">Section 5.2.2.8</a>). Generally, origin servers will assign future explicit expiration times to responses in the belief that the representation |
---|
895 | is not likely to change in a semantically significant way before the expiration time is reached. |
---|
896 | </p> |
---|
897 | <p id="rfc.section.4.2.p.6">If an origin server wishes to force a cache to validate every request, it can assign an explicit expiration time in the past |
---|
898 | to indicate that the response is already stale. Compliant caches will normally validate a stale cached response before reusing |
---|
899 | it for subsequent requests (see <a href="#serving.stale.responses" title="Serving Stale Responses">Section 4.2.4</a>). |
---|
900 | </p> |
---|
901 | <p id="rfc.section.4.2.p.7">Since origin servers do not always provide explicit expiration times, caches are also allowed to use a heuristic to determine |
---|
902 | an expiration time under certain circumstances (see <a href="#heuristic.freshness" title="Calculating Heuristic Freshness">Section 4.2.2</a>). |
---|
903 | </p> |
---|
904 | <div id="rfc.figure.u.2"></div> |
---|
905 | <p>The calculation to determine if a response is fresh is:</p><pre class="text"> response_is_fresh = (freshness_lifetime > current_age) |
---|
906 | </pre><p id="rfc.section.4.2.p.9">freshness_lifetime is defined in <a href="#calculating.freshness.lifetime" title="Calculating Freshness Lifetime">Section 4.2.1</a>; current_age is defined in <a href="#age.calculations" title="Calculating Age">Section 4.2.3</a>. |
---|
907 | </p> |
---|
908 | <p id="rfc.section.4.2.p.10">Clients can send the max-age or min-fresh cache directives in a request to constrain or relax freshness calculations for the |
---|
909 | corresponding response (<a href="#cache-request-directive" title="Request Cache-Control Directives">Section 5.2.1</a>). |
---|
910 | </p> |
---|
911 | <p id="rfc.section.4.2.p.11">When calculating freshness, to avoid common problems in date parsing:</p> |
---|
912 | <p id="rfc.section.4.2.p.12"></p> |
---|
913 | <ul> |
---|
914 | <li>Although all date formats are specified to be case-sensitive, a cache recipient <em class="bcp14">SHOULD</em> match day, week, and timezone names case-insensitively. |
---|
915 | </li> |
---|
916 | <li>If a cache recipient's internal implementation of time has less resolution than the value of an HTTP-date, the recipient <em class="bcp14">MUST</em> internally represent a parsed <a href="#header.expires" class="smpl">Expires</a> date as the nearest time equal to or earlier than the received value. |
---|
917 | </li> |
---|
918 | <li>A cache recipient <em class="bcp14">MUST NOT</em> allow local time zones to influence the calculation or comparison of an age or expiration time. |
---|
919 | </li> |
---|
920 | <li>A cache recipient <em class="bcp14">SHOULD</em> consider a date with a zone abbreviation other than GMT or UTC to be invalid for calculating expiration. |
---|
921 | </li> |
---|
922 | </ul> |
---|
923 | <p id="rfc.section.4.2.p.13">Note that freshness applies only to cache operation; it cannot be used to force a user agent to refresh its display or reload |
---|
924 | a resource. See <a href="#history.lists" title="History Lists">Section 6</a> for an explanation of the difference between caches and history mechanisms. |
---|
925 | </p> |
---|
926 | <h3 id="rfc.section.4.2.1"><a href="#rfc.section.4.2.1">4.2.1</a> <a id="calculating.freshness.lifetime" href="#calculating.freshness.lifetime">Calculating Freshness Lifetime</a></h3> |
---|
927 | <p id="rfc.section.4.2.1.p.1">A cache can calculate the freshness lifetime (denoted as freshness_lifetime) of a response by using the first match of: </p> |
---|
928 | <ul> |
---|
929 | <li>If the cache is shared and the s-maxage response cache directive (<a href="#cache-response-directive.s-maxage" title="s-maxage">Section 5.2.2.9</a>) is present, use its value, or |
---|
930 | </li> |
---|
931 | <li>If the max-age response cache directive (<a href="#cache-response-directive.max-age" title="max-age">Section 5.2.2.8</a>) is present, use its value, or |
---|
932 | </li> |
---|
933 | <li>If the <a href="#header.expires" class="smpl">Expires</a> response header field (<a href="#header.expires" id="rfc.xref.header.expires.3" title="Expires">Section 5.3</a>) is present, use its value minus the value of the <a href="p2-semantics.html#header.date" class="smpl">Date</a> response header field, or |
---|
934 | </li> |
---|
935 | <li>Otherwise, no explicit expiration time is present in the response. A heuristic freshness lifetime might be applicable; see <a href="#heuristic.freshness" title="Calculating Heuristic Freshness">Section 4.2.2</a>. |
---|
936 | </li> |
---|
937 | </ul> |
---|
938 | <p id="rfc.section.4.2.1.p.2">Note that this calculation is not vulnerable to clock skew, since all of the information comes from the origin server.</p> |
---|
939 | <p id="rfc.section.4.2.1.p.3">When there is more than one value present for a given directive (e.g., two <a href="#header.expires" class="smpl">Expires</a> header fields, multiple Cache-Control: max-age directives), the directive's value is considered invalid. Caches are encouraged |
---|
940 | to consider responses that have invalid freshness information to be stale. |
---|
941 | </p> |
---|
942 | <h3 id="rfc.section.4.2.2"><a href="#rfc.section.4.2.2">4.2.2</a> <a id="heuristic.freshness" href="#heuristic.freshness">Calculating Heuristic Freshness</a></h3> |
---|
943 | <p id="rfc.section.4.2.2.p.1">Since origin servers do not always provide explicit expiration times, a cache <em class="bcp14">MAY</em> assign a heuristic expiration time when an explicit time is not specified, employing algorithms that use other header field |
---|
944 | values (such as the <a href="p4-conditional.html#header.last-modified" class="smpl">Last-Modified</a> time) to estimate a plausible expiration time. This specification does not provide specific algorithms, but does impose worst-case |
---|
945 | constraints on their results. |
---|
946 | </p> |
---|
947 | <p id="rfc.section.4.2.2.p.2">A cache <em class="bcp14">MUST NOT</em> use heuristics to determine freshness when an explicit expiration time is present in the stored response. Because of the requirements |
---|
948 | in <a href="#response.cacheability" title="Storing Responses in Caches">Section 3</a>, this means that, effectively, heuristics can only be used on responses without explicit freshness whose status codes are |
---|
949 | defined as cacheable, and responses without explicit freshness that have been marked as explicitly cacheable (e.g., with a |
---|
950 | "public" response cache directive). |
---|
951 | </p> |
---|
952 | <p id="rfc.section.4.2.2.p.3">If the response has a <a href="p4-conditional.html#header.last-modified" class="smpl">Last-Modified</a> header field (<a href="p4-conditional.html#header.last-modified" title="Last-Modified">Section 2.2</a> of <a href="#Part4" id="rfc.xref.Part4.1"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Conditional Requests">[Part4]</cite></a>), caches are encouraged to use a heuristic expiration value that is no more than some fraction of the interval since that |
---|
953 | time. A typical setting of this fraction might be 10%. |
---|
954 | </p> |
---|
955 | <p id="rfc.section.4.2.2.p.4">When a heuristic is used to calculate freshness lifetime, a cache <em class="bcp14">SHOULD</em> generate a <a href="#header.warning" class="smpl">Warning</a> header field with a 113 warn-code (see <a href="#warn.113" id="rfc.xref.warn.113.1" title="Warning: 113 means "Heuristic Expiration"">Section 5.5.4</a>) in the response if its current_age is more than 24 hours and such a warning is not already present. |
---|
956 | </p> |
---|
957 | <div class="note" id="rfc.section.4.2.2.p.5"> |
---|
958 | <p><b>Note:</b> <a href="http://tools.ietf.org/html/rfc2616#section-13.9">Section 13.9</a> of <a href="#RFC2616" id="rfc.xref.RFC2616.1"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2616]</cite></a> prohibited caches from calculating heuristic freshness for URIs with query components (i.e., those containing '?'). In practice, |
---|
959 | this has not been widely implemented. Therefore, origin servers are encouraged to send explicit directives (e.g., Cache-Control: |
---|
960 | no-cache) if they wish to preclude caching. |
---|
961 | </p> |
---|
962 | </div> |
---|
963 | <h3 id="rfc.section.4.2.3"><a href="#rfc.section.4.2.3">4.2.3</a> <a id="age.calculations" href="#age.calculations">Calculating Age</a></h3> |
---|
964 | <p id="rfc.section.4.2.3.p.1">The <a href="#header.age" class="smpl">Age</a> header field is used to convey an estimated age of the response message when obtained from a cache. The Age field value is |
---|
965 | the cache's estimate of the number of seconds since the response was generated or validated by the origin server. In essence, |
---|
966 | the Age value is the sum of the time that the response has been resident in each of the caches along the path from the origin |
---|
967 | server, plus the amount of time it has been in transit along network paths. |
---|
968 | </p> |
---|
969 | <p id="rfc.section.4.2.3.p.2">The following data is used for the age calculation:</p> |
---|
970 | <p id="rfc.section.4.2.3.p.3"><dfn>age_value</dfn> |
---|
971 | </p> |
---|
972 | <ul class="empty"> |
---|
973 | <li>The term "age_value" denotes the value of the <a href="#header.age" class="smpl">Age</a> header field (<a href="#header.age" id="rfc.xref.header.age.2" title="Age">Section 5.1</a>), in a form appropriate for arithmetic operation; or 0, if not available. |
---|
974 | </li> |
---|
975 | </ul> |
---|
976 | <p id="rfc.section.4.2.3.p.4"><dfn>date_value</dfn> |
---|
977 | </p> |
---|
978 | <ul class="empty"> |
---|
979 | <li>The term "date_value" denotes the value of the Date header field, in a form appropriate for arithmetic operations. See <a href="p2-semantics.html#header.date" title="Date">Section 7.1.1.2</a> of <a href="#Part2" id="rfc.xref.Part2.5"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content">[Part2]</cite></a> for the definition of the Date header field, and for requirements regarding responses without it. |
---|
980 | </li> |
---|
981 | </ul> |
---|
982 | <p id="rfc.section.4.2.3.p.5"><dfn>now</dfn> |
---|
983 | </p> |
---|
984 | <ul class="empty"> |
---|
985 | <li>The term "now" means "the current value of the clock at the host performing the calculation". A host ought to use NTP (<a href="#RFC1305" id="rfc.xref.RFC1305.1"><cite title="Network Time Protocol (Version 3) Specification, Implementation">[RFC1305]</cite></a>) or some similar protocol to synchronize its clocks to Coordinated Universal Time. |
---|
986 | </li> |
---|
987 | </ul> |
---|
988 | <p id="rfc.section.4.2.3.p.6"><dfn>request_time</dfn> |
---|
989 | </p> |
---|
990 | <ul class="empty"> |
---|
991 | <li>The current value of the clock at the host at the time the request resulting in the stored response was made.</li> |
---|
992 | </ul> |
---|
993 | <p id="rfc.section.4.2.3.p.7"><dfn>response_time</dfn> |
---|
994 | </p> |
---|
995 | <ul class="empty"> |
---|
996 | <li>The current value of the clock at the host at the time the response was received.</li> |
---|
997 | </ul> |
---|
998 | <p id="rfc.section.4.2.3.p.8">A response's age can be calculated in two entirely independent ways: </p> |
---|
999 | <ol> |
---|
1000 | <li>the "apparent_age": response_time minus date_value, if the local clock is reasonably well synchronized to the origin server's |
---|
1001 | clock. If the result is negative, the result is replaced by zero. |
---|
1002 | </li> |
---|
1003 | <li>the "corrected_age_value", if all of the caches along the response path implement HTTP/1.1. A cache <em class="bcp14">MUST</em> interpret this value relative to the time the request was initiated, not the time that the response was received. |
---|
1004 | </li> |
---|
1005 | </ol> |
---|
1006 | <div id="rfc.figure.u.3"></div><pre class="text"> apparent_age = max(0, response_time - date_value); |
---|
1007 | |
---|
1008 | response_delay = response_time - request_time; |
---|
1009 | corrected_age_value = age_value + response_delay; |
---|
1010 | </pre><div id="rfc.figure.u.4"></div> |
---|
1011 | <p>These are combined as</p><pre class="text"> corrected_initial_age = max(apparent_age, corrected_age_value); |
---|
1012 | </pre><p id="rfc.section.4.2.3.p.11">unless the cache is confident in the value of the <a href="#header.age" class="smpl">Age</a> header field (e.g., because there are no HTTP/1.0 hops in the <a href="p1-messaging.html#header.via" class="smpl">Via</a> header field), in which case the corrected_age_value <em class="bcp14">MAY</em> be used as the corrected_initial_age. |
---|
1013 | </p> |
---|
1014 | <p id="rfc.section.4.2.3.p.12">The current_age of a stored response can then be calculated by adding the amount of time (in seconds) since the stored response |
---|
1015 | was last validated by the origin server to the corrected_initial_age. |
---|
1016 | </p> |
---|
1017 | <div id="rfc.figure.u.5"></div><pre class="text"> resident_time = now - response_time; |
---|
1018 | current_age = corrected_initial_age + resident_time; |
---|
1019 | </pre><h3 id="rfc.section.4.2.4"><a href="#rfc.section.4.2.4">4.2.4</a> <a id="serving.stale.responses" href="#serving.stale.responses">Serving Stale Responses</a></h3> |
---|
1020 | <p id="rfc.section.4.2.4.p.1">A "stale" response is one that either has explicit expiry information or is allowed to have heuristic expiry calculated, but |
---|
1021 | is not fresh according to the calculations in <a href="#expiration.model" title="Freshness">Section 4.2</a>. |
---|
1022 | </p> |
---|
1023 | <p id="rfc.section.4.2.4.p.2">A cache <em class="bcp14">MUST NOT</em> generate a stale response if it is prohibited by an explicit in-protocol directive (e.g., by a "no-store" or "no-cache" cache |
---|
1024 | directive, a "must-revalidate" cache-response-directive, or an applicable "s-maxage" or "proxy-revalidate" cache-response-directive; |
---|
1025 | see <a href="#cache-response-directive" title="Response Cache-Control Directives">Section 5.2.2</a>). |
---|
1026 | </p> |
---|
1027 | <p id="rfc.section.4.2.4.p.3">A cache <em class="bcp14">MUST NOT</em> send stale responses unless it is disconnected (i.e., it cannot contact the origin server or otherwise find a forward path) |
---|
1028 | or doing so is explicitly allowed (e.g., by the max-stale request directive; see <a href="#cache-request-directive" title="Request Cache-Control Directives">Section 5.2.1</a>). |
---|
1029 | </p> |
---|
1030 | <p id="rfc.section.4.2.4.p.4">A cache <em class="bcp14">SHOULD</em> generate a <a href="#header.warning" class="smpl">Warning</a> header field with the 110 warn-code (see <a href="#warn.110" id="rfc.xref.warn.110.1" title="Warning: 110 means "Response is Stale"">Section 5.5.1</a>) in stale responses. Likewise, a cache <em class="bcp14">SHOULD</em> generate a 112 warn-code (see <a href="#warn.112" id="rfc.xref.warn.112.1" title="Warning: 112 means "Disconnected Operation"">Section 5.5.3</a>) in stale responses if the cache is disconnected. |
---|
1031 | </p> |
---|
1032 | <p id="rfc.section.4.2.4.p.5">A cache <em class="bcp14">SHOULD NOT</em> generate a new <a href="#header.warning" class="smpl">Warning</a> header field when forwarding a response that does not have an <a href="#header.age" class="smpl">Age</a> header field, even if the response is already stale. A cache need not validate a response that merely became stale in transit. |
---|
1033 | </p> |
---|
1034 | <h2 id="rfc.section.4.3"><a href="#rfc.section.4.3">4.3</a> <a id="validation.model" href="#validation.model">Validation</a></h2> |
---|
1035 | <p id="rfc.section.4.3.p.1">When a cache has one or more stored responses for a requested URI, but cannot serve any of them (e.g., because they are not |
---|
1036 | fresh, or one cannot be selected; see <a href="#caching.negotiated.responses" title="Calculating Secondary Keys with Vary">Section 4.1</a>), it can use the conditional request mechanism <a href="#Part4" id="rfc.xref.Part4.2"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Conditional Requests">[Part4]</cite></a> in the forwarded request to give the next inbound server an opportunity to select a valid stored response to use, updating |
---|
1037 | the stored metadata in the process, or to replace the stored response(s) with a new response. This process is known as "validating" |
---|
1038 | or "revalidating" the stored response. |
---|
1039 | </p> |
---|
1040 | <div id="rfc.iref.v.1"></div> |
---|
1041 | <h3 id="rfc.section.4.3.1"><a href="#rfc.section.4.3.1">4.3.1</a> <a id="validation.sent" href="#validation.sent">Sending a Validation Request</a></h3> |
---|
1042 | <p id="rfc.section.4.3.1.p.1">When sending a conditional request for cache validation, a cache sends one or more precondition header fields containing <dfn>validator</dfn> metadata from its stored response(s), which is then compared by recipients to determine whether a stored response is equivalent |
---|
1043 | to a current representation of the resource. |
---|
1044 | </p> |
---|
1045 | <p id="rfc.section.4.3.1.p.2">One such validator is the timestamp given in a <a href="p4-conditional.html#header.last-modified" class="smpl">Last-Modified</a> header field (<a href="p4-conditional.html#header.last-modified" title="Last-Modified">Section 2.2</a> of <a href="#Part4" id="rfc.xref.Part4.3"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Conditional Requests">[Part4]</cite></a>), which can be used in an <a href="p4-conditional.html#header.if-modified-since" class="smpl">If-Modified-Since</a> header field for response validation, or in an <a href="p4-conditional.html#header.if-unmodified-since" class="smpl">If-Unmodified-Since</a> or <a href="p5-range.html#header.if-range" class="smpl">If-Range</a> header field for representation selection (i.e., the client is referring specifically to a previously obtained representation |
---|
1046 | with that timestamp). |
---|
1047 | </p> |
---|
1048 | <p id="rfc.section.4.3.1.p.3">Another validator is the entity-tag given in an <a href="p4-conditional.html#header.etag" class="smpl">ETag</a> header field (<a href="p4-conditional.html#header.etag" title="ETag">Section 2.3</a> of <a href="#Part4" id="rfc.xref.Part4.4"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Conditional Requests">[Part4]</cite></a>). One or more entity-tags, indicating one or more stored responses, can be used in an <a href="p4-conditional.html#header.if-none-match" class="smpl">If-None-Match</a> header field for response validation, or in an <a href="p4-conditional.html#header.if-match" class="smpl">If-Match</a> or <a href="p5-range.html#header.if-range" class="smpl">If-Range</a> header field for representation selection (i.e., the client is referring specifically to one or more previously obtained representations |
---|
1049 | with the listed entity-tags). |
---|
1050 | </p> |
---|
1051 | <h3 id="rfc.section.4.3.2"><a href="#rfc.section.4.3.2">4.3.2</a> <a id="validation.received" href="#validation.received">Handling a Received Validation Request</a></h3> |
---|
1052 | <p id="rfc.section.4.3.2.p.1">Each client in the request chain may have its own cache, so it is common for a cache at an intermediary to receive conditional |
---|
1053 | requests from other (outbound) caches. Likewise, some user agents make use of conditional requests to limit data transfers |
---|
1054 | to recently modified representations or to complete the transfer of a partially retrieved representation. |
---|
1055 | </p> |
---|
1056 | <p id="rfc.section.4.3.2.p.2">If a cache receives a request that can be satisfied by reusing one of its stored <a href="p2-semantics.html#status.200" class="smpl">200 (OK)</a> or <a href="p5-range.html#status.206" class="smpl">206 (Partial Content)</a> responses, the cache <em class="bcp14">SHOULD</em> evaluate any applicable conditional header field preconditions received in that request with respect to the corresponding |
---|
1057 | validators contained within the selected response. A cache <em class="bcp14">MUST NOT</em> evaluate conditional header fields that are only applicable to an origin server, found in a request with semantics that cannot |
---|
1058 | be satisfied with a cached response, or applied to a target resource for which it has no stored responses; such preconditions |
---|
1059 | are likely intended for some other (inbound) server. |
---|
1060 | </p> |
---|
1061 | <p id="rfc.section.4.3.2.p.3">The proper evaluation of conditional requests by a cache depends on the received precondition header fields and their precedence, |
---|
1062 | as defined in <a href="p4-conditional.html#precedence" title="Precedence">Section 6</a> of <a href="#Part4" id="rfc.xref.Part4.5"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Conditional Requests">[Part4]</cite></a>. The <a href="p4-conditional.html#header.if-match" class="smpl">If-Match</a> and <a href="p4-conditional.html#header.if-unmodified-since" class="smpl">If-Unmodified-Since</a> conditional header fields are not applicable to a cache. |
---|
1063 | </p> |
---|
1064 | <p id="rfc.section.4.3.2.p.4">A request containing an <a href="p4-conditional.html#header.if-none-match" class="smpl">If-None-Match</a> header field (<a href="p4-conditional.html#header.if-none-match" title="If-None-Match">Section 3.2</a> of <a href="#Part4" id="rfc.xref.Part4.6"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Conditional Requests">[Part4]</cite></a>) indicates that the client wants to validate one or more of its own stored responses in comparison to whichever stored response |
---|
1065 | is selected by the cache. If the field-value is "*", or if the field-value is a list of entity-tags and at least one of them |
---|
1066 | match the entity-tag of the selected stored response, a cache recipient <em class="bcp14">SHOULD</em> generate a <a href="p4-conditional.html#status.304" class="smpl">304 (Not Modified)</a> response (using the metadata of the selected stored response) instead of sending that stored response. |
---|
1067 | </p> |
---|
1068 | <p id="rfc.section.4.3.2.p.5">When a cache decides to revalidate its own stored responses for a request that contains an <a href="p4-conditional.html#header.if-none-match" class="smpl">If-None-Match</a> list of entity-tags, the cache <em class="bcp14">MAY</em> combine the received list with a list of entity-tags from its own stored set of responses (fresh or stale) and send the union |
---|
1069 | of the two lists as a replacement <a href="p4-conditional.html#header.if-none-match" class="smpl">If-None-Match</a> header field value in the forwarded request. If a stored response contains only partial content, the cache <em class="bcp14">MUST NOT</em> include its entity-tag in the union unless the request is for a range that would be fully satisfied by that partial stored |
---|
1070 | response. If the response to the forwarded request is <a href="p4-conditional.html#status.304" class="smpl">304 (Not Modified)</a> and has an ETag header field value with an entity-tag that is not in the client's list, the cache <em class="bcp14">MUST</em> generate a <a href="p2-semantics.html#status.200" class="smpl">200 (OK)</a> response for the client by reusing its corresponding stored response, as updated by the 304 response metadata (<a href="#freshening.responses" title="Freshening Stored Responses upon Validation">Section 4.3.4</a>). |
---|
1071 | </p> |
---|
1072 | <p id="rfc.section.4.3.2.p.6">If an <a href="p4-conditional.html#header.if-none-match" class="smpl">If-None-Match</a> header field is not present, a request containing an <a href="p4-conditional.html#header.if-modified-since" class="smpl">If-Modified-Since</a> header field (<a href="p4-conditional.html#header.if-modified-since" title="If-Modified-Since">Section 3.3</a> of <a href="#Part4" id="rfc.xref.Part4.7"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Conditional Requests">[Part4]</cite></a>) indicates that the client wants to validate one or more of its own stored responses by modification date. A cache recipient <em class="bcp14">SHOULD</em> generate a <a href="p4-conditional.html#status.304" class="smpl">304 (Not Modified)</a> response (using the metadata of the selected stored response) if one of the following cases is true: 1) the selected stored |
---|
1073 | response has a <a href="p4-conditional.html#header.last-modified" class="smpl">Last-Modified</a> field-value that is earlier than or equal to the conditional timestamp; 2) no <a href="p4-conditional.html#header.last-modified" class="smpl">Last-Modified</a> field is present in the selected stored response, but it has a <a href="p2-semantics.html#header.date" class="smpl">Date</a> field-value that is earlier than or equal to the conditional timestamp; or, 3) neither <a href="p4-conditional.html#header.last-modified" class="smpl">Last-Modified</a> nor <a href="p2-semantics.html#header.date" class="smpl">Date</a> is present in the selected stored response, but the cache recorded it as having been received at a time earlier than or equal |
---|
1074 | to the conditional timestamp. |
---|
1075 | </p> |
---|
1076 | <p id="rfc.section.4.3.2.p.7">A cache that implements partial responses to range requests, as defined in <a href="#Part5" id="rfc.xref.Part5.4"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Range Requests">[Part5]</cite></a>, also needs to evaluate a received <a href="p5-range.html#header.if-range" class="smpl">If-Range</a> header field (<a href="p5-range.html#header.if-range" title="If-Range">Section 3.2</a> of <a href="#Part5" id="rfc.xref.Part5.5"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Range Requests">[Part5]</cite></a>) with respect to its selected stored response. |
---|
1077 | </p> |
---|
1078 | <h3 id="rfc.section.4.3.3"><a href="#rfc.section.4.3.3">4.3.3</a> <a id="validation.response" href="#validation.response">Handling a Validation Response</a></h3> |
---|
1079 | <p id="rfc.section.4.3.3.p.1">Cache handling of a response to a conditional request is dependent upon its status code:</p> |
---|
1080 | <p id="rfc.section.4.3.3.p.2"></p> |
---|
1081 | <ul> |
---|
1082 | <li>A <a href="p4-conditional.html#status.304" class="smpl">304 (Not Modified)</a> response status code indicates that the stored response can be updated and reused; see <a href="#freshening.responses" title="Freshening Stored Responses upon Validation">Section 4.3.4</a>. |
---|
1083 | </li> |
---|
1084 | <li>A full response (i.e., one with a payload body) indicates that none of the stored responses nominated in the conditional request |
---|
1085 | is suitable. Instead, the cache <em class="bcp14">MUST</em> use the full response to satisfy the request and <em class="bcp14">MAY</em> replace the stored response(s). |
---|
1086 | </li> |
---|
1087 | <li>However, if a cache receives a <a href="p2-semantics.html#status.5xx" class="smpl">5xx (Server Error)</a> response while attempting to validate a response, it can either forward this response to the requesting client, or act as |
---|
1088 | if the server failed to respond. In the latter case, the cache <em class="bcp14">MAY</em> send a previously stored response (see <a href="#serving.stale.responses" title="Serving Stale Responses">Section 4.2.4</a>). |
---|
1089 | </li> |
---|
1090 | </ul> |
---|
1091 | <h3 id="rfc.section.4.3.4"><a href="#rfc.section.4.3.4">4.3.4</a> <a id="freshening.responses" href="#freshening.responses">Freshening Stored Responses upon Validation</a></h3> |
---|
1092 | <p id="rfc.section.4.3.4.p.1">When a cache receives a <a href="p4-conditional.html#status.304" class="smpl">304 (Not Modified)</a> response and already has one or more stored <a href="p2-semantics.html#status.200" class="smpl">200 (OK)</a> responses for the same cache key, the cache needs to identify which of the stored responses are updated by this new response |
---|
1093 | and then update the stored response(s) with the new information provided in the <a href="p4-conditional.html#status.304" class="smpl">304</a> response. |
---|
1094 | </p> |
---|
1095 | <div id="rfc.iref.s.3"></div> |
---|
1096 | <p id="rfc.section.4.3.4.p.2">The stored response to update is identified by using the first match (if any) of: </p> |
---|
1097 | <ul> |
---|
1098 | <li>If the new response contains a <dfn>strong validator</dfn> (see <a href="p4-conditional.html#weak.and.strong.validators" title="Weak versus Strong">Section 2.1</a> of <a href="#Part4" id="rfc.xref.Part4.8"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Conditional Requests">[Part4]</cite></a>), then that strong validator identifies the selected representation for update. All of the stored responses with the same |
---|
1099 | strong validator are selected. If none of the stored responses contain the same strong validator, then the cache <em class="bcp14">MUST NOT</em> use the new response to update any stored responses. |
---|
1100 | </li> |
---|
1101 | <li>If the new response contains a weak validator and that validator corresponds to one of the cache's stored responses, then |
---|
1102 | the most recent of those matching stored responses is selected for update. |
---|
1103 | </li> |
---|
1104 | <li>If the new response does not include any form of validator (such as in the case where a client generates an If-Modified-Since |
---|
1105 | request from a source other than the Last-Modified response header field), and there is only one stored response, and that |
---|
1106 | stored response also lacks a validator, then that stored response is selected for update. |
---|
1107 | </li> |
---|
1108 | </ul> |
---|
1109 | <p id="rfc.section.4.3.4.p.3">If a stored response is selected for update, the cache <em class="bcp14">MUST</em>: |
---|
1110 | </p> |
---|
1111 | <ul> |
---|
1112 | <li>delete any <a href="#header.warning" class="smpl">Warning</a> header fields in the stored response with warn-code 1xx (see <a href="#header.warning" id="rfc.xref.header.warning.2" title="Warning">Section 5.5</a>); |
---|
1113 | </li> |
---|
1114 | <li>retain any <a href="#header.warning" class="smpl">Warning</a> header fields in the stored response with warn-code 2xx; and, |
---|
1115 | </li> |
---|
1116 | <li>use other header fields provided in the <a href="p4-conditional.html#status.304" class="smpl">304 (Not Modified)</a> response to replace all instances of the corresponding header fields in the stored response. |
---|
1117 | </li> |
---|
1118 | </ul> |
---|
1119 | <h3 id="rfc.section.4.3.5"><a href="#rfc.section.4.3.5">4.3.5</a> <a id="head.effects" href="#head.effects">Freshening Responses via HEAD</a></h3> |
---|
1120 | <p id="rfc.section.4.3.5.p.1">A response to the HEAD method is identical to what an equivalent request made with a GET would have been, except it lacks |
---|
1121 | a body. This property of HEAD responses can be used to invalidate or update a cached GET response if the more efficient conditional |
---|
1122 | GET request mechanism is not available (due to no validators being present in the stored response) or if transmission of the |
---|
1123 | representation body is not desired even if it has changed. |
---|
1124 | </p> |
---|
1125 | <p id="rfc.section.4.3.5.p.2">When a cache makes an inbound HEAD request for a given request target and receives a <a href="p2-semantics.html#status.200" class="smpl">200 (OK)</a> response, the cache <em class="bcp14">SHOULD</em> update or invalidate each of its stored GET responses that could have been selected for that request (see <a href="#caching.negotiated.responses" title="Calculating Secondary Keys with Vary">Section 4.1</a>). |
---|
1126 | </p> |
---|
1127 | <p id="rfc.section.4.3.5.p.3">For each of the stored responses that could have been selected, if the stored response and HEAD response have matching values |
---|
1128 | for any received validator fields (<a href="p4-conditional.html#header.etag" class="smpl">ETag</a> and <a href="p4-conditional.html#header.last-modified" class="smpl">Last-Modified</a>) and, if the HEAD response has a <a href="p1-messaging.html#header.content-length" class="smpl">Content-Length</a> header field, the value of <a href="p1-messaging.html#header.content-length" class="smpl">Content-Length</a> matches that of the stored response, the cache <em class="bcp14">SHOULD</em> update the stored response a described below; otherwise, the cache <em class="bcp14">SHOULD</em> consider the stored response to be stale. |
---|
1129 | </p> |
---|
1130 | <p id="rfc.section.4.3.5.p.4">If a cache updates a stored response with the metadata provided in a HEAD response, the cache <em class="bcp14">MUST</em>: |
---|
1131 | </p> |
---|
1132 | <ul> |
---|
1133 | <li>delete any <a href="#header.warning" class="smpl">Warning</a> header fields in the stored response with warn-code 1xx (see <a href="#header.warning" id="rfc.xref.header.warning.3" title="Warning">Section 5.5</a>); |
---|
1134 | </li> |
---|
1135 | <li>retain any <a href="#header.warning" class="smpl">Warning</a> header fields in the stored response with warn-code 2xx; and, |
---|
1136 | </li> |
---|
1137 | <li>use other header fields provided in the HEAD response to replace all instances of the corresponding header fields in the stored |
---|
1138 | response and append new header fields to the stored response's header section unless otherwise restricted by the <a href="#header.cache-control" class="smpl">Cache-Control</a> header field. |
---|
1139 | </li> |
---|
1140 | </ul> |
---|
1141 | <h2 id="rfc.section.4.4"><a href="#rfc.section.4.4">4.4</a> <a id="invalidation" href="#invalidation">Invalidation</a></h2> |
---|
1142 | <p id="rfc.section.4.4.p.1">Because unsafe request methods (<a href="p2-semantics.html#safe.methods" title="Safe Methods">Section 4.2.1</a> of <a href="#Part2" id="rfc.xref.Part2.6"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content">[Part2]</cite></a>) such as PUT, POST or DELETE have the potential for changing state on the origin server, intervening caches can use them |
---|
1143 | to keep their contents up-to-date. |
---|
1144 | </p> |
---|
1145 | <p id="rfc.section.4.4.p.2">A cache <em class="bcp14">MUST</em> invalidate the effective Request URI (<a href="p1-messaging.html#effective.request.uri" title="Effective Request URI">Section 5.5</a> of <a href="#Part1" id="rfc.xref.Part1.6"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing">[Part1]</cite></a>) as well as the URI(s) in the <a href="p2-semantics.html#header.location" class="smpl">Location</a> and <a href="p2-semantics.html#header.content-location" class="smpl">Content-Location</a> response header fields (if present) when a non-error status code is received in response to an unsafe request method. |
---|
1146 | </p> |
---|
1147 | <p id="rfc.section.4.4.p.3">However, a cache <em class="bcp14">MUST NOT</em> invalidate a URI from a <a href="p2-semantics.html#header.location" class="smpl">Location</a> or <a href="p2-semantics.html#header.content-location" class="smpl">Content-Location</a> response header field if the host part of that URI differs from the host part in the effective request URI (<a href="p1-messaging.html#effective.request.uri" title="Effective Request URI">Section 5.5</a> of <a href="#Part1" id="rfc.xref.Part1.7"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing">[Part1]</cite></a>). This helps prevent denial of service attacks. |
---|
1148 | </p> |
---|
1149 | <p id="rfc.section.4.4.p.4">A cache <em class="bcp14">MUST</em> invalidate the effective request URI (<a href="p1-messaging.html#effective.request.uri" title="Effective Request URI">Section 5.5</a> of <a href="#Part1" id="rfc.xref.Part1.8"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing">[Part1]</cite></a>) when it receives a non-error response to a request with a method whose safety is unknown. |
---|
1150 | </p> |
---|
1151 | <p id="rfc.section.4.4.p.5">Here, a "non-error response" is one with a <a href="p2-semantics.html#status.2xx" class="smpl">2xx (Successful)</a> or <a href="p2-semantics.html#status.3xx" class="smpl">3xx (Redirection)</a> status code. "Invalidate" means that the cache will either remove all stored responses related to the effective request URI, |
---|
1152 | or will mark these as "invalid" and in need of a mandatory validation before they can be sent in response to a subsequent |
---|
1153 | request. |
---|
1154 | </p> |
---|
1155 | <p id="rfc.section.4.4.p.6">Note that this does not guarantee that all appropriate responses are invalidated. For example, a state-changing request might |
---|
1156 | invalidate responses in the caches it travels through, but relevant responses still might be stored in other caches that it |
---|
1157 | has not. |
---|
1158 | </p> |
---|
1159 | <h1 id="rfc.section.5"><a href="#rfc.section.5">5.</a> <a id="header.field.definitions" href="#header.field.definitions">Header Field Definitions</a></h1> |
---|
1160 | <p id="rfc.section.5.p.1">This section defines the syntax and semantics of HTTP/1.1 header fields related to caching.</p> |
---|
1161 | <div id="rfc.iref.a.2"></div> |
---|
1162 | <h2 id="rfc.section.5.1"><a href="#rfc.section.5.1">5.1</a> <a id="header.age" href="#header.age">Age</a></h2> |
---|
1163 | <p id="rfc.section.5.1.p.1">The "Age" header field conveys the sender's estimate of the amount of time since the response was generated or successfully |
---|
1164 | validated at the origin server. Age values are calculated as specified in <a href="#age.calculations" title="Calculating Age">Section 4.2.3</a>. |
---|
1165 | </p> |
---|
1166 | <div id="rfc.figure.u.6"></div><pre class="inline"><span id="rfc.iref.g.2"></span> <a href="#header.age" class="smpl">Age</a> = <a href="#delta-seconds" class="smpl">delta-seconds</a> |
---|
1167 | </pre><p id="rfc.section.5.1.p.3">The Age field-value is a non-negative integer, representing time in seconds (see <a href="#delta-seconds" title="Delta Seconds">Section 1.2.1</a>). |
---|
1168 | </p> |
---|
1169 | <p id="rfc.section.5.1.p.4">The presence of an Age header field implies that the response was not generated or validated by the origin server for this |
---|
1170 | request. However, lack of an Age header field does not imply the origin was contacted, since the response might have been |
---|
1171 | received from an HTTP/1.0 cache that does not implement Age. |
---|
1172 | </p> |
---|
1173 | <div id="rfc.iref.c.5"></div> |
---|
1174 | <h2 id="rfc.section.5.2"><a href="#rfc.section.5.2">5.2</a> <a id="header.cache-control" href="#header.cache-control">Cache-Control</a></h2> |
---|
1175 | <p id="rfc.section.5.2.p.1">The "Cache-Control" header field is used to specify directives for caches along the request/response chain. Such cache directives |
---|
1176 | are unidirectional in that the presence of a directive in a request does not imply that the same directive is to be given |
---|
1177 | in the response. |
---|
1178 | </p> |
---|
1179 | <p id="rfc.section.5.2.p.2">A cache <em class="bcp14">MUST</em> obey the requirements of the Cache-Control directives defined in this section. See <a href="#cache.control.extensions" title="Cache Control Extensions">Section 5.2.3</a> for information about how Cache-Control directives defined elsewhere are handled. |
---|
1180 | </p> |
---|
1181 | <div class="note" id="rfc.section.5.2.p.3"> |
---|
1182 | <p><b>Note:</b> Some HTTP/1.0 caches might not implement Cache-Control. |
---|
1183 | </p> |
---|
1184 | </div> |
---|
1185 | <p id="rfc.section.5.2.p.4">A proxy, whether or not it implements a cache, <em class="bcp14">MUST</em> pass cache directives through in forwarded messages, regardless of their significance to that application, since the directives |
---|
1186 | might be applicable to all recipients along the request/response chain. It is not possible to target a directive to a specific |
---|
1187 | cache. |
---|
1188 | </p> |
---|
1189 | <p id="rfc.section.5.2.p.5">Cache directives are identified by a token, to be compared case-insensitively, and have an optional argument, that can use |
---|
1190 | both token and quoted-string syntax. For the directives defined below that define arguments, recipients ought to accept both |
---|
1191 | forms, even if one is documented to be preferred. For any directive not defined by this specification, a recipient <em class="bcp14">MUST</em> accept both forms. |
---|
1192 | </p> |
---|
1193 | <div id="rfc.figure.u.7"></div><pre class="inline"><span id="rfc.iref.g.3"></span><span id="rfc.iref.g.4"></span> <a href="#header.cache-control" class="smpl">Cache-Control</a> = 1#<a href="#header.cache-control" class="smpl">cache-directive</a> |
---|
1194 | |
---|
1195 | <a href="#header.cache-control" class="smpl">cache-directive</a> = <a href="#imported.abnf" class="smpl">token</a> [ "=" ( <a href="#imported.abnf" class="smpl">token</a> / <a href="#imported.abnf" class="smpl">quoted-string</a> ) ] |
---|
1196 | </pre><p id="rfc.section.5.2.p.7">For the cache directives defined below, no argument is defined (nor allowed) unless stated otherwise.</p> |
---|
1197 | <h3 id="rfc.section.5.2.1"><a href="#rfc.section.5.2.1">5.2.1</a> <a id="cache-request-directive" href="#cache-request-directive">Request Cache-Control Directives</a></h3> |
---|
1198 | <div id="rfc.iref.m.1"></div> |
---|
1199 | <h4 id="rfc.section.5.2.1.1"><a href="#rfc.section.5.2.1.1">5.2.1.1</a> <a id="cache-request-directive.max-age" href="#cache-request-directive.max-age">max-age</a></h4> |
---|
1200 | <p id="rfc.section.5.2.1.1.p.1">Argument syntax: </p> |
---|
1201 | <ul class="empty"> |
---|
1202 | <li><a href="#delta-seconds" class="smpl">delta-seconds</a> (see <a href="#delta-seconds" title="Delta Seconds">Section 1.2.1</a>) |
---|
1203 | </li> |
---|
1204 | </ul> |
---|
1205 | <p id="rfc.section.5.2.1.1.p.2">The "max-age" request directive indicates that the client is unwilling to accept a response whose age is greater than the |
---|
1206 | specified number of seconds. Unless the max-stale request directive is also present, the client is not willing to accept a |
---|
1207 | stale response. |
---|
1208 | </p> |
---|
1209 | <p id="rfc.section.5.2.1.1.p.3"><b>Note:</b> This directive uses the token form of the argument syntax; e.g., 'max-age=5', not 'max-age="5"'. A sender <em class="bcp14">SHOULD NOT</em> generate the quoted-string form. |
---|
1210 | </p> |
---|
1211 | <div id="rfc.iref.m.2"></div> |
---|
1212 | <h4 id="rfc.section.5.2.1.2"><a href="#rfc.section.5.2.1.2">5.2.1.2</a> <a id="cache-request-directive.max-stale" href="#cache-request-directive.max-stale">max-stale</a></h4> |
---|
1213 | <p id="rfc.section.5.2.1.2.p.1">Argument syntax: </p> |
---|
1214 | <ul class="empty"> |
---|
1215 | <li><a href="#delta-seconds" class="smpl">delta-seconds</a> (see <a href="#delta-seconds" title="Delta Seconds">Section 1.2.1</a>) |
---|
1216 | </li> |
---|
1217 | </ul> |
---|
1218 | <p id="rfc.section.5.2.1.2.p.2">The "max-stale" request directive indicates that the client is willing to accept a response that has exceeded its freshness |
---|
1219 | lifetime. If max-stale is assigned a value, then the client is willing to accept a response that has exceeded its freshness |
---|
1220 | lifetime by no more than the specified number of seconds. If no value is assigned to max-stale, then the client is willing |
---|
1221 | to accept a stale response of any age. |
---|
1222 | </p> |
---|
1223 | <p id="rfc.section.5.2.1.2.p.3"><b>Note:</b> This directive uses the token form of the argument syntax; e.g., 'max-stale=10', not 'max-stale="10"'. A sender <em class="bcp14">SHOULD NOT</em> generate the quoted-string form. |
---|
1224 | </p> |
---|
1225 | <div id="rfc.iref.m.3"></div> |
---|
1226 | <h4 id="rfc.section.5.2.1.3"><a href="#rfc.section.5.2.1.3">5.2.1.3</a> <a id="cache-request-directive.min-fresh" href="#cache-request-directive.min-fresh">min-fresh</a></h4> |
---|
1227 | <p id="rfc.section.5.2.1.3.p.1">Argument syntax: </p> |
---|
1228 | <ul class="empty"> |
---|
1229 | <li><a href="#delta-seconds" class="smpl">delta-seconds</a> (see <a href="#delta-seconds" title="Delta Seconds">Section 1.2.1</a>) |
---|
1230 | </li> |
---|
1231 | </ul> |
---|
1232 | <p id="rfc.section.5.2.1.3.p.2">The "min-fresh" request directive indicates that the client is willing to accept a response whose freshness lifetime is no |
---|
1233 | less than its current age plus the specified time in seconds. That is, the client wants a response that will still be fresh |
---|
1234 | for at least the specified number of seconds. |
---|
1235 | </p> |
---|
1236 | <p id="rfc.section.5.2.1.3.p.3"><b>Note:</b> This directive uses the token form of the argument syntax; e.g., 'min-fresh=20', not 'min-fresh="20"'. A sender <em class="bcp14">SHOULD NOT</em> generate the quoted-string form. |
---|
1237 | </p> |
---|
1238 | <div id="rfc.iref.n.1"></div> |
---|
1239 | <h4 id="rfc.section.5.2.1.4"><a href="#rfc.section.5.2.1.4">5.2.1.4</a> <a id="cache-request-directive.no-cache" href="#cache-request-directive.no-cache">no-cache</a></h4> |
---|
1240 | <p id="rfc.section.5.2.1.4.p.1">The "no-cache" request directive indicates that a cache <em class="bcp14">MUST NOT</em> use a stored response to satisfy the request without successful validation on the origin server. |
---|
1241 | </p> |
---|
1242 | <div id="rfc.iref.n.2"></div> |
---|
1243 | <h4 id="rfc.section.5.2.1.5"><a href="#rfc.section.5.2.1.5">5.2.1.5</a> <a id="cache-request-directive.no-store" href="#cache-request-directive.no-store">no-store</a></h4> |
---|
1244 | <p id="rfc.section.5.2.1.5.p.1">The "no-store" request directive indicates that a cache <em class="bcp14">MUST NOT</em> store any part of either this request or any response to it. This directive applies to both private and shared caches. "<em class="bcp14">MUST NOT</em> store" in this context means that the cache <em class="bcp14">MUST NOT</em> intentionally store the information in non-volatile storage, and <em class="bcp14">MUST</em> make a best-effort attempt to remove the information from volatile storage as promptly as possible after forwarding it. |
---|
1245 | </p> |
---|
1246 | <p id="rfc.section.5.2.1.5.p.2">This directive is NOT a reliable or sufficient mechanism for ensuring privacy. In particular, malicious or compromised caches |
---|
1247 | might not recognize or obey this directive, and communications networks might be vulnerable to eavesdropping. |
---|
1248 | </p> |
---|
1249 | <p id="rfc.section.5.2.1.5.p.3">Note that if a request containing this directive is satisfied from a cache, the no-store request directive does not apply |
---|
1250 | to the already stored response. |
---|
1251 | </p> |
---|
1252 | <div id="rfc.iref.n.3"></div> |
---|
1253 | <h4 id="rfc.section.5.2.1.6"><a href="#rfc.section.5.2.1.6">5.2.1.6</a> <a id="cache-request-directive.no-transform" href="#cache-request-directive.no-transform">no-transform</a></h4> |
---|
1254 | <p id="rfc.section.5.2.1.6.p.1">The "no-transform" request directive indicates that an intermediary (whether or not it implements a cache) <em class="bcp14">MUST NOT</em> transform the payload, as defined in <a href="p1-messaging.html#message.transformations" title="Transformations">Section 5.7.2</a> of <a href="#Part1" id="rfc.xref.Part1.9"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing">[Part1]</cite></a>. |
---|
1255 | </p> |
---|
1256 | <div id="rfc.iref.o.1"></div> |
---|
1257 | <h4 id="rfc.section.5.2.1.7"><a href="#rfc.section.5.2.1.7">5.2.1.7</a> <a id="cache-request-directive.only-if-cached" href="#cache-request-directive.only-if-cached">only-if-cached</a></h4> |
---|
1258 | <p id="rfc.section.5.2.1.7.p.1">The "only-if-cached" request directive indicates that the client only wishes to obtain a stored response. If it receives this |
---|
1259 | directive, a cache <em class="bcp14">SHOULD</em> either respond using a stored response that is consistent with the other constraints of the request, or respond with a <a href="p2-semantics.html#status.504" class="smpl">504 (Gateway |
---|
1260 | Timeout)</a> status code. If a group of caches is being operated as a unified system with good internal connectivity, a member cache <em class="bcp14">MAY</em> forward such a request within that group of caches. |
---|
1261 | </p> |
---|
1262 | <h3 id="rfc.section.5.2.2"><a href="#rfc.section.5.2.2">5.2.2</a> <a id="cache-response-directive" href="#cache-response-directive">Response Cache-Control Directives</a></h3> |
---|
1263 | <div id="rfc.iref.m.4"></div> |
---|
1264 | <h4 id="rfc.section.5.2.2.1"><a href="#rfc.section.5.2.2.1">5.2.2.1</a> <a id="cache-response-directive.must-revalidate" href="#cache-response-directive.must-revalidate">must-revalidate</a></h4> |
---|
1265 | <p id="rfc.section.5.2.2.1.p.1">The "must-revalidate" response directive indicates that once it has become stale, a cache <em class="bcp14">MUST NOT</em> use the response to satisfy subsequent requests without successful validation on the origin server. |
---|
1266 | </p> |
---|
1267 | <p id="rfc.section.5.2.2.1.p.2">The must-revalidate directive is necessary to support reliable operation for certain protocol features. In all circumstances |
---|
1268 | a cache <em class="bcp14">MUST</em> obey the must-revalidate directive; in particular, if a cache cannot reach the origin server for any reason, it <em class="bcp14">MUST</em> generate a <a href="p2-semantics.html#status.504" class="smpl">504 (Gateway Timeout)</a> response. |
---|
1269 | </p> |
---|
1270 | <p id="rfc.section.5.2.2.1.p.3">The must-revalidate directive ought to be used by servers if and only if failure to validate a request on the representation |
---|
1271 | could result in incorrect operation, such as a silently unexecuted financial transaction. |
---|
1272 | </p> |
---|
1273 | <div id="rfc.iref.n.4"></div> |
---|
1274 | <h4 id="rfc.section.5.2.2.2"><a href="#rfc.section.5.2.2.2">5.2.2.2</a> <a id="cache-response-directive.no-cache" href="#cache-response-directive.no-cache">no-cache</a></h4> |
---|
1275 | <p id="rfc.section.5.2.2.2.p.1">Argument syntax: </p> |
---|
1276 | <ul class="empty"> |
---|
1277 | <li>#<a href="#imported.abnf" class="smpl">field-name</a> |
---|
1278 | </li> |
---|
1279 | </ul> |
---|
1280 | <p id="rfc.section.5.2.2.2.p.2">The "no-cache" response directive indicates that the response <em class="bcp14">MUST NOT</em> be used to satisfy a subsequent request without successful validation on the origin server. This allows an origin server to |
---|
1281 | prevent a cache from using it to satisfy a request without contacting it, even by caches that have been configured to send |
---|
1282 | stale responses. |
---|
1283 | </p> |
---|
1284 | <p id="rfc.section.5.2.2.2.p.3">If the no-cache response directive specifies one or more field-names, then a cache <em class="bcp14">MAY</em> use the response to satisfy a subsequent request, subject to any other restrictions on caching. However, any header fields |
---|
1285 | in the response that have the field-name(s) listed <em class="bcp14">MUST NOT</em> be sent in the response to a subsequent request without successful revalidation with the origin server. This allows an origin |
---|
1286 | server to prevent the re-use of certain header fields in a response, while still allowing caching of the rest of the response. |
---|
1287 | </p> |
---|
1288 | <p id="rfc.section.5.2.2.2.p.4">The field-names given are not limited to the set of header fields defined by this specification. Field names are case-insensitive.</p> |
---|
1289 | <p id="rfc.section.5.2.2.2.p.5"><b>Note:</b> Although it has been back-ported to many implementations, some HTTP/1.0 caches will not recognize or obey this directive. |
---|
1290 | Also, no-cache response directives with field-names are often handled by caches as if an unqualified no-cache directive was |
---|
1291 | received; i.e., the special handling for the qualified form is not widely implemented. |
---|
1292 | </p> |
---|
1293 | <p id="rfc.section.5.2.2.2.p.6"><b>Note:</b> This directive uses the quoted-string form of the argument syntax. A sender <em class="bcp14">SHOULD NOT</em> generate the token form (even if quoting appears not to be needed for single-entry lists). |
---|
1294 | </p> |
---|
1295 | <div id="rfc.iref.n.5"></div> |
---|
1296 | <h4 id="rfc.section.5.2.2.3"><a href="#rfc.section.5.2.2.3">5.2.2.3</a> <a id="cache-response-directive.no-store" href="#cache-response-directive.no-store">no-store</a></h4> |
---|
1297 | <p id="rfc.section.5.2.2.3.p.1">The "no-store" response directive indicates that a cache <em class="bcp14">MUST NOT</em> store any part of either the immediate request or response. This directive applies to both private and shared caches. "<em class="bcp14">MUST NOT</em> store" in this context means that the cache <em class="bcp14">MUST NOT</em> intentionally store the information in non-volatile storage, and <em class="bcp14">MUST</em> make a best-effort attempt to remove the information from volatile storage as promptly as possible after forwarding it. |
---|
1298 | </p> |
---|
1299 | <p id="rfc.section.5.2.2.3.p.2">This directive is NOT a reliable or sufficient mechanism for ensuring privacy. In particular, malicious or compromised caches |
---|
1300 | might not recognize or obey this directive, and communications networks might be vulnerable to eavesdropping. |
---|
1301 | </p> |
---|
1302 | <div id="rfc.iref.n.6"></div> |
---|
1303 | <h4 id="rfc.section.5.2.2.4"><a href="#rfc.section.5.2.2.4">5.2.2.4</a> <a id="cache-response-directive.no-transform" href="#cache-response-directive.no-transform">no-transform</a></h4> |
---|
1304 | <p id="rfc.section.5.2.2.4.p.1">The "no-transform" response directive indicates that an intermediary (regardless of whether it implements a cache) <em class="bcp14">MUST NOT</em> transform the payload, as defined in <a href="p1-messaging.html#message.transformations" title="Transformations">Section 5.7.2</a> of <a href="#Part1" id="rfc.xref.Part1.10"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing">[Part1]</cite></a>. |
---|
1305 | </p> |
---|
1306 | <div id="rfc.iref.p.2"></div> |
---|
1307 | <h4 id="rfc.section.5.2.2.5"><a href="#rfc.section.5.2.2.5">5.2.2.5</a> <a id="cache-response-directive.public" href="#cache-response-directive.public">public</a></h4> |
---|
1308 | <p id="rfc.section.5.2.2.5.p.1">The "public" response directive indicates that any cache <em class="bcp14">MAY</em> store the response, even if the response would normally be non-cacheable or cacheable only within a private cache. (See <a href="#caching.authenticated.responses" title="Storing Responses to Authenticated Requests">Section 3.2</a> for additional details related to the use of public in response to a request containing <a href="p7-auth.html#header.authorization" class="smpl">Authorization</a>, and <a href="#response.cacheability" title="Storing Responses in Caches">Section 3</a> for details of how public affects responses that would normally not be stored, due to their status codes not being defined |
---|
1309 | as cacheable.) |
---|
1310 | </p> |
---|
1311 | <div id="rfc.iref.p.3"></div> |
---|
1312 | <h4 id="rfc.section.5.2.2.6"><a href="#rfc.section.5.2.2.6">5.2.2.6</a> <a id="cache-response-directive.private" href="#cache-response-directive.private">private</a></h4> |
---|
1313 | <p id="rfc.section.5.2.2.6.p.1">Argument syntax: </p> |
---|
1314 | <ul class="empty"> |
---|
1315 | <li>#<a href="#imported.abnf" class="smpl">field-name</a> |
---|
1316 | </li> |
---|
1317 | </ul> |
---|
1318 | <p id="rfc.section.5.2.2.6.p.2">The "private" response directive indicates that the response message is intended for a single user and <em class="bcp14">MUST NOT</em> be stored by a shared cache. A private cache <em class="bcp14">MAY</em> store the response and reuse it for later requests, even if the response would normally be non-cacheable. |
---|
1319 | </p> |
---|
1320 | <p id="rfc.section.5.2.2.6.p.3">If the private response directive specifies one or more field-names, this requirement is limited to the field-values associated |
---|
1321 | with the listed response header fields. That is, a shared cache <em class="bcp14">MUST NOT</em> store the specified field-names(s), whereas it <em class="bcp14">MAY</em> store the remainder of the response message. |
---|
1322 | </p> |
---|
1323 | <p id="rfc.section.5.2.2.6.p.4">The field-names given are not limited to the set of header fields defined by this specification. Field names are case-insensitive.</p> |
---|
1324 | <p id="rfc.section.5.2.2.6.p.5"><b>Note:</b> This usage of the word "private" only controls where the response can be stored; it cannot ensure the privacy of the message |
---|
1325 | content. Also, private response directives with field-names are often handled by caches as if an unqualified private directive |
---|
1326 | was received; i.e., the special handling for the qualified form is not widely implemented. |
---|
1327 | </p> |
---|
1328 | <p id="rfc.section.5.2.2.6.p.6"><b>Note:</b> This directive uses the quoted-string form of the argument syntax. A sender <em class="bcp14">SHOULD NOT</em> generate the token form (even if quoting appears not to be needed for single-entry lists). |
---|
1329 | </p> |
---|
1330 | <div id="rfc.iref.p.4"></div> |
---|
1331 | <h4 id="rfc.section.5.2.2.7"><a href="#rfc.section.5.2.2.7">5.2.2.7</a> <a id="cache-response-directive.proxy-revalidate" href="#cache-response-directive.proxy-revalidate">proxy-revalidate</a></h4> |
---|
1332 | <p id="rfc.section.5.2.2.7.p.1">The "proxy-revalidate" response directive has the same meaning as the must-revalidate response directive, except that it does |
---|
1333 | not apply to private caches. |
---|
1334 | </p> |
---|
1335 | <div id="rfc.iref.m.5"></div> |
---|
1336 | <h4 id="rfc.section.5.2.2.8"><a href="#rfc.section.5.2.2.8">5.2.2.8</a> <a id="cache-response-directive.max-age" href="#cache-response-directive.max-age">max-age</a></h4> |
---|
1337 | <p id="rfc.section.5.2.2.8.p.1">Argument syntax: </p> |
---|
1338 | <ul class="empty"> |
---|
1339 | <li><a href="#delta-seconds" class="smpl">delta-seconds</a> (see <a href="#delta-seconds" title="Delta Seconds">Section 1.2.1</a>) |
---|
1340 | </li> |
---|
1341 | </ul> |
---|
1342 | <p id="rfc.section.5.2.2.8.p.2">The "max-age" response directive indicates that the response is to be considered stale after its age is greater than the specified |
---|
1343 | number of seconds. |
---|
1344 | </p> |
---|
1345 | <p id="rfc.section.5.2.2.8.p.3"><b>Note:</b> This directive uses the token form of the argument syntax; e.g., 'max-age=5', not 'max-age="5"'. A sender <em class="bcp14">SHOULD NOT</em> generate the quoted-string form. |
---|
1346 | </p> |
---|
1347 | <div id="rfc.iref.s.4"></div> |
---|
1348 | <h4 id="rfc.section.5.2.2.9"><a href="#rfc.section.5.2.2.9">5.2.2.9</a> <a id="cache-response-directive.s-maxage" href="#cache-response-directive.s-maxage">s-maxage</a></h4> |
---|
1349 | <p id="rfc.section.5.2.2.9.p.1">Argument syntax: </p> |
---|
1350 | <ul class="empty"> |
---|
1351 | <li><a href="#delta-seconds" class="smpl">delta-seconds</a> (see <a href="#delta-seconds" title="Delta Seconds">Section 1.2.1</a>) |
---|
1352 | </li> |
---|
1353 | </ul> |
---|
1354 | <p id="rfc.section.5.2.2.9.p.2">The "s-maxage" response directive indicates that, in shared caches, the maximum age specified by this directive overrides |
---|
1355 | the maximum age specified by either the max-age directive or the <a href="#header.expires" class="smpl">Expires</a> header field. The s-maxage directive also implies the semantics of the proxy-revalidate response directive. |
---|
1356 | </p> |
---|
1357 | <p id="rfc.section.5.2.2.9.p.3"><b>Note:</b> This directive uses the token form of the argument syntax; e.g., 's-maxage=10', not 's-maxage="10"'. A sender <em class="bcp14">SHOULD NOT</em> generate the quoted-string form. |
---|
1358 | </p> |
---|
1359 | <h3 id="rfc.section.5.2.3"><a href="#rfc.section.5.2.3">5.2.3</a> <a id="cache.control.extensions" href="#cache.control.extensions">Cache Control Extensions</a></h3> |
---|
1360 | <p id="rfc.section.5.2.3.p.1">The Cache-Control header field can be extended through the use of one or more cache-extension tokens, each with an optional |
---|
1361 | value. |
---|
1362 | </p> |
---|
1363 | <p id="rfc.section.5.2.3.p.2">Informational extensions (those that do not require a change in cache behavior) can be added without changing the semantics |
---|
1364 | of other directives. Behavioral extensions are designed to work by acting as modifiers to the existing base of cache directives. |
---|
1365 | </p> |
---|
1366 | <p id="rfc.section.5.2.3.p.3">Both the new directive and the standard directive are supplied, such that applications that do not understand the new directive |
---|
1367 | will default to the behavior specified by the standard directive, and those that understand the new directive will recognize |
---|
1368 | it as modifying the requirements associated with the standard directive. In this way, extensions to the cache-control directives |
---|
1369 | can be made without requiring changes to the base protocol. |
---|
1370 | </p> |
---|
1371 | <p id="rfc.section.5.2.3.p.4">This extension mechanism depends on an HTTP cache obeying all of the cache-control directives defined for its native HTTP-version, |
---|
1372 | obeying certain extensions, and ignoring all directives that it does not understand. |
---|
1373 | </p> |
---|
1374 | <p id="rfc.section.5.2.3.p.5">For example, consider a hypothetical new response directive called "community" that acts as a modifier to the private directive. |
---|
1375 | We define this new directive to mean that, in addition to any private cache, any cache that is shared only by members of the |
---|
1376 | community named within its value is allowed to cache the response. An origin server wishing to allow the UCI community to |
---|
1377 | use an otherwise private response in their shared cache(s) could do so by including |
---|
1378 | </p> |
---|
1379 | <div id="rfc.figure.u.8"></div><pre class="text"> Cache-Control: private, community="UCI" |
---|
1380 | </pre><p id="rfc.section.5.2.3.p.7">A cache seeing this header field will act correctly even if the cache does not understand the community cache-extension, since |
---|
1381 | it will also see and understand the private directive and thus default to the safe behavior. |
---|
1382 | </p> |
---|
1383 | <p id="rfc.section.5.2.3.p.8">A cache <em class="bcp14">MUST</em> ignore unrecognized cache directives; it is assumed that any cache directive likely to be unrecognized by an HTTP/1.1 cache |
---|
1384 | will be combined with standard directives (or the response's default cacheability) such that the cache behavior will remain |
---|
1385 | minimally correct even if the cache does not understand the extension(s). |
---|
1386 | </p> |
---|
1387 | <div id="rfc.iref.e.2"></div> |
---|
1388 | <h2 id="rfc.section.5.3"><a href="#rfc.section.5.3">5.3</a> <a id="header.expires" href="#header.expires">Expires</a></h2> |
---|
1389 | <p id="rfc.section.5.3.p.1">The "Expires" header field gives the date/time after which the response is considered stale. See <a href="#expiration.model" title="Freshness">Section 4.2</a> for further discussion of the freshness model. |
---|
1390 | </p> |
---|
1391 | <p id="rfc.section.5.3.p.2">The presence of an Expires field does not imply that the original resource will change or cease to exist at, before, or after |
---|
1392 | that time. |
---|
1393 | </p> |
---|
1394 | <p id="rfc.section.5.3.p.3">The Expires value is an HTTP-date timestamp, as defined in <a href="p2-semantics.html#http.date" title="Date/Time Formats">Section 7.1.1.1</a> of <a href="#Part2" id="rfc.xref.Part2.7"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content">[Part2]</cite></a>. |
---|
1395 | </p> |
---|
1396 | <div id="rfc.figure.u.9"></div><pre class="inline"><span id="rfc.iref.g.5"></span> <a href="#header.expires" class="smpl">Expires</a> = <a href="#imported.abnf" class="smpl">HTTP-date</a> |
---|
1397 | </pre><div id="rfc.figure.u.10"></div> |
---|
1398 | <p>For example</p><pre class="text"> Expires: Thu, 01 Dec 1994 16:00:00 GMT |
---|
1399 | </pre><p id="rfc.section.5.3.p.6">A cache recipient <em class="bcp14">MUST</em> interpret invalid date formats, especially the value "0", as representing a time in the past (i.e., "already expired"). |
---|
1400 | </p> |
---|
1401 | <p id="rfc.section.5.3.p.7">If a response includes a <a href="#header.cache-control" class="smpl">Cache-Control</a> field with the max-age directive (<a href="#cache-response-directive.max-age" title="max-age">Section 5.2.2.8</a>), a recipient <em class="bcp14">MUST</em> ignore the Expires field. Likewise, if a response includes the s-maxage directive (<a href="#cache-response-directive.s-maxage" title="s-maxage">Section 5.2.2.9</a>), a shared cache recipient <em class="bcp14">MUST</em> ignore the Expires field. In both these cases, the value in Expires is only intended for recipients that have not yet implemented |
---|
1402 | the Cache-Control field. |
---|
1403 | </p> |
---|
1404 | <p id="rfc.section.5.3.p.8">An origin server without a clock <em class="bcp14">MUST NOT</em> generate an Expires field unless its value represents a fixed time in the past (always expired) or its value has been associated |
---|
1405 | with the resource by a system or user with a reliable clock. |
---|
1406 | </p> |
---|
1407 | <p id="rfc.section.5.3.p.9">Historically, HTTP required the Expires field-value to be no more than a year in the future. While longer freshness lifetimes |
---|
1408 | are no longer prohibited, extremely large values have been demonstrated to cause problems (e.g., clock overflows due to use |
---|
1409 | of 32-bit integers for time values), and many caches will evict a response far sooner than that. |
---|
1410 | </p> |
---|
1411 | <div id="rfc.iref.p.5"></div> |
---|
1412 | <h2 id="rfc.section.5.4"><a href="#rfc.section.5.4">5.4</a> <a id="header.pragma" href="#header.pragma">Pragma</a></h2> |
---|
1413 | <p id="rfc.section.5.4.p.1">The "Pragma" header field allows backwards compatibility with HTTP/1.0 caches, so that clients can specify a "no-cache" request |
---|
1414 | that they will understand (as <a href="#header.cache-control" class="smpl">Cache-Control</a> was not defined until HTTP/1.1). When the Cache-Control header field is also present and understood in a request, Pragma is |
---|
1415 | ignored. |
---|
1416 | </p> |
---|
1417 | <p id="rfc.section.5.4.p.2">In HTTP/1.0, Pragma was defined as an extensible field for implementation-specified directives for recipients. This specification |
---|
1418 | deprecates such extensions to improve interoperability. |
---|
1419 | </p> |
---|
1420 | <div id="rfc.figure.u.11"></div><pre class="inline"><span id="rfc.iref.g.6"></span><span id="rfc.iref.g.7"></span><span id="rfc.iref.g.8"></span> <a href="#header.pragma" class="smpl">Pragma</a> = 1#<a href="#header.pragma" class="smpl">pragma-directive</a> |
---|
1421 | <a href="#header.pragma" class="smpl">pragma-directive</a> = "no-cache" / <a href="#header.pragma" class="smpl">extension-pragma</a> |
---|
1422 | <a href="#header.pragma" class="smpl">extension-pragma</a> = <a href="#imported.abnf" class="smpl">token</a> [ "=" ( <a href="#imported.abnf" class="smpl">token</a> / <a href="#imported.abnf" class="smpl">quoted-string</a> ) ] |
---|
1423 | </pre><p id="rfc.section.5.4.p.4">When the <a href="#header.cache-control" class="smpl">Cache-Control</a> header field is not present in a request, caches <em class="bcp14">MUST</em> consider the no-cache request pragma-directive as having the same effect as if "Cache-Control: no-cache" were present (see <a href="#cache-request-directive" title="Request Cache-Control Directives">Section 5.2.1</a>). |
---|
1424 | </p> |
---|
1425 | <p id="rfc.section.5.4.p.5">When sending a no-cache request, a client ought to include both the pragma and cache-control directives, unless Cache-Control: |
---|
1426 | no-cache is purposefully omitted to target other <a href="#header.cache-control" class="smpl">Cache-Control</a> response directives at HTTP/1.1 caches. For example: |
---|
1427 | </p> |
---|
1428 | <div id="rfc.figure.u.12"></div><pre class="text">GET / HTTP/1.1 |
---|
1429 | Host: www.example.com |
---|
1430 | Cache-Control: max-age=30 |
---|
1431 | Pragma: no-cache |
---|
1432 | |
---|
1433 | </pre><p id="rfc.section.5.4.p.7">will constrain HTTP/1.1 caches to serve a response no older than 30 seconds, while precluding implementations that do not |
---|
1434 | understand <a href="#header.cache-control" class="smpl">Cache-Control</a> from serving a cached response. |
---|
1435 | </p> |
---|
1436 | <div class="note" id="rfc.section.5.4.p.8"> |
---|
1437 | <p><b>Note:</b> Because the meaning of "Pragma: no-cache" in responses is not specified, it does not provide a reliable replacement for "Cache-Control: |
---|
1438 | no-cache" in them. |
---|
1439 | </p> |
---|
1440 | </div> |
---|
1441 | <div id="rfc.iref.w.1"></div> |
---|
1442 | <h2 id="rfc.section.5.5"><a href="#rfc.section.5.5">5.5</a> <a id="header.warning" href="#header.warning">Warning</a></h2> |
---|
1443 | <p id="rfc.section.5.5.p.1">The "Warning" header field is used to carry additional information about the status or transformation of a message that might |
---|
1444 | not be reflected in the status code. This information is typically used to warn about possible incorrectness introduced by |
---|
1445 | caching operations or transformations applied to the payload of the message. |
---|
1446 | </p> |
---|
1447 | <p id="rfc.section.5.5.p.2">Warnings can be used for other purposes, both cache-related and otherwise. The use of a warning, rather than an error status |
---|
1448 | code, distinguishes these responses from true failures. |
---|
1449 | </p> |
---|
1450 | <p id="rfc.section.5.5.p.3">Warning header fields can in general be applied to any message, however some warn-codes are specific to caches and can only |
---|
1451 | be applied to response messages. |
---|
1452 | </p> |
---|
1453 | <div id="rfc.figure.u.13"></div><pre class="inline"><span id="rfc.iref.g.9"></span><span id="rfc.iref.g.10"></span><span id="rfc.iref.g.11"></span><span id="rfc.iref.g.12"></span><span id="rfc.iref.g.13"></span><span id="rfc.iref.g.14"></span> <a href="#header.warning" class="smpl">Warning</a> = 1#<a href="#header.warning" class="smpl">warning-value</a> |
---|
1454 | |
---|
1455 | <a href="#header.warning" class="smpl">warning-value</a> = <a href="#header.warning" class="smpl">warn-code</a> <a href="#imported.abnf" class="smpl">SP</a> <a href="#header.warning" class="smpl">warn-agent</a> <a href="#imported.abnf" class="smpl">SP</a> <a href="#header.warning" class="smpl">warn-text</a> |
---|
1456 | [ <a href="#imported.abnf" class="smpl">SP</a> <a href="#header.warning" class="smpl">warn-date</a> ] |
---|
1457 | |
---|
1458 | <a href="#header.warning" class="smpl">warn-code</a> = 3<a href="#imported.abnf" class="smpl">DIGIT</a> |
---|
1459 | <a href="#header.warning" class="smpl">warn-agent</a> = ( <a href="#imported.abnf" class="smpl">uri-host</a> [ ":" <a href="#imported.abnf" class="smpl">port</a> ] ) / <a href="#imported.abnf" class="smpl">pseudonym</a> |
---|
1460 | ; the name or pseudonym of the server adding |
---|
1461 | ; the Warning header field, for use in debugging |
---|
1462 | <a href="#header.warning" class="smpl">warn-text</a> = <a href="#imported.abnf" class="smpl">quoted-string</a> |
---|
1463 | <a href="#header.warning" class="smpl">warn-date</a> = <a href="#imported.abnf" class="smpl">DQUOTE</a> <a href="#imported.abnf" class="smpl">HTTP-date</a> <a href="#imported.abnf" class="smpl">DQUOTE</a> |
---|
1464 | </pre><p id="rfc.section.5.5.p.5">Multiple warnings can be generated in a response (either by the origin server or by a cache), including multiple warnings |
---|
1465 | with the same warn-code number that only differ in warn-text. |
---|
1466 | </p> |
---|
1467 | <p id="rfc.section.5.5.p.6">A user agent that receives one or more Warning header fields <em class="bcp14">SHOULD</em> inform the user of as many of them as possible, in the order that they appear in the response. Senders that generate multiple |
---|
1468 | Warning header fields are encouraged to order them with this user agent behavior in mind. A sender that generates new Warning |
---|
1469 | header fields <em class="bcp14">MUST</em> append them after any existing Warning header fields. |
---|
1470 | </p> |
---|
1471 | <p id="rfc.section.5.5.p.7">Warnings are assigned three digit warn-codes. The first digit indicates whether the Warning is required to be deleted from |
---|
1472 | a stored response after validation: |
---|
1473 | </p> |
---|
1474 | <ul> |
---|
1475 | <li>1xx warn-codes describe the freshness or validation status of the response, and so <em class="bcp14">MUST</em> be deleted by a cache after validation. They can only be generated by a cache when validating a cached entry, and <em class="bcp14">MUST NOT</em> be generated in any other situation. |
---|
1476 | </li> |
---|
1477 | <li>2xx warn-codes describe some aspect of the representation that is not rectified by a validation (for example, a lossy compression |
---|
1478 | of the representation) and <em class="bcp14">MUST NOT</em> be deleted by a cache after validation, unless a full response is sent, in which case they <em class="bcp14">MUST</em> be. |
---|
1479 | </li> |
---|
1480 | </ul> |
---|
1481 | <p id="rfc.section.5.5.p.8">If a sender generates one or more Warning header fields in a message to be sent to a recipient known to implement only HTTP/1.0, |
---|
1482 | the sender <em class="bcp14">MUST</em> include in each generated warning-value a warn-date that matches the <a href="p2-semantics.html#header.date" class="smpl">Date</a> header field in the message. |
---|
1483 | </p> |
---|
1484 | <p id="rfc.section.5.5.p.9">If a recipient that uses, evaluates, or displays Warning header fields receives a warn-date that is different from the <a href="p2-semantics.html#header.date" class="smpl">Date</a> value in the same message, the recipient <em class="bcp14">MUST</em> exclude the warning-value containing that warn-date before storing, forwarding, or using the message. This allows recipients |
---|
1485 | to exclude warning-values that were improperly retained after a cache validation. If all of the warning-values are excluded, |
---|
1486 | the recipient <em class="bcp14">MUST</em> exclude the Warning header field as well. |
---|
1487 | </p> |
---|
1488 | <p id="rfc.section.5.5.p.10">The following warn-codes are defined by this specification, each with a recommended warn-text in English, and a description |
---|
1489 | of its meaning. The procedure for defining additional warn codes is described in <a href="#warn.code.registry.procedure" title="Procedure">Section 7.2.1</a>. |
---|
1490 | </p> |
---|
1491 | <div id="rfc.iref.49"></div> |
---|
1492 | <div id="rfc.iref.r.1"></div> |
---|
1493 | <h3 id="rfc.section.5.5.1"><a href="#rfc.section.5.5.1">5.5.1</a> <a id="warn.110" href="#warn.110">Warning: 110 means "Response is Stale"</a></h3> |
---|
1494 | <p id="rfc.section.5.5.1.p.1">A cache <em class="bcp14">SHOULD</em> generate this whenever the sent response is stale. |
---|
1495 | </p> |
---|
1496 | <div id="rfc.iref.50"></div> |
---|
1497 | <div id="rfc.iref.r.2"></div> |
---|
1498 | <h3 id="rfc.section.5.5.2"><a href="#rfc.section.5.5.2">5.5.2</a> <a id="warn.111" href="#warn.111">Warning: 111 means "Revalidation Failed"</a></h3> |
---|
1499 | <p id="rfc.section.5.5.2.p.1">A cache <em class="bcp14">SHOULD</em> generate this when sending a stale response because an attempt to validate the response failed, due to an inability to reach |
---|
1500 | the server. |
---|
1501 | </p> |
---|
1502 | <div id="rfc.iref.51"></div> |
---|
1503 | <div id="rfc.iref.d.1"></div> |
---|
1504 | <h3 id="rfc.section.5.5.3"><a href="#rfc.section.5.5.3">5.5.3</a> <a id="warn.112" href="#warn.112">Warning: 112 means "Disconnected Operation"</a></h3> |
---|
1505 | <p id="rfc.section.5.5.3.p.1">A cache <em class="bcp14">SHOULD</em> generate this if it is intentionally disconnected from the rest of the network for a period of time. |
---|
1506 | </p> |
---|
1507 | <div id="rfc.iref.52"></div> |
---|
1508 | <div id="rfc.iref.h.2"></div> |
---|
1509 | <h3 id="rfc.section.5.5.4"><a href="#rfc.section.5.5.4">5.5.4</a> <a id="warn.113" href="#warn.113">Warning: 113 means "Heuristic Expiration"</a></h3> |
---|
1510 | <p id="rfc.section.5.5.4.p.1">A cache <em class="bcp14">SHOULD</em> generate this if it heuristically chose a freshness lifetime greater than 24 hours and the response's age is greater than |
---|
1511 | 24 hours. |
---|
1512 | </p> |
---|
1513 | <div id="rfc.iref.53"></div> |
---|
1514 | <div id="rfc.iref.m.6"></div> |
---|
1515 | <h3 id="rfc.section.5.5.5"><a href="#rfc.section.5.5.5">5.5.5</a> <a id="warn.199" href="#warn.199">Warning: 199 means "Miscellaneous Warning"</a></h3> |
---|
1516 | <p id="rfc.section.5.5.5.p.1">The warning text can include arbitrary information to be presented to a human user, or logged. A system receiving this warning <em class="bcp14">MUST NOT</em> take any automated action, besides presenting the warning to the user. |
---|
1517 | </p> |
---|
1518 | <div id="rfc.iref.54"></div> |
---|
1519 | <div id="rfc.iref.t.1"></div> |
---|
1520 | <h3 id="rfc.section.5.5.6"><a href="#rfc.section.5.5.6">5.5.6</a> <a id="warn.214" href="#warn.214">Warning: 214 means "Transformation Applied"</a></h3> |
---|
1521 | <p id="rfc.section.5.5.6.p.1"><em class="bcp14">MUST</em> be added by a proxy if it applies any transformation to the representation, such as changing the content-coding, media-type, |
---|
1522 | or modifying the representation data, unless this Warning code already appears in the response. |
---|
1523 | </p> |
---|
1524 | <div id="rfc.iref.55"></div> |
---|
1525 | <div id="rfc.iref.m.7"></div> |
---|
1526 | <h3 id="rfc.section.5.5.7"><a href="#rfc.section.5.5.7">5.5.7</a> <a id="warn.299" href="#warn.299">Warning: 299 means "Miscellaneous Persistent Warning"</a></h3> |
---|
1527 | <p id="rfc.section.5.5.7.p.1">The warning text can include arbitrary information to be presented to a human user, or logged. A system receiving this warning <em class="bcp14">MUST NOT</em> take any automated action. |
---|
1528 | </p> |
---|
1529 | <h1 id="rfc.section.6"><a href="#rfc.section.6">6.</a> <a id="history.lists" href="#history.lists">History Lists</a></h1> |
---|
1530 | <p id="rfc.section.6.p.1">User agents often have history mechanisms, such as "Back" buttons and history lists, that can be used to redisplay a representation |
---|
1531 | retrieved earlier in a session. |
---|
1532 | </p> |
---|
1533 | <p id="rfc.section.6.p.2">The freshness model (<a href="#expiration.model" title="Freshness">Section 4.2</a>) does not necessarily apply to history mechanisms. I.e., a history mechanism can display a previous representation even if |
---|
1534 | it has expired. |
---|
1535 | </p> |
---|
1536 | <p id="rfc.section.6.p.3">This does not prohibit the history mechanism from telling the user that a view might be stale, or from honoring cache directives |
---|
1537 | (e.g., Cache-Control: no-store). |
---|
1538 | </p> |
---|
1539 | <h1 id="rfc.section.7"><a href="#rfc.section.7">7.</a> <a id="iana.considerations" href="#iana.considerations">IANA Considerations</a></h1> |
---|
1540 | <h2 id="rfc.section.7.1"><a href="#rfc.section.7.1">7.1</a> <a id="cache.directive.registry" href="#cache.directive.registry">Cache Directive Registry</a></h2> |
---|
1541 | <p id="rfc.section.7.1.p.1">The HTTP Cache Directive Registry defines the name space for the cache directives. It will be created and maintained at <<a href="http://www.iana.org/assignments/http-cache-directives">http://www.iana.org/assignments/http-cache-directives</a>>. |
---|
1542 | </p> |
---|
1543 | <h3 id="rfc.section.7.1.1"><a href="#rfc.section.7.1.1">7.1.1</a> <a id="cache.directive.registry.procedure" href="#cache.directive.registry.procedure">Procedure</a></h3> |
---|
1544 | <p id="rfc.section.7.1.1.p.1">A registration <em class="bcp14">MUST</em> include the following fields: |
---|
1545 | </p> |
---|
1546 | <ul> |
---|
1547 | <li>Cache Directive Name</li> |
---|
1548 | <li>Pointer to specification text</li> |
---|
1549 | </ul> |
---|
1550 | <p id="rfc.section.7.1.1.p.2">Values to be added to this name space require IETF Review (see <a href="#RFC5226" id="rfc.xref.RFC5226.1"><cite title="Guidelines for Writing an IANA Considerations Section in RFCs">[RFC5226]</cite></a>, <a href="http://tools.ietf.org/html/rfc5226#section-4.1">Section 4.1</a>). |
---|
1551 | </p> |
---|
1552 | <h3 id="rfc.section.7.1.2"><a href="#rfc.section.7.1.2">7.1.2</a> <a id="cache.directive.considerations" href="#cache.directive.considerations">Considerations for New Cache Control Directives</a></h3> |
---|
1553 | <p id="rfc.section.7.1.2.p.1">New extension directives ought to consider defining:</p> |
---|
1554 | <p id="rfc.section.7.1.2.p.2"></p> |
---|
1555 | <ul> |
---|
1556 | <li>What it means for a directive to be specified multiple times,</li> |
---|
1557 | <li>When the directive does not take an argument, what it means when an argument is present,</li> |
---|
1558 | <li>When the directive requires an argument, what it means when it is missing,</li> |
---|
1559 | <li>Whether the directive is specific to requests, responses, or able to be used in either.</li> |
---|
1560 | </ul> |
---|
1561 | <p id="rfc.section.7.1.2.p.3">See also <a href="#cache.control.extensions" title="Cache Control Extensions">Section 5.2.3</a>. |
---|
1562 | </p> |
---|
1563 | <h3 id="rfc.section.7.1.3"><a href="#rfc.section.7.1.3">7.1.3</a> <a id="cache.directive.registration" href="#cache.directive.registration">Registrations</a></h3> |
---|
1564 | <p id="rfc.section.7.1.3.p.1">The HTTP Cache Directive Registry shall be populated with the registrations below:</p> |
---|
1565 | <div id="rfc.table.1"> |
---|
1566 | <div id="iana.cache.directive.registration.table"></div> |
---|
1567 | <table class="tt full left" cellpadding="3" cellspacing="0"> |
---|
1568 | <thead> |
---|
1569 | <tr> |
---|
1570 | <th>Cache Directive</th> |
---|
1571 | <th>Reference</th> |
---|
1572 | </tr> |
---|
1573 | </thead> |
---|
1574 | <tbody> |
---|
1575 | <tr> |
---|
1576 | <td class="left">max-age</td> |
---|
1577 | <td class="left"><a href="#cache-request-directive.max-age" title="max-age">Section 5.2.1.1</a>, <a href="#cache-response-directive.max-age" title="max-age">Section 5.2.2.8</a> |
---|
1578 | </td> |
---|
1579 | </tr> |
---|
1580 | <tr> |
---|
1581 | <td class="left">max-stale</td> |
---|
1582 | <td class="left"><a href="#cache-request-directive.max-stale" title="max-stale">Section 5.2.1.2</a> |
---|
1583 | </td> |
---|
1584 | </tr> |
---|
1585 | <tr> |
---|
1586 | <td class="left">min-fresh</td> |
---|
1587 | <td class="left"><a href="#cache-request-directive.min-fresh" title="min-fresh">Section 5.2.1.3</a> |
---|
1588 | </td> |
---|
1589 | </tr> |
---|
1590 | <tr> |
---|
1591 | <td class="left">must-revalidate</td> |
---|
1592 | <td class="left"><a href="#cache-response-directive.must-revalidate" title="must-revalidate">Section 5.2.2.1</a> |
---|
1593 | </td> |
---|
1594 | </tr> |
---|
1595 | <tr> |
---|
1596 | <td class="left">no-cache</td> |
---|
1597 | <td class="left"><a href="#cache-request-directive.no-cache" title="no-cache">Section 5.2.1.4</a>, <a href="#cache-response-directive.no-cache" title="no-cache">Section 5.2.2.2</a> |
---|
1598 | </td> |
---|
1599 | </tr> |
---|
1600 | <tr> |
---|
1601 | <td class="left">no-store</td> |
---|
1602 | <td class="left"><a href="#cache-request-directive.no-store" title="no-store">Section 5.2.1.5</a>, <a href="#cache-response-directive.no-store" title="no-store">Section 5.2.2.3</a> |
---|
1603 | </td> |
---|
1604 | </tr> |
---|
1605 | <tr> |
---|
1606 | <td class="left">no-transform</td> |
---|
1607 | <td class="left"><a href="#cache-request-directive.no-transform" title="no-transform">Section 5.2.1.6</a>, <a href="#cache-response-directive.no-transform" title="no-transform">Section 5.2.2.4</a> |
---|
1608 | </td> |
---|
1609 | </tr> |
---|
1610 | <tr> |
---|
1611 | <td class="left">only-if-cached</td> |
---|
1612 | <td class="left"><a href="#cache-request-directive.only-if-cached" title="only-if-cached">Section 5.2.1.7</a> |
---|
1613 | </td> |
---|
1614 | </tr> |
---|
1615 | <tr> |
---|
1616 | <td class="left">private</td> |
---|
1617 | <td class="left"><a href="#cache-response-directive.private" title="private">Section 5.2.2.6</a> |
---|
1618 | </td> |
---|
1619 | </tr> |
---|
1620 | <tr> |
---|
1621 | <td class="left">proxy-revalidate</td> |
---|
1622 | <td class="left"><a href="#cache-response-directive.proxy-revalidate" title="proxy-revalidate">Section 5.2.2.7</a> |
---|
1623 | </td> |
---|
1624 | </tr> |
---|
1625 | <tr> |
---|
1626 | <td class="left">public</td> |
---|
1627 | <td class="left"><a href="#cache-response-directive.public" title="public">Section 5.2.2.5</a> |
---|
1628 | </td> |
---|
1629 | </tr> |
---|
1630 | <tr> |
---|
1631 | <td class="left">s-maxage</td> |
---|
1632 | <td class="left"><a href="#cache-response-directive.s-maxage" title="s-maxage">Section 5.2.2.9</a> |
---|
1633 | </td> |
---|
1634 | </tr> |
---|
1635 | <tr> |
---|
1636 | <td class="left">stale-if-error</td> |
---|
1637 | <td class="left"><a href="#RFC5861" id="rfc.xref.RFC5861.1"><cite title="HTTP Cache-Control Extensions for Stale Content">[RFC5861]</cite></a>, <a href="http://tools.ietf.org/html/rfc5861#section-4">Section 4</a> |
---|
1638 | </td> |
---|
1639 | </tr> |
---|
1640 | <tr> |
---|
1641 | <td class="left">stale-while-revalidate</td> |
---|
1642 | <td class="left"><a href="#RFC5861" id="rfc.xref.RFC5861.2"><cite title="HTTP Cache-Control Extensions for Stale Content">[RFC5861]</cite></a>, <a href="http://tools.ietf.org/html/rfc5861#section-3">Section 3</a> |
---|
1643 | </td> |
---|
1644 | </tr> |
---|
1645 | </tbody> |
---|
1646 | </table> |
---|
1647 | </div> |
---|
1648 | <h2 id="rfc.section.7.2"><a href="#rfc.section.7.2">7.2</a> <a id="warn.code.registry" href="#warn.code.registry">Warn Code Registry</a></h2> |
---|
1649 | <p id="rfc.section.7.2.p.1">The HTTP Warn Code Registry defines the name space for warn codes. It will be created and maintained at <<a href="http://www.iana.org/assignments/http-warn-codes">http://www.iana.org/assignments/http-warn-codes</a>>. |
---|
1650 | </p> |
---|
1651 | <h3 id="rfc.section.7.2.1"><a href="#rfc.section.7.2.1">7.2.1</a> <a id="warn.code.registry.procedure" href="#warn.code.registry.procedure">Procedure</a></h3> |
---|
1652 | <p id="rfc.section.7.2.1.p.1">A registration <em class="bcp14">MUST</em> include the following fields: |
---|
1653 | </p> |
---|
1654 | <ul> |
---|
1655 | <li>Warn Code (3 digits)</li> |
---|
1656 | <li>Short Description</li> |
---|
1657 | <li>Pointer to specification text</li> |
---|
1658 | </ul> |
---|
1659 | <p id="rfc.section.7.2.1.p.2">Values to be added to this name space require IETF Review (see <a href="#RFC5226" id="rfc.xref.RFC5226.2"><cite title="Guidelines for Writing an IANA Considerations Section in RFCs">[RFC5226]</cite></a>, <a href="http://tools.ietf.org/html/rfc5226#section-4.1">Section 4.1</a>). |
---|
1660 | </p> |
---|
1661 | <h3 id="rfc.section.7.2.2"><a href="#rfc.section.7.2.2">7.2.2</a> <a id="warn.code.registration" href="#warn.code.registration">Registrations</a></h3> |
---|
1662 | <p id="rfc.section.7.2.2.p.1">The HTTP Warn Code Registry shall be populated with the registrations below:</p> |
---|
1663 | <div id="rfc.table.2"> |
---|
1664 | <div id="iana.warn.code.registration.table"></div> |
---|
1665 | <table class="tt full left" cellpadding="3" cellspacing="0"> |
---|
1666 | <thead> |
---|
1667 | <tr> |
---|
1668 | <th>Warn Code</th> |
---|
1669 | <th>Short Description</th> |
---|
1670 | <th>Reference</th> |
---|
1671 | </tr> |
---|
1672 | </thead> |
---|
1673 | <tbody> |
---|
1674 | <tr> |
---|
1675 | <td class="left">110</td> |
---|
1676 | <td class="left">Response is Stale</td> |
---|
1677 | <td class="left"><a href="#warn.110" id="rfc.xref.warn.110.2" title="Warning: 110 means "Response is Stale"">Section 5.5.1</a> |
---|
1678 | </td> |
---|
1679 | </tr> |
---|
1680 | <tr> |
---|
1681 | <td class="left">111</td> |
---|
1682 | <td class="left">Revalidation Failed</td> |
---|
1683 | <td class="left"><a href="#warn.111" id="rfc.xref.warn.111.1" title="Warning: 111 means "Revalidation Failed"">Section 5.5.2</a> |
---|
1684 | </td> |
---|
1685 | </tr> |
---|
1686 | <tr> |
---|
1687 | <td class="left">112</td> |
---|
1688 | <td class="left">Disconnected Operation</td> |
---|
1689 | <td class="left"><a href="#warn.112" id="rfc.xref.warn.112.2" title="Warning: 112 means "Disconnected Operation"">Section 5.5.3</a> |
---|
1690 | </td> |
---|
1691 | </tr> |
---|
1692 | <tr> |
---|
1693 | <td class="left">113</td> |
---|
1694 | <td class="left">Heuristic Expiration</td> |
---|
1695 | <td class="left"><a href="#warn.113" id="rfc.xref.warn.113.2" title="Warning: 113 means "Heuristic Expiration"">Section 5.5.4</a> |
---|
1696 | </td> |
---|
1697 | </tr> |
---|
1698 | <tr> |
---|
1699 | <td class="left">199</td> |
---|
1700 | <td class="left">Miscellaneous Warning</td> |
---|
1701 | <td class="left"><a href="#warn.199" id="rfc.xref.warn.199.1" title="Warning: 199 means "Miscellaneous Warning"">Section 5.5.5</a> |
---|
1702 | </td> |
---|
1703 | </tr> |
---|
1704 | <tr> |
---|
1705 | <td class="left">214</td> |
---|
1706 | <td class="left">Transformation Applied</td> |
---|
1707 | <td class="left"><a href="#warn.214" id="rfc.xref.warn.214.1" title="Warning: 214 means "Transformation Applied"">Section 5.5.6</a> |
---|
1708 | </td> |
---|
1709 | </tr> |
---|
1710 | <tr> |
---|
1711 | <td class="left">299</td> |
---|
1712 | <td class="left">Miscellaneous Persistent Warning</td> |
---|
1713 | <td class="left"><a href="#warn.299" id="rfc.xref.warn.299.1" title="Warning: 299 means "Miscellaneous Persistent Warning"">Section 5.5.7</a> |
---|
1714 | </td> |
---|
1715 | </tr> |
---|
1716 | </tbody> |
---|
1717 | </table> |
---|
1718 | </div> |
---|
1719 | <h2 id="rfc.section.7.3"><a href="#rfc.section.7.3">7.3</a> <a id="header.field.registration" href="#header.field.registration">Header Field Registration</a></h2> |
---|
1720 | <p id="rfc.section.7.3.p.1">HTTP header fields are registered within the Message Header Field Registry maintained at <<a href="http://www.iana.org/assignments/message-headers/message-header-index.html">http://www.iana.org/assignments/message-headers/message-header-index.html</a>>. |
---|
1721 | </p> |
---|
1722 | <p id="rfc.section.7.3.p.2">This document defines the following HTTP header fields, so their associated registry entries shall be updated according to |
---|
1723 | the permanent registrations below (see <a href="#BCP90" id="rfc.xref.BCP90.1"><cite title="Registration Procedures for Message Header Fields">[BCP90]</cite></a>): |
---|
1724 | </p> |
---|
1725 | <div id="rfc.table.3"> |
---|
1726 | <div id="iana.header.registration.table"></div> |
---|
1727 | <table class="tt full left" cellpadding="3" cellspacing="0"> |
---|
1728 | <thead> |
---|
1729 | <tr> |
---|
1730 | <th>Header Field Name</th> |
---|
1731 | <th>Protocol</th> |
---|
1732 | <th>Status</th> |
---|
1733 | <th>Reference</th> |
---|
1734 | </tr> |
---|
1735 | </thead> |
---|
1736 | <tbody> |
---|
1737 | <tr> |
---|
1738 | <td class="left">Age</td> |
---|
1739 | <td class="left">http</td> |
---|
1740 | <td class="left">standard</td> |
---|
1741 | <td class="left"><a href="#header.age" id="rfc.xref.header.age.3" title="Age">Section 5.1</a> |
---|
1742 | </td> |
---|
1743 | </tr> |
---|
1744 | <tr> |
---|
1745 | <td class="left">Cache-Control</td> |
---|
1746 | <td class="left">http</td> |
---|
1747 | <td class="left">standard</td> |
---|
1748 | <td class="left"><a href="#header.cache-control" id="rfc.xref.header.cache-control.2" title="Cache-Control">Section 5.2</a> |
---|
1749 | </td> |
---|
1750 | </tr> |
---|
1751 | <tr> |
---|
1752 | <td class="left">Expires</td> |
---|
1753 | <td class="left">http</td> |
---|
1754 | <td class="left">standard</td> |
---|
1755 | <td class="left"><a href="#header.expires" id="rfc.xref.header.expires.4" title="Expires">Section 5.3</a> |
---|
1756 | </td> |
---|
1757 | </tr> |
---|
1758 | <tr> |
---|
1759 | <td class="left">Pragma</td> |
---|
1760 | <td class="left">http</td> |
---|
1761 | <td class="left">standard</td> |
---|
1762 | <td class="left"><a href="#header.pragma" id="rfc.xref.header.pragma.2" title="Pragma">Section 5.4</a> |
---|
1763 | </td> |
---|
1764 | </tr> |
---|
1765 | <tr> |
---|
1766 | <td class="left">Warning</td> |
---|
1767 | <td class="left">http</td> |
---|
1768 | <td class="left">standard</td> |
---|
1769 | <td class="left"><a href="#header.warning" id="rfc.xref.header.warning.4" title="Warning">Section 5.5</a> |
---|
1770 | </td> |
---|
1771 | </tr> |
---|
1772 | </tbody> |
---|
1773 | </table> |
---|
1774 | </div> |
---|
1775 | <p id="rfc.section.7.3.p.3">The change controller is: "IETF (iesg@ietf.org) - Internet Engineering Task Force".</p> |
---|
1776 | <h1 id="rfc.section.8"><a href="#rfc.section.8">8.</a> <a id="security.considerations" href="#security.considerations">Security Considerations</a></h1> |
---|
1777 | <p id="rfc.section.8.p.1">This section is meant to inform developers, information providers, and users of known security concerns specific to HTTP/1.1 |
---|
1778 | caching. More general security considerations are addressed in HTTP messaging <a href="#Part1" id="rfc.xref.Part1.11"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing">[Part1]</cite></a> and semantics <a href="#Part2" id="rfc.xref.Part2.8"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content">[Part2]</cite></a>. |
---|
1779 | </p> |
---|
1780 | <p id="rfc.section.8.p.2">Caches expose additional potential vulnerabilities, since the contents of the cache represent an attractive target for malicious |
---|
1781 | exploitation. Because cache contents persist after an HTTP request is complete, an attack on the cache can reveal information |
---|
1782 | long after a user believes that the information has been removed from the network. Therefore, cache contents need to be protected |
---|
1783 | as sensitive information. |
---|
1784 | </p> |
---|
1785 | <p id="rfc.section.8.p.3">Furthermore, the very use of a cache can bring about privacy concerns. For example, if two users share a cache, and the first |
---|
1786 | one browses to a site, the second may be able to detect that the other has been to that site, because the resources from it |
---|
1787 | load more quickly, thanks to the cache. |
---|
1788 | </p> |
---|
1789 | <p id="rfc.section.8.p.4">Implementation flaws might allow attackers to insert content into a cache ("cache poisoning"), leading to compromise of clients |
---|
1790 | that trust that content. Because of their nature, these attacks are difficult to mitigate. |
---|
1791 | </p> |
---|
1792 | <p id="rfc.section.8.p.5">Likewise, implementation flaws (as well as misunderstanding of cache operation) might lead to caching of sensitive information |
---|
1793 | (e.g., authentication credentials) that is thought to be private, exposing it to unauthorized parties. |
---|
1794 | </p> |
---|
1795 | <p id="rfc.section.8.p.6">Note that the Set-Cookie response header field <a href="#RFC6265" id="rfc.xref.RFC6265.1"><cite title="HTTP State Management Mechanism">[RFC6265]</cite></a> does not inhibit caching; a cacheable response with a Set-Cookie header field can be (and often is) used to satisfy subsequent |
---|
1796 | requests to caches. Servers who wish to control caching of these responses are encouraged to emit appropriate Cache-Control |
---|
1797 | response header fields. |
---|
1798 | </p> |
---|
1799 | <h1 id="rfc.section.9"><a href="#rfc.section.9">9.</a> <a id="acks" href="#acks">Acknowledgments</a></h1> |
---|
1800 | <p id="rfc.section.9.p.1">See <a href="p1-messaging.html#acks" title="Acknowledgments">Section 10</a> of <a href="#Part1" id="rfc.xref.Part1.12"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing">[Part1]</cite></a>. |
---|
1801 | </p> |
---|
1802 | <h1 id="rfc.references"><a id="rfc.section.10" href="#rfc.section.10">10.</a> References |
---|
1803 | </h1> |
---|
1804 | <h2 id="rfc.references.1"><a href="#rfc.section.10.1" id="rfc.section.10.1">10.1</a> Normative References |
---|
1805 | </h2> |
---|
1806 | <table> |
---|
1807 | <tr> |
---|
1808 | <td class="reference"><b id="Part1">[Part1]</b></td> |
---|
1809 | <td class="top"><a href="mailto:fielding@gbiv.com" title="Adobe Systems Incorporated">Fielding, R., Ed.</a> and <a href="mailto:julian.reschke@greenbytes.de" title="greenbytes GmbH">J. Reschke, Ed.</a>, “<a href="http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-latest">Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing</a>”, Internet-Draft draft-ietf-httpbis-p1-messaging-latest (work in progress), September 2013. |
---|
1810 | </td> |
---|
1811 | </tr> |
---|
1812 | <tr> |
---|
1813 | <td class="reference"><b id="Part2">[Part2]</b></td> |
---|
1814 | <td class="top"><a href="mailto:fielding@gbiv.com" title="Adobe Systems Incorporated">Fielding, R., Ed.</a> and <a href="mailto:julian.reschke@greenbytes.de" title="greenbytes GmbH">J. Reschke, Ed.</a>, “<a href="http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-latest">Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content</a>”, Internet-Draft draft-ietf-httpbis-p2-semantics-latest (work in progress), September 2013. |
---|
1815 | </td> |
---|
1816 | </tr> |
---|
1817 | <tr> |
---|
1818 | <td class="reference"><b id="Part4">[Part4]</b></td> |
---|
1819 | <td class="top"><a href="mailto:fielding@gbiv.com" title="Adobe Systems Incorporated">Fielding, R., Ed.</a> and <a href="mailto:julian.reschke@greenbytes.de" title="greenbytes GmbH">J. Reschke, Ed.</a>, “<a href="http://tools.ietf.org/html/draft-ietf-httpbis-p4-conditional-latest">Hypertext Transfer Protocol (HTTP/1.1): Conditional Requests</a>”, Internet-Draft draft-ietf-httpbis-p4-conditional-latest (work in progress), September 2013. |
---|
1820 | </td> |
---|
1821 | </tr> |
---|
1822 | <tr> |
---|
1823 | <td class="reference"><b id="Part5">[Part5]</b></td> |
---|
1824 | <td class="top"><a href="mailto:fielding@gbiv.com" title="Adobe Systems Incorporated">Fielding, R., Ed.</a>, <a href="mailto:ylafon@w3.org" title="World Wide Web Consortium">Lafon, Y., Ed.</a>, and <a href="mailto:julian.reschke@greenbytes.de" title="greenbytes GmbH">J. Reschke, Ed.</a>, “<a href="http://tools.ietf.org/html/draft-ietf-httpbis-p5-range-latest">Hypertext Transfer Protocol (HTTP/1.1): Range Requests</a>”, Internet-Draft draft-ietf-httpbis-p5-range-latest (work in progress), September 2013. |
---|
1825 | </td> |
---|
1826 | </tr> |
---|
1827 | <tr> |
---|
1828 | <td class="reference"><b id="Part7">[Part7]</b></td> |
---|
1829 | <td class="top"><a href="mailto:fielding@gbiv.com" title="Adobe Systems Incorporated">Fielding, R., Ed.</a> and <a href="mailto:julian.reschke@greenbytes.de" title="greenbytes GmbH">J. Reschke, Ed.</a>, “<a href="http://tools.ietf.org/html/draft-ietf-httpbis-p7-auth-latest">Hypertext Transfer Protocol (HTTP/1.1): Authentication</a>”, Internet-Draft draft-ietf-httpbis-p7-auth-latest (work in progress), September 2013. |
---|
1830 | </td> |
---|
1831 | </tr> |
---|
1832 | <tr> |
---|
1833 | <td class="reference"><b id="RFC2119">[RFC2119]</b></td> |
---|
1834 | <td class="top"><a href="mailto:sob@harvard.edu" title="Harvard University">Bradner, S.</a>, “<a href="http://tools.ietf.org/html/rfc2119">Key words for use in RFCs to Indicate Requirement Levels</a>”, BCP 14, RFC 2119, March 1997. |
---|
1835 | </td> |
---|
1836 | </tr> |
---|
1837 | <tr> |
---|
1838 | <td class="reference"><b id="RFC5234">[RFC5234]</b></td> |
---|
1839 | <td class="top"><a href="mailto:dcrocker@bbiw.net" title="Brandenburg InternetWorking">Crocker, D., Ed.</a> and <a href="mailto:paul.overell@thus.net" title="THUS plc.">P. Overell</a>, “<a href="http://tools.ietf.org/html/rfc5234">Augmented BNF for Syntax Specifications: ABNF</a>”, STD 68, RFC 5234, January 2008. |
---|
1840 | </td> |
---|
1841 | </tr> |
---|
1842 | </table> |
---|
1843 | <h2 id="rfc.references.2"><a href="#rfc.section.10.2" id="rfc.section.10.2">10.2</a> Informative References |
---|
1844 | </h2> |
---|
1845 | <table> |
---|
1846 | <tr> |
---|
1847 | <td class="reference"><b id="BCP90">[BCP90]</b></td> |
---|
1848 | <td class="top"><a href="mailto:GK-IETF@ninebynine.org" title="Nine by Nine">Klyne, G.</a>, <a href="mailto:mnot@pobox.com" title="BEA Systems">Nottingham, M.</a>, and <a href="mailto:JeffMogul@acm.org" title="HP Labs">J. Mogul</a>, “<a href="http://tools.ietf.org/html/rfc3864">Registration Procedures for Message Header Fields</a>”, BCP 90, RFC 3864, September 2004. |
---|
1849 | </td> |
---|
1850 | </tr> |
---|
1851 | <tr> |
---|
1852 | <td class="reference"><b id="RFC1305">[RFC1305]</b></td> |
---|
1853 | <td class="top"><a href="mailto:mills@udel.edu" title="University of Delaware, Electrical Engineering Department">Mills, D.</a>, “<a href="http://tools.ietf.org/html/rfc1305">Network Time Protocol (Version 3) Specification, Implementation</a>”, RFC 1305, March 1992. |
---|
1854 | </td> |
---|
1855 | </tr> |
---|
1856 | <tr> |
---|
1857 | <td class="reference"><b id="RFC2616">[RFC2616]</b></td> |
---|
1858 | <td class="top"><a href="mailto:fielding@ics.uci.edu" title="University of California, Irvine">Fielding, R.</a>, <a href="mailto:jg@w3.org" title="W3C">Gettys, J.</a>, <a href="mailto:mogul@wrl.dec.com" title="Compaq Computer Corporation">Mogul, J.</a>, <a href="mailto:frystyk@w3.org" title="MIT Laboratory for Computer Science">Frystyk, H.</a>, <a href="mailto:masinter@parc.xerox.com" title="Xerox Corporation">Masinter, L.</a>, <a href="mailto:paulle@microsoft.com" title="Microsoft Corporation">Leach, P.</a>, and <a href="mailto:timbl@w3.org" title="W3C">T. Berners-Lee</a>, “<a href="http://tools.ietf.org/html/rfc2616">Hypertext Transfer Protocol -- HTTP/1.1</a>”, RFC 2616, June 1999. |
---|
1859 | </td> |
---|
1860 | </tr> |
---|
1861 | <tr> |
---|
1862 | <td class="reference"><b id="RFC5226">[RFC5226]</b></td> |
---|
1863 | <td class="top"><a href="mailto:narten@us.ibm.com" title="IBM">Narten, T.</a> and <a href="mailto:Harald@Alvestrand.no" title="Google">H. Alvestrand</a>, “<a href="http://tools.ietf.org/html/rfc5226">Guidelines for Writing an IANA Considerations Section in RFCs</a>”, BCP 26, RFC 5226, May 2008. |
---|
1864 | </td> |
---|
1865 | </tr> |
---|
1866 | <tr> |
---|
1867 | <td class="reference"><b id="RFC5861">[RFC5861]</b></td> |
---|
1868 | <td class="top"><a href="mailto:mnot@yahoo-inc.com" title="Yahoo! Inc.">Nottingham, M.</a>, “<a href="http://tools.ietf.org/html/rfc5861">HTTP Cache-Control Extensions for Stale Content</a>”, RFC 5861, April 2010. |
---|
1869 | </td> |
---|
1870 | </tr> |
---|
1871 | <tr> |
---|
1872 | <td class="reference"><b id="RFC6265">[RFC6265]</b></td> |
---|
1873 | <td class="top"><a href="mailto:abarth@eecs.berkeley.edu" title="
 University of California, Berkeley
 ">Barth, A.</a>, “<a href="http://tools.ietf.org/html/rfc6265">HTTP State Management Mechanism</a>”, RFC 6265, April 2011. |
---|
1874 | </td> |
---|
1875 | </tr> |
---|
1876 | </table> |
---|
1877 | <div class="avoidbreak"> |
---|
1878 | <h1 id="rfc.authors"><a href="#rfc.authors">Authors' Addresses</a></h1> |
---|
1879 | <address><span class="vcardline"><b>Roy T. Fielding</b> |
---|
1880 | (editor) |
---|
1881 | </span><span class="vcardline">Adobe Systems Incorporated</span><span class="vcardline">345 Park Ave</span><span class="vcardline">San Jose, CA 95110</span><span class="vcardline">USA</span><span class="vcardline">Email: <a href="mailto:fielding@gbiv.com">fielding@gbiv.com</a></span><span class="vcardline">URI: <a href="http://roy.gbiv.com/">http://roy.gbiv.com/</a></span></address> |
---|
1882 | <address><span class="vcardline"><b>Mark Nottingham</b> |
---|
1883 | (editor) |
---|
1884 | </span><span class="vcardline">Akamai</span><span class="vcardline">Email: <a href="mailto:mnot@mnot.net">mnot@mnot.net</a></span><span class="vcardline">URI: <a href="http://www.mnot.net/">http://www.mnot.net/</a></span></address> |
---|
1885 | <address><span class="vcardline"><b>Julian F. Reschke</b> |
---|
1886 | (editor) |
---|
1887 | </span><span class="vcardline">greenbytes GmbH</span><span class="vcardline">Hafenweg 16</span><span class="vcardline">Muenster, NW 48155</span><span class="vcardline">Germany</span><span class="vcardline">Email: <a href="mailto:julian.reschke@greenbytes.de">julian.reschke@greenbytes.de</a></span><span class="vcardline">URI: <a href="http://greenbytes.de/tech/webdav/">http://greenbytes.de/tech/webdav/</a></span></address> |
---|
1888 | </div> |
---|
1889 | <h1 id="rfc.section.A" class="np"><a href="#rfc.section.A">A.</a> <a id="changes.from.rfc.2616" href="#changes.from.rfc.2616">Changes from RFC 2616</a></h1> |
---|
1890 | <p id="rfc.section.A.p.1">The specification has been substantially rewritten for clarity.</p> |
---|
1891 | <p id="rfc.section.A.p.2">The conditions under which an authenticated response can be cached have been clarified. (<a href="#caching.authenticated.responses" title="Storing Responses to Authenticated Requests">Section 3.2</a>) |
---|
1892 | </p> |
---|
1893 | <p id="rfc.section.A.p.3">New status codes can now define that caches are allowed to use heuristic freshness with them. Caches are now allowed to calculate |
---|
1894 | heuristic freshness for URIs with query components. (<a href="#heuristic.freshness" title="Calculating Heuristic Freshness">Section 4.2.2</a>) |
---|
1895 | </p> |
---|
1896 | <p id="rfc.section.A.p.4">The algorithm for calculating age is now less conservative. Caches are now required to handle dates with timezones as if they're |
---|
1897 | invalid, because it's not possible to accurately guess. (<a href="#age.calculations" title="Calculating Age">Section 4.2.3</a>) |
---|
1898 | </p> |
---|
1899 | <p id="rfc.section.A.p.5">The <a href="p2-semantics.html#header.content-location" class="smpl">Content-Location</a> response header field is no longer used to determine the appropriate response to use when validating. (<a href="#validation.model" title="Validation">Section 4.3</a>) |
---|
1900 | </p> |
---|
1901 | <p id="rfc.section.A.p.6">The algorithm for selecting a cached negotiated response to use has been clarified in several ways. In particular, it now |
---|
1902 | explicitly allows header-specific canonicalization when processing selecting header fields. (<a href="#caching.negotiated.responses" title="Calculating Secondary Keys with Vary">Section 4.1</a>) |
---|
1903 | </p> |
---|
1904 | <p id="rfc.section.A.p.7">Requirements regarding denial of service attack avoidance when performing invalidation have been clarified. (<a href="#invalidation" title="Invalidation">Section 4.4</a>) |
---|
1905 | </p> |
---|
1906 | <p id="rfc.section.A.p.8">Cache invalidation only occurs when a successful response is received. (<a href="#invalidation" title="Invalidation">Section 4.4</a>) |
---|
1907 | </p> |
---|
1908 | <p id="rfc.section.A.p.9">Cache directives are explicitly defined to be case-insensitive. Handling of multiple instances of cache directives when only |
---|
1909 | one is expected is now defined. (<a href="#header.cache-control" id="rfc.xref.header.cache-control.3" title="Cache-Control">Section 5.2</a>) |
---|
1910 | </p> |
---|
1911 | <p id="rfc.section.A.p.10">The "no-store" cache request directive doesn't apply to responses; i.e., a cache can satisfy a request with no-store on it, |
---|
1912 | and does not invalidate it. (<a href="#cache-request-directive.no-store" title="no-store">Section 5.2.1.5</a>) |
---|
1913 | </p> |
---|
1914 | <p id="rfc.section.A.p.11">The qualified forms of the private and no-cache cache directives are noted to not be widely implemented; e.g., "private=foo" |
---|
1915 | is interpreted by many caches as simply "private". Additionally, the meaning of the qualified form of no-cache has been clarified. |
---|
1916 | (<a href="#cache-response-directive" title="Response Cache-Control Directives">Section 5.2.2</a>) |
---|
1917 | </p> |
---|
1918 | <p id="rfc.section.A.p.12">The "no-cache" response cache directive's meaning has been clarified. (<a href="#cache-response-directive.no-cache" title="no-cache">Section 5.2.2.2</a>) |
---|
1919 | </p> |
---|
1920 | <p id="rfc.section.A.p.13">The one-year limit on <a href="#header.expires" class="smpl">Expires</a> header field values has been removed; instead, the reasoning for using a sensible value is given. (<a href="#header.expires" id="rfc.xref.header.expires.5" title="Expires">Section 5.3</a>) |
---|
1921 | </p> |
---|
1922 | <p id="rfc.section.A.p.14">The <a href="#header.pragma" class="smpl">Pragma</a> header field is now only defined for backwards compatibility; future pragmas are deprecated. (<a href="#header.pragma" id="rfc.xref.header.pragma.3" title="Pragma">Section 5.4</a>) |
---|
1923 | </p> |
---|
1924 | <p id="rfc.section.A.p.15">Some requirements regarding production and processing of the <a href="#header.warning" class="smpl">Warning</a> header fields have been relaxed, as it is not widely implemented. Furthermore, the <a href="#header.warning" class="smpl">Warning</a> header field no longer uses RFC 2047 encoding, nor allows multiple languages, as these aspects were not implemented. (<a href="#header.warning" id="rfc.xref.header.warning.5" title="Warning">Section 5.5</a>) |
---|
1925 | </p> |
---|
1926 | <p id="rfc.section.A.p.16">This specification introduces the Cache Directive and Warn Code Registries, and defines considerations for new cache directives. |
---|
1927 | (<a href="#cache.directive.registry" title="Cache Directive Registry">Section 7.1</a> and <a href="#warn.code.registry" title="Warn Code Registry">Section 7.2</a>) |
---|
1928 | </p> |
---|
1929 | <h1 id="rfc.section.B"><a href="#rfc.section.B">B.</a> <a id="imported.abnf" href="#imported.abnf">Imported ABNF</a></h1> |
---|
1930 | <p id="rfc.section.B.p.1">The following core rules are included by reference, as defined in <a href="http://tools.ietf.org/html/rfc5234#appendix-B.1">Appendix B.1</a> of <a href="#RFC5234" id="rfc.xref.RFC5234.2"><cite title="Augmented BNF for Syntax Specifications: ABNF">[RFC5234]</cite></a>: ALPHA (letters), CR (carriage return), CRLF (CR LF), CTL (controls), DIGIT (decimal 0-9), DQUOTE (double quote), HEXDIG |
---|
1931 | (hexadecimal 0-9/A-F/a-f), LF (line feed), OCTET (any 8-bit sequence of data), SP (space), and VCHAR (any visible US-ASCII |
---|
1932 | character). |
---|
1933 | </p> |
---|
1934 | <p id="rfc.section.B.p.2">The rules below are defined in <a href="#Part1" id="rfc.xref.Part1.13"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing">[Part1]</cite></a>: |
---|
1935 | </p> |
---|
1936 | <div id="rfc.figure.u.14"></div><pre class="inline"> <a href="#imported.abnf" class="smpl">OWS</a> = <OWS, defined in <a href="#Part1" id="rfc.xref.Part1.14"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing">[Part1]</cite></a>, <a href="p1-messaging.html#whitespace" title="Whitespace">Section 3.2.3</a>> |
---|
1937 | <a href="#imported.abnf" class="smpl">field-name</a> = <field-name, defined in <a href="#Part1" id="rfc.xref.Part1.15"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing">[Part1]</cite></a>, <a href="p1-messaging.html#header.fields" title="Header Fields">Section 3.2</a>> |
---|
1938 | <a href="#imported.abnf" class="smpl">quoted-string</a> = <quoted-string, defined in <a href="#Part1" id="rfc.xref.Part1.16"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing">[Part1]</cite></a>, <a href="p1-messaging.html#field.components" title="Field value components">Section 3.2.6</a>> |
---|
1939 | <a href="#imported.abnf" class="smpl">token</a> = <token, defined in <a href="#Part1" id="rfc.xref.Part1.17"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing">[Part1]</cite></a>, <a href="p1-messaging.html#field.components" title="Field value components">Section 3.2.6</a>> |
---|
1940 | |
---|
1941 | <a href="#imported.abnf" class="smpl">port</a> = <port, defined in <a href="#Part1" id="rfc.xref.Part1.18"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing">[Part1]</cite></a>, <a href="p1-messaging.html#uri" title="Uniform Resource Identifiers">Section 2.7</a>> |
---|
1942 | <a href="#imported.abnf" class="smpl">pseudonym</a> = <pseudonym, defined in <a href="#Part1" id="rfc.xref.Part1.19"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing">[Part1]</cite></a>, <a href="p1-messaging.html#header.via" title="Via">Section 5.7.1</a>> |
---|
1943 | <a href="#imported.abnf" class="smpl">uri-host</a> = <uri-host, defined in <a href="#Part1" id="rfc.xref.Part1.20"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing">[Part1]</cite></a>, <a href="p1-messaging.html#uri" title="Uniform Resource Identifiers">Section 2.7</a>> |
---|
1944 | </pre><p id="rfc.section.B.p.4">The rules below are defined in other parts:</p> |
---|
1945 | <div id="rfc.figure.u.15"></div><pre class="inline"> <a href="#imported.abnf" class="smpl">HTTP-date</a> = <HTTP-date, defined in <a href="#Part2" id="rfc.xref.Part2.9"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content">[Part2]</cite></a>, <a href="p2-semantics.html#http.date" title="Date/Time Formats">Section 7.1.1.1</a>> |
---|
1946 | </pre><h1 id="rfc.section.C"><a href="#rfc.section.C">C.</a> <a id="collected.abnf" href="#collected.abnf">Collected ABNF</a></h1> |
---|
1947 | <p id="rfc.section.C.p.1">In the collected ABNF below, list rules are expanded as per <a href="p1-messaging.html#notation" title="Syntax Notation">Section 1.2</a> of <a href="#Part1" id="rfc.xref.Part1.21"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing">[Part1]</cite></a>. |
---|
1948 | </p> |
---|
1949 | <div id="rfc.figure.u.16"></div><pre class="inline"><a href="#header.age" class="smpl">Age</a> = delta-seconds |
---|
1950 | |
---|
1951 | <a href="#header.cache-control" class="smpl">Cache-Control</a> = *( "," OWS ) cache-directive *( OWS "," [ OWS |
---|
1952 | cache-directive ] ) |
---|
1953 | |
---|
1954 | <a href="#header.expires" class="smpl">Expires</a> = HTTP-date |
---|
1955 | |
---|
1956 | <a href="#imported.abnf" class="smpl">HTTP-date</a> = <HTTP-date, defined in [Part2], Section 7.1.1.1> |
---|
1957 | |
---|
1958 | <a href="#imported.abnf" class="smpl">OWS</a> = <OWS, defined in [Part1], Section 3.2.3> |
---|
1959 | |
---|
1960 | <a href="#header.pragma" class="smpl">Pragma</a> = *( "," OWS ) pragma-directive *( OWS "," [ OWS |
---|
1961 | pragma-directive ] ) |
---|
1962 | |
---|
1963 | <a href="#header.warning" class="smpl">Warning</a> = *( "," OWS ) warning-value *( OWS "," [ OWS warning-value ] |
---|
1964 | ) |
---|
1965 | |
---|
1966 | <a href="#header.cache-control" class="smpl">cache-directive</a> = token [ "=" ( token / quoted-string ) ] |
---|
1967 | |
---|
1968 | <a href="#delta-seconds" class="smpl">delta-seconds</a> = 1*DIGIT |
---|
1969 | |
---|
1970 | <a href="#header.pragma" class="smpl">extension-pragma</a> = token [ "=" ( token / quoted-string ) ] |
---|
1971 | |
---|
1972 | <a href="#imported.abnf" class="smpl">field-name</a> = <field-name, defined in [Part1], Section 3.2> |
---|
1973 | |
---|
1974 | <a href="#imported.abnf" class="smpl">port</a> = <port, defined in [Part1], Section 2.7> |
---|
1975 | <a href="#header.pragma" class="smpl">pragma-directive</a> = "no-cache" / extension-pragma |
---|
1976 | <a href="#imported.abnf" class="smpl">pseudonym</a> = <pseudonym, defined in [Part1], Section 5.7.1> |
---|
1977 | |
---|
1978 | <a href="#imported.abnf" class="smpl">quoted-string</a> = <quoted-string, defined in [Part1], Section 3.2.6> |
---|
1979 | |
---|
1980 | <a href="#imported.abnf" class="smpl">token</a> = <token, defined in [Part1], Section 3.2.6> |
---|
1981 | |
---|
1982 | <a href="#imported.abnf" class="smpl">uri-host</a> = <uri-host, defined in [Part1], Section 2.7> |
---|
1983 | |
---|
1984 | <a href="#header.warning" class="smpl">warn-agent</a> = ( uri-host [ ":" port ] ) / pseudonym |
---|
1985 | <a href="#header.warning" class="smpl">warn-code</a> = 3DIGIT |
---|
1986 | <a href="#header.warning" class="smpl">warn-date</a> = DQUOTE HTTP-date DQUOTE |
---|
1987 | <a href="#header.warning" class="smpl">warn-text</a> = quoted-string |
---|
1988 | <a href="#header.warning" class="smpl">warning-value</a> = warn-code SP warn-agent SP warn-text [ SP warn-date |
---|
1989 | ] |
---|
1990 | </pre><h1 id="rfc.section.D"><a href="#rfc.section.D">D.</a> <a id="change.log" href="#change.log">Change Log (to be removed by RFC Editor before publication)</a></h1> |
---|
1991 | <p id="rfc.section.D.p.1">Changes up to the first Working Group Last Call draft are summarized in <<a href="http://trac.tools.ietf.org/html/draft-ietf-httpbis-p6-cache-19#appendix-C">http://trac.tools.ietf.org/html/draft-ietf-httpbis-p6-cache-19#appendix-C</a>>. |
---|
1992 | </p> |
---|
1993 | <h2 id="rfc.section.D.1"><a href="#rfc.section.D.1">D.1</a> <a id="changes.since.19" href="#changes.since.19">Since draft-ietf-httpbis-p6-cache-19</a></h2> |
---|
1994 | <p id="rfc.section.D.1.p.1">Closed issues: </p> |
---|
1995 | <ul> |
---|
1996 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/307">http://tools.ietf.org/wg/httpbis/trac/ticket/307</a>>: "untangle Cache-Control ABNF" |
---|
1997 | </li> |
---|
1998 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/353">http://tools.ietf.org/wg/httpbis/trac/ticket/353</a>>: "Multiple values in Cache-Control header fields" |
---|
1999 | </li> |
---|
2000 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/355">http://tools.ietf.org/wg/httpbis/trac/ticket/355</a>>: "Case sensitivity of header fields in CC values" |
---|
2001 | </li> |
---|
2002 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/356">http://tools.ietf.org/wg/httpbis/trac/ticket/356</a>>: "Spurious 'MAYs'" |
---|
2003 | </li> |
---|
2004 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/360">http://tools.ietf.org/wg/httpbis/trac/ticket/360</a>>: "enhance considerations for new cache control directives" |
---|
2005 | </li> |
---|
2006 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/361">http://tools.ietf.org/wg/httpbis/trac/ticket/361</a>>: "ABNF requirements for recipients" |
---|
2007 | </li> |
---|
2008 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/368">http://tools.ietf.org/wg/httpbis/trac/ticket/368</a>>: "note introduction of new IANA registries as normative changes" |
---|
2009 | </li> |
---|
2010 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/373">http://tools.ietf.org/wg/httpbis/trac/ticket/373</a>>: "broken prose in description of 'Vary'" |
---|
2011 | </li> |
---|
2012 | </ul> |
---|
2013 | <h2 id="rfc.section.D.2"><a href="#rfc.section.D.2">D.2</a> <a id="changes.since.20" href="#changes.since.20">Since draft-ietf-httpbis-p6-cache-20</a></h2> |
---|
2014 | <p id="rfc.section.D.2.p.1">Closed issues: </p> |
---|
2015 | <ul> |
---|
2016 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/375">http://tools.ietf.org/wg/httpbis/trac/ticket/375</a>>: "'Most Conservative'" |
---|
2017 | </li> |
---|
2018 | </ul> |
---|
2019 | <p id="rfc.section.D.2.p.2">Other changes: </p> |
---|
2020 | <ul> |
---|
2021 | <li>Conformance criteria and considerations regarding error handling are now defined in Part 1.</li> |
---|
2022 | <li>Move definition of "Vary" header field into Part 2.</li> |
---|
2023 | <li>Add security considerations with respect to cache poisoning and the "Set-Cookie" header field.</li> |
---|
2024 | </ul> |
---|
2025 | <h2 id="rfc.section.D.3"><a href="#rfc.section.D.3">D.3</a> <a id="changes.since.21" href="#changes.since.21">Since draft-ietf-httpbis-p6-cache-21</a></h2> |
---|
2026 | <p id="rfc.section.D.3.p.1">Closed issues: </p> |
---|
2027 | <ul> |
---|
2028 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/223">http://tools.ietf.org/wg/httpbis/trac/ticket/223</a>>: "Allowing heuristic caching for new status codes" |
---|
2029 | </li> |
---|
2030 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/406">http://tools.ietf.org/wg/httpbis/trac/ticket/406</a>>: "304 without validator" |
---|
2031 | </li> |
---|
2032 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/418">http://tools.ietf.org/wg/httpbis/trac/ticket/418</a>>: "No-Transform" |
---|
2033 | </li> |
---|
2034 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/430">http://tools.ietf.org/wg/httpbis/trac/ticket/430</a>>: "Revert prior change to the meaning of the public cache response directive. |
---|
2035 | </li> |
---|
2036 | </ul> |
---|
2037 | <h2 id="rfc.section.D.4"><a href="#rfc.section.D.4">D.4</a> <a id="changes.since.22" href="#changes.since.22">Since draft-ietf-httpbis-p6-cache-22</a></h2> |
---|
2038 | <p id="rfc.section.D.4.p.1">Closed issues: </p> |
---|
2039 | <ul> |
---|
2040 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/436">http://tools.ietf.org/wg/httpbis/trac/ticket/436</a>>: "explain list expansion in ABNF appendices" |
---|
2041 | </li> |
---|
2042 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/453">http://tools.ietf.org/wg/httpbis/trac/ticket/453</a>>: "Returning the freshest response" |
---|
2043 | </li> |
---|
2044 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/464">http://tools.ietf.org/wg/httpbis/trac/ticket/464</a>>: "placement of extension point considerations" |
---|
2045 | </li> |
---|
2046 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/469">http://tools.ietf.org/wg/httpbis/trac/ticket/469</a>>: "Editorial notes for p6" |
---|
2047 | </li> |
---|
2048 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/471">http://tools.ietf.org/wg/httpbis/trac/ticket/471</a>>: "Vary and future requests" |
---|
2049 | </li> |
---|
2050 | </ul> |
---|
2051 | <h2 id="rfc.section.D.5"><a href="#rfc.section.D.5">D.5</a> <a id="changes.since.23" href="#changes.since.23">Since draft-ietf-httpbis-p6-cache-23</a></h2> |
---|
2052 | <p id="rfc.section.D.5.p.1">Closed issues: </p> |
---|
2053 | <ul> |
---|
2054 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/486">http://tools.ietf.org/wg/httpbis/trac/ticket/486</a>>: "Requiring proxies to process warn-date" |
---|
2055 | </li> |
---|
2056 | </ul> |
---|
2057 | <h1 id="rfc.index"><a href="#rfc.index">Index</a></h1> |
---|
2058 | <p class="noprint"><a href="#rfc.index.1">1</a> <a href="#rfc.index.2">2</a> <a href="#rfc.index.A">A</a> <a href="#rfc.index.B">B</a> <a href="#rfc.index.C">C</a> <a href="#rfc.index.D">D</a> <a href="#rfc.index.E">E</a> <a href="#rfc.index.F">F</a> <a href="#rfc.index.G">G</a> <a href="#rfc.index.H">H</a> <a href="#rfc.index.M">M</a> <a href="#rfc.index.N">N</a> <a href="#rfc.index.O">O</a> <a href="#rfc.index.P">P</a> <a href="#rfc.index.R">R</a> <a href="#rfc.index.S">S</a> <a href="#rfc.index.T">T</a> <a href="#rfc.index.V">V</a> <a href="#rfc.index.W">W</a> |
---|
2059 | </p> |
---|
2060 | <div class="print2col"> |
---|
2061 | <ul class="ind"> |
---|
2062 | <li><a id="rfc.index.1" href="#rfc.index.1"><b>1</b></a><ul> |
---|
2063 | <li>110 (warn-code) <a href="#rfc.xref.warn.110.1">4.2.4</a>, <a href="#rfc.iref.49"><b>5.5.1</b></a>, <a href="#rfc.xref.warn.110.2">7.2.2</a></li> |
---|
2064 | <li>111 (warn-code) <a href="#rfc.iref.50"><b>5.5.2</b></a>, <a href="#rfc.xref.warn.111.1">7.2.2</a></li> |
---|
2065 | <li>112 (warn-code) <a href="#rfc.xref.warn.112.1">4.2.4</a>, <a href="#rfc.iref.51"><b>5.5.3</b></a>, <a href="#rfc.xref.warn.112.2">7.2.2</a></li> |
---|
2066 | <li>113 (warn-code) <a href="#rfc.xref.warn.113.1">4.2.2</a>, <a href="#rfc.iref.52"><b>5.5.4</b></a>, <a href="#rfc.xref.warn.113.2">7.2.2</a></li> |
---|
2067 | <li>199 (warn-code) <a href="#rfc.iref.53"><b>5.5.5</b></a>, <a href="#rfc.xref.warn.199.1">7.2.2</a></li> |
---|
2068 | </ul> |
---|
2069 | </li> |
---|
2070 | <li><a id="rfc.index.2" href="#rfc.index.2"><b>2</b></a><ul> |
---|
2071 | <li>214 (warn-code) <a href="#rfc.iref.54"><b>5.5.6</b></a>, <a href="#rfc.xref.warn.214.1">7.2.2</a></li> |
---|
2072 | <li>299 (warn-code) <a href="#rfc.iref.55"><b>5.5.7</b></a>, <a href="#rfc.xref.warn.299.1">7.2.2</a></li> |
---|
2073 | </ul> |
---|
2074 | </li> |
---|
2075 | <li><a id="rfc.index.A" href="#rfc.index.A"><b>A</b></a><ul> |
---|
2076 | <li>age <a href="#rfc.iref.a.1">4.2</a></li> |
---|
2077 | <li>Age header field <a href="#rfc.xref.header.age.1">4</a>, <a href="#rfc.xref.header.age.2">4.2.3</a>, <a href="#rfc.iref.a.2"><b>5.1</b></a>, <a href="#rfc.xref.header.age.3">7.3</a></li> |
---|
2078 | </ul> |
---|
2079 | </li> |
---|
2080 | <li><a id="rfc.index.B" href="#rfc.index.B"><b>B</b></a><ul> |
---|
2081 | <li><em>BCP90</em> <a href="#rfc.xref.BCP90.1">7.3</a>, <a href="#BCP90"><b>10.2</b></a></li> |
---|
2082 | </ul> |
---|
2083 | </li> |
---|
2084 | <li><a id="rfc.index.C" href="#rfc.index.C"><b>C</b></a><ul> |
---|
2085 | <li>cache <a href="#rfc.iref.c.1">1</a></li> |
---|
2086 | <li>cache entry <a href="#rfc.iref.c.2">2</a></li> |
---|
2087 | <li>cache key <a href="#rfc.iref.c.3">2</a>, <a href="#rfc.iref.c.4">2</a></li> |
---|
2088 | <li>Cache-Control header field <a href="#rfc.xref.header.cache-control.1">3</a>, <a href="#rfc.iref.c.5"><b>5.2</b></a>, <a href="#rfc.xref.header.cache-control.2">7.3</a>, <a href="#rfc.xref.header.cache-control.3">A</a></li> |
---|
2089 | </ul> |
---|
2090 | </li> |
---|
2091 | <li><a id="rfc.index.D" href="#rfc.index.D"><b>D</b></a><ul> |
---|
2092 | <li>Disconnected Operation (warn-text) <a href="#rfc.xref.warn.112.1">4.2.4</a>, <a href="#rfc.iref.d.1"><b>5.5.3</b></a>, <a href="#rfc.xref.warn.112.2">7.2.2</a></li> |
---|
2093 | </ul> |
---|
2094 | </li> |
---|
2095 | <li><a id="rfc.index.E" href="#rfc.index.E"><b>E</b></a><ul> |
---|
2096 | <li>Expires header field <a href="#rfc.xref.header.expires.1">3</a>, <a href="#rfc.xref.header.expires.2">4.2</a>, <a href="#rfc.xref.header.expires.3">4.2.1</a>, <a href="#rfc.iref.e.2"><b>5.3</b></a>, <a href="#rfc.xref.header.expires.4">7.3</a>, <a href="#rfc.xref.header.expires.5">A</a></li> |
---|
2097 | <li>explicit expiration time <a href="#rfc.iref.e.1">4.2</a></li> |
---|
2098 | </ul> |
---|
2099 | </li> |
---|
2100 | <li><a id="rfc.index.F" href="#rfc.index.F"><b>F</b></a><ul> |
---|
2101 | <li>fresh <a href="#rfc.iref.f.1">4.2</a></li> |
---|
2102 | <li>freshness lifetime <a href="#rfc.iref.f.2">4.2</a></li> |
---|
2103 | </ul> |
---|
2104 | </li> |
---|
2105 | <li><a id="rfc.index.G" href="#rfc.index.G"><b>G</b></a><ul> |
---|
2106 | <li><tt>Grammar</tt> |
---|
2107 | <ul> |
---|
2108 | <li><tt>Age</tt> <a href="#rfc.iref.g.2"><b>5.1</b></a></li> |
---|
2109 | <li><tt>Cache-Control</tt> <a href="#rfc.iref.g.3"><b>5.2</b></a></li> |
---|
2110 | <li><tt>cache-directive</tt> <a href="#rfc.iref.g.4"><b>5.2</b></a></li> |
---|
2111 | <li><tt>delta-seconds</tt> <a href="#rfc.iref.g.1"><b>1.2.1</b></a></li> |
---|
2112 | <li><tt>Expires</tt> <a href="#rfc.iref.g.5"><b>5.3</b></a></li> |
---|
2113 | <li><tt>extension-pragma</tt> <a href="#rfc.iref.g.8"><b>5.4</b></a></li> |
---|
2114 | <li><tt>Pragma</tt> <a href="#rfc.iref.g.6"><b>5.4</b></a></li> |
---|
2115 | <li><tt>pragma-directive</tt> <a href="#rfc.iref.g.7"><b>5.4</b></a></li> |
---|
2116 | <li><tt>warn-agent</tt> <a href="#rfc.iref.g.12"><b>5.5</b></a></li> |
---|
2117 | <li><tt>warn-code</tt> <a href="#rfc.iref.g.11"><b>5.5</b></a></li> |
---|
2118 | <li><tt>warn-date</tt> <a href="#rfc.iref.g.14"><b>5.5</b></a></li> |
---|
2119 | <li><tt>warn-text</tt> <a href="#rfc.iref.g.13"><b>5.5</b></a></li> |
---|
2120 | <li><tt>Warning</tt> <a href="#rfc.iref.g.9"><b>5.5</b></a></li> |
---|
2121 | <li><tt>warning-value</tt> <a href="#rfc.iref.g.10"><b>5.5</b></a></li> |
---|
2122 | </ul> |
---|
2123 | </li> |
---|
2124 | </ul> |
---|
2125 | </li> |
---|
2126 | <li><a id="rfc.index.H" href="#rfc.index.H"><b>H</b></a><ul> |
---|
2127 | <li>Heuristic Expiration (warn-text) <a href="#rfc.xref.warn.113.1">4.2.2</a>, <a href="#rfc.iref.h.2"><b>5.5.4</b></a>, <a href="#rfc.xref.warn.113.2">7.2.2</a></li> |
---|
2128 | <li>heuristic expiration time <a href="#rfc.iref.h.1">4.2</a></li> |
---|
2129 | </ul> |
---|
2130 | </li> |
---|
2131 | <li><a id="rfc.index.M" href="#rfc.index.M"><b>M</b></a><ul> |
---|
2132 | <li>max-age (cache directive) <a href="#rfc.iref.m.1"><b>5.2.1.1</b></a>, <a href="#rfc.iref.m.5"><b>5.2.2.8</b></a></li> |
---|
2133 | <li>max-stale (cache directive) <a href="#rfc.iref.m.2"><b>5.2.1.2</b></a></li> |
---|
2134 | <li>min-fresh (cache directive) <a href="#rfc.iref.m.3"><b>5.2.1.3</b></a></li> |
---|
2135 | <li>Miscellaneous Persistent Warning (warn-text) <a href="#rfc.iref.m.7"><b>5.5.7</b></a>, <a href="#rfc.xref.warn.299.1">7.2.2</a></li> |
---|
2136 | <li>Miscellaneous Warning (warn-text) <a href="#rfc.iref.m.6"><b>5.5.5</b></a>, <a href="#rfc.xref.warn.199.1">7.2.2</a></li> |
---|
2137 | <li>must-revalidate (cache directive) <a href="#rfc.iref.m.4"><b>5.2.2.1</b></a></li> |
---|
2138 | </ul> |
---|
2139 | </li> |
---|
2140 | <li><a id="rfc.index.N" href="#rfc.index.N"><b>N</b></a><ul> |
---|
2141 | <li>no-cache (cache directive) <a href="#rfc.iref.n.1"><b>5.2.1.4</b></a>, <a href="#rfc.iref.n.4"><b>5.2.2.2</b></a></li> |
---|
2142 | <li>no-store (cache directive) <a href="#rfc.iref.n.2"><b>5.2.1.5</b></a>, <a href="#rfc.iref.n.5"><b>5.2.2.3</b></a></li> |
---|
2143 | <li>no-transform (cache directive) <a href="#rfc.iref.n.3"><b>5.2.1.6</b></a>, <a href="#rfc.iref.n.6"><b>5.2.2.4</b></a></li> |
---|
2144 | </ul> |
---|
2145 | </li> |
---|
2146 | <li><a id="rfc.index.O" href="#rfc.index.O"><b>O</b></a><ul> |
---|
2147 | <li>only-if-cached (cache directive) <a href="#rfc.iref.o.1"><b>5.2.1.7</b></a></li> |
---|
2148 | </ul> |
---|
2149 | </li> |
---|
2150 | <li><a id="rfc.index.P" href="#rfc.index.P"><b>P</b></a><ul> |
---|
2151 | <li><em>Part1</em> <a href="#rfc.xref.Part1.1">1.1</a>, <a href="#rfc.xref.Part1.2">1.2</a>, <a href="#rfc.xref.Part1.3">3.1</a>, <a href="#rfc.xref.Part1.4">4</a>, <a href="#rfc.xref.Part1.5">4.1</a>, <a href="#rfc.xref.Part1.6">4.4</a>, <a href="#rfc.xref.Part1.7">4.4</a>, <a href="#rfc.xref.Part1.8">4.4</a>, <a href="#rfc.xref.Part1.9">5.2.1.6</a>, <a href="#rfc.xref.Part1.10">5.2.2.4</a>, <a href="#rfc.xref.Part1.11">8</a>, <a href="#rfc.xref.Part1.12">9</a>, <a href="#Part1"><b>10.1</b></a>, <a href="#rfc.xref.Part1.13">B</a>, <a href="#rfc.xref.Part1.14">B</a>, <a href="#rfc.xref.Part1.15">B</a>, <a href="#rfc.xref.Part1.16">B</a>, <a href="#rfc.xref.Part1.17">B</a>, <a href="#rfc.xref.Part1.18">B</a>, <a href="#rfc.xref.Part1.19">B</a>, <a href="#rfc.xref.Part1.20">B</a>, <a href="#rfc.xref.Part1.21">C</a><ul> |
---|
2152 | <li><em>Section 1.2</em> <a href="#rfc.xref.Part1.21">C</a></li> |
---|
2153 | <li><em>Section 2.5</em> <a href="#rfc.xref.Part1.1">1.1</a></li> |
---|
2154 | <li><em>Section 2.7</em> <a href="#rfc.xref.Part1.18">B</a>, <a href="#rfc.xref.Part1.20">B</a></li> |
---|
2155 | <li><em>Section 3.2</em> <a href="#rfc.xref.Part1.5">4.1</a>, <a href="#rfc.xref.Part1.15">B</a></li> |
---|
2156 | <li><em>Section 3.2.3</em> <a href="#rfc.xref.Part1.14">B</a></li> |
---|
2157 | <li><em>Section 3.2.6</em> <a href="#rfc.xref.Part1.16">B</a>, <a href="#rfc.xref.Part1.17">B</a></li> |
---|
2158 | <li><em>Section 5.5</em> <a href="#rfc.xref.Part1.4">4</a>, <a href="#rfc.xref.Part1.6">4.4</a>, <a href="#rfc.xref.Part1.7">4.4</a>, <a href="#rfc.xref.Part1.8">4.4</a></li> |
---|
2159 | <li><em>Section 5.7.1</em> <a href="#rfc.xref.Part1.19">B</a></li> |
---|
2160 | <li><em>Section 5.7.2</em> <a href="#rfc.xref.Part1.9">5.2.1.6</a>, <a href="#rfc.xref.Part1.10">5.2.2.4</a></li> |
---|
2161 | <li><em>Section 7</em> <a href="#rfc.xref.Part1.2">1.2</a></li> |
---|
2162 | <li><em>Section 10</em> <a href="#rfc.xref.Part1.12">9</a></li> |
---|
2163 | </ul> |
---|
2164 | </li> |
---|
2165 | <li><em>Part2</em> <a href="#rfc.xref.Part2.1">2</a>, <a href="#rfc.xref.Part2.2">2</a>, <a href="#rfc.xref.Part2.3">4</a>, <a href="#rfc.xref.Part2.4">4.1</a>, <a href="#rfc.xref.Part2.5">4.2.3</a>, <a href="#rfc.xref.Part2.6">4.4</a>, <a href="#rfc.xref.Part2.7">5.3</a>, <a href="#rfc.xref.Part2.8">8</a>, <a href="#Part2"><b>10.1</b></a>, <a href="#rfc.xref.Part2.9">B</a><ul> |
---|
2166 | <li><em>Section 4.2.1</em> <a href="#rfc.xref.Part2.3">4</a>, <a href="#rfc.xref.Part2.6">4.4</a></li> |
---|
2167 | <li><em>Section 4.3.1</em> <a href="#rfc.xref.Part2.2">2</a></li> |
---|
2168 | <li><em>Section 7.1.1.1</em> <a href="#rfc.xref.Part2.7">5.3</a>, <a href="#rfc.xref.Part2.9">B</a></li> |
---|
2169 | <li><em>Section 7.1.1.2</em> <a href="#rfc.xref.Part2.5">4.2.3</a></li> |
---|
2170 | <li><em>Section 7.1.4</em> <a href="#rfc.xref.Part2.4">4.1</a></li> |
---|
2171 | </ul> |
---|
2172 | </li> |
---|
2173 | <li><em>Part4</em> <a href="#rfc.xref.Part4.1">4.2.2</a>, <a href="#rfc.xref.Part4.2">4.3</a>, <a href="#rfc.xref.Part4.3">4.3.1</a>, <a href="#rfc.xref.Part4.4">4.3.1</a>, <a href="#rfc.xref.Part4.5">4.3.2</a>, <a href="#rfc.xref.Part4.6">4.3.2</a>, <a href="#rfc.xref.Part4.7">4.3.2</a>, <a href="#rfc.xref.Part4.8">4.3.4</a>, <a href="#Part4"><b>10.1</b></a><ul> |
---|
2174 | <li><em>Section 2.1</em> <a href="#rfc.xref.Part4.8">4.3.4</a></li> |
---|
2175 | <li><em>Section 2.2</em> <a href="#rfc.xref.Part4.1">4.2.2</a>, <a href="#rfc.xref.Part4.3">4.3.1</a></li> |
---|
2176 | <li><em>Section 2.3</em> <a href="#rfc.xref.Part4.4">4.3.1</a></li> |
---|
2177 | <li><em>Section 3.2</em> <a href="#rfc.xref.Part4.6">4.3.2</a></li> |
---|
2178 | <li><em>Section 3.3</em> <a href="#rfc.xref.Part4.7">4.3.2</a></li> |
---|
2179 | <li><em>Section 6</em> <a href="#rfc.xref.Part4.5">4.3.2</a></li> |
---|
2180 | </ul> |
---|
2181 | </li> |
---|
2182 | <li><em>Part5</em> <a href="#rfc.xref.Part5.1">3.1</a>, <a href="#rfc.xref.Part5.2">3.3</a>, <a href="#rfc.xref.Part5.3">3.3</a>, <a href="#rfc.xref.Part5.4">4.3.2</a>, <a href="#rfc.xref.Part5.5">4.3.2</a>, <a href="#Part5"><b>10.1</b></a><ul> |
---|
2183 | <li><em>Section 3.2</em> <a href="#rfc.xref.Part5.5">4.3.2</a></li> |
---|
2184 | <li><em>Section 4.3</em> <a href="#rfc.xref.Part5.3">3.3</a></li> |
---|
2185 | </ul> |
---|
2186 | </li> |
---|
2187 | <li><em>Part7</em> <a href="#rfc.xref.Part7.1">3</a>, <a href="#rfc.xref.Part7.2">3.2</a>, <a href="#Part7"><b>10.1</b></a><ul> |
---|
2188 | <li><em>Section 4.1</em> <a href="#rfc.xref.Part7.1">3</a>, <a href="#rfc.xref.Part7.2">3.2</a></li> |
---|
2189 | </ul> |
---|
2190 | </li> |
---|
2191 | <li>Pragma header field <a href="#rfc.xref.header.pragma.1">4</a>, <a href="#rfc.iref.p.5"><b>5.4</b></a>, <a href="#rfc.xref.header.pragma.2">7.3</a>, <a href="#rfc.xref.header.pragma.3">A</a></li> |
---|
2192 | <li>private (cache directive) <a href="#rfc.iref.p.3"><b>5.2.2.6</b></a></li> |
---|
2193 | <li>private cache <a href="#rfc.iref.p.1">1</a></li> |
---|
2194 | <li>proxy-revalidate (cache directive) <a href="#rfc.iref.p.4"><b>5.2.2.7</b></a></li> |
---|
2195 | <li>public (cache directive) <a href="#rfc.iref.p.2"><b>5.2.2.5</b></a></li> |
---|
2196 | </ul> |
---|
2197 | </li> |
---|
2198 | <li><a id="rfc.index.R" href="#rfc.index.R"><b>R</b></a><ul> |
---|
2199 | <li>Response is Stale (warn-text) <a href="#rfc.xref.warn.110.1">4.2.4</a>, <a href="#rfc.iref.r.1"><b>5.5.1</b></a>, <a href="#rfc.xref.warn.110.2">7.2.2</a></li> |
---|
2200 | <li>Revalidation Failed (warn-text) <a href="#rfc.iref.r.2"><b>5.5.2</b></a>, <a href="#rfc.xref.warn.111.1">7.2.2</a></li> |
---|
2201 | <li><em>RFC1305</em> <a href="#rfc.xref.RFC1305.1">4.2.3</a>, <a href="#RFC1305"><b>10.2</b></a></li> |
---|
2202 | <li><em>RFC2119</em> <a href="#rfc.xref.RFC2119.1">1.1</a>, <a href="#RFC2119"><b>10.1</b></a></li> |
---|
2203 | <li><em>RFC2616</em> <a href="#rfc.xref.RFC2616.1">4.2.2</a>, <a href="#RFC2616"><b>10.2</b></a><ul> |
---|
2204 | <li><em>Section 13.9</em> <a href="#rfc.xref.RFC2616.1">4.2.2</a></li> |
---|
2205 | </ul> |
---|
2206 | </li> |
---|
2207 | <li><em>RFC5226</em> <a href="#rfc.xref.RFC5226.1">7.1.1</a>, <a href="#rfc.xref.RFC5226.2">7.2.1</a>, <a href="#RFC5226"><b>10.2</b></a><ul> |
---|
2208 | <li><em>Section 4.1</em> <a href="#rfc.xref.RFC5226.1">7.1.1</a>, <a href="#rfc.xref.RFC5226.2">7.2.1</a></li> |
---|
2209 | </ul> |
---|
2210 | </li> |
---|
2211 | <li><em>RFC5234</em> <a href="#rfc.xref.RFC5234.1">1.2</a>, <a href="#RFC5234"><b>10.1</b></a>, <a href="#rfc.xref.RFC5234.2">B</a><ul> |
---|
2212 | <li><em>Appendix B.1</em> <a href="#rfc.xref.RFC5234.2">B</a></li> |
---|
2213 | </ul> |
---|
2214 | </li> |
---|
2215 | <li><em>RFC5861</em> <a href="#rfc.xref.RFC5861.1">7.1.3</a>, <a href="#rfc.xref.RFC5861.2">7.1.3</a>, <a href="#RFC5861"><b>10.2</b></a><ul> |
---|
2216 | <li><em>Section 3</em> <a href="#rfc.xref.RFC5861.2">7.1.3</a></li> |
---|
2217 | <li><em>Section 4</em> <a href="#rfc.xref.RFC5861.1">7.1.3</a></li> |
---|
2218 | </ul> |
---|
2219 | </li> |
---|
2220 | <li><em>RFC6265</em> <a href="#rfc.xref.RFC6265.1">8</a>, <a href="#RFC6265"><b>10.2</b></a></li> |
---|
2221 | </ul> |
---|
2222 | </li> |
---|
2223 | <li><a id="rfc.index.S" href="#rfc.index.S"><b>S</b></a><ul> |
---|
2224 | <li>s-maxage (cache directive) <a href="#rfc.iref.s.4"><b>5.2.2.9</b></a></li> |
---|
2225 | <li>shared cache <a href="#rfc.iref.s.1">1</a></li> |
---|
2226 | <li>stale <a href="#rfc.iref.s.2">4.2</a></li> |
---|
2227 | <li>strong validator <a href="#rfc.iref.s.3">4.3.4</a></li> |
---|
2228 | </ul> |
---|
2229 | </li> |
---|
2230 | <li><a id="rfc.index.T" href="#rfc.index.T"><b>T</b></a><ul> |
---|
2231 | <li>Transformation Applied (warn-text) <a href="#rfc.iref.t.1"><b>5.5.6</b></a>, <a href="#rfc.xref.warn.214.1">7.2.2</a></li> |
---|
2232 | </ul> |
---|
2233 | </li> |
---|
2234 | <li><a id="rfc.index.V" href="#rfc.index.V"><b>V</b></a><ul> |
---|
2235 | <li>validator <a href="#rfc.iref.v.1">4.3.1</a></li> |
---|
2236 | </ul> |
---|
2237 | </li> |
---|
2238 | <li><a id="rfc.index.W" href="#rfc.index.W"><b>W</b></a><ul> |
---|
2239 | <li>Warning header field <a href="#rfc.xref.header.warning.1">3.3</a>, <a href="#rfc.xref.header.warning.2">4.3.4</a>, <a href="#rfc.xref.header.warning.3">4.3.5</a>, <a href="#rfc.iref.w.1"><b>5.5</b></a>, <a href="#rfc.xref.header.warning.4">7.3</a>, <a href="#rfc.xref.header.warning.5">A</a></li> |
---|
2240 | </ul> |
---|
2241 | </li> |
---|
2242 | </ul> |
---|
2243 | </div> |
---|
2244 | </body> |
---|
2245 | </html> |
---|