[52] | 1 | <!DOCTYPE html |
---|
| 2 | PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
---|
| 3 | <html lang="en"> |
---|
[573] | 4 | <head profile="http://www.w3.org/2006/03/hcard http://dublincore.org/documents/2008/08/04/dc-html/"> |
---|
[52] | 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
---|
[1864] | 6 | <title>Hypertext Transfer Protocol (HTTP/1.1): Caching</title><script> |
---|
[1522] | 7 | var buttonsAdded = false; |
---|
| 8 | |
---|
| 9 | function init() { |
---|
| 10 | var fb = document.createElement("div"); |
---|
[1528] | 11 | fb.className = "feedback noprint"; |
---|
[1522] | 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; |
---|
[1528] | 66 | section = section.replace("\u00a0", " "); |
---|
[1522] | 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"); |
---|
[1528] | 74 | button.className = "fbbutton noprint"; |
---|
[1522] | 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); |
---|
[1528] | 83 | if (b.className == "fbbutton noprint") { |
---|
[1522] | 84 | node.removeChild(b); |
---|
| 85 | } |
---|
| 86 | } |
---|
| 87 | } |
---|
| 88 | }</script><style type="text/css" title="Xml2Rfc (sans serif)"> |
---|
[52] | 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; |
---|
[1667] | 110 | margin-right: 2em; |
---|
[52] | 111 | } |
---|
| 112 | cite { |
---|
| 113 | font-style: normal; |
---|
| 114 | } |
---|
[540] | 115 | div.note { |
---|
| 116 | margin-left: 2em; |
---|
| 117 | } |
---|
[52] | 118 | dl { |
---|
| 119 | margin-left: 2em; |
---|
| 120 | } |
---|
[729] | 121 | ul.empty { |
---|
| 122 | list-style-type: none; |
---|
| 123 | } |
---|
| 124 | ul.empty li { |
---|
[52] | 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 | } |
---|
[446] | 149 | h3, h4, h5, h6 { |
---|
[52] | 150 | font-size: 10pt; |
---|
| 151 | page-break-after: avoid; |
---|
| 152 | } |
---|
[446] | 153 | h2 a, h3 a, h4 a, h5 a, h6 a { |
---|
[52] | 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 | } |
---|
[1145] | 165 | ol.la { |
---|
| 166 | list-style-type: lower-alpha; |
---|
| 167 | } |
---|
| 168 | ol.ua { |
---|
| 169 | list-style-type: upper-alpha; |
---|
| 170 | } |
---|
[52] | 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; |
---|
[1667] | 181 | page-break-inside: avoid; |
---|
[52] | 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 | } |
---|
[247] | 205 | sup { |
---|
| 206 | font-size: 60%; |
---|
| 207 | } |
---|
[52] | 208 | table { |
---|
| 209 | margin-left: 2em; |
---|
| 210 | } |
---|
[253] | 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 | } |
---|
[669] | 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 | } |
---|
[454] | 250 | caption { |
---|
| 251 | caption-side: bottom; |
---|
| 252 | font-weight: bold; |
---|
| 253 | font-size: 9pt; |
---|
| 254 | margin-top: .5em; |
---|
| 255 | } |
---|
| 256 | |
---|
[52] | 257 | table.header { |
---|
[729] | 258 | border-spacing: 1px; |
---|
[52] | 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 | } |
---|
[729] | 270 | table.header td { |
---|
[52] | 271 | background-color: gray; |
---|
| 272 | width: 50%; |
---|
| 273 | } |
---|
[729] | 274 | table.header a { |
---|
[227] | 275 | color: white; |
---|
| 276 | } |
---|
[52] | 277 | td.reference { |
---|
| 278 | vertical-align: top; |
---|
| 279 | white-space: nowrap; |
---|
| 280 | padding-right: 1em; |
---|
| 281 | } |
---|
| 282 | thead { |
---|
| 283 | display:table-header-group; |
---|
| 284 | } |
---|
[1072] | 285 | ul.toc, ul.toc ul { |
---|
[52] | 286 | list-style: none; |
---|
| 287 | margin-left: 1.5em; |
---|
| 288 | padding-left: 0em; |
---|
| 289 | } |
---|
[1072] | 290 | ul.toc li { |
---|
[52] | 291 | line-height: 150%; |
---|
| 292 | font-weight: bold; |
---|
| 293 | font-size: 10pt; |
---|
| 294 | margin-left: 0em; |
---|
| 295 | } |
---|
[1072] | 296 | ul.toc li li { |
---|
[52] | 297 | line-height: normal; |
---|
| 298 | font-weight: normal; |
---|
| 299 | font-size: 9pt; |
---|
| 300 | margin-left: 0em; |
---|
| 301 | } |
---|
[1072] | 302 | li.excluded { |
---|
[52] | 303 | font-size: 0pt; |
---|
| 304 | } |
---|
| 305 | ul p { |
---|
| 306 | margin-left: 0em; |
---|
| 307 | } |
---|
[1095] | 308 | ul.ind, ul.ind ul { |
---|
[52] | 309 | list-style: none; |
---|
| 310 | margin-left: 1.5em; |
---|
| 311 | padding-left: 0em; |
---|
[440] | 312 | page-break-before: avoid; |
---|
[52] | 313 | } |
---|
[1072] | 314 | ul.ind li { |
---|
[52] | 315 | font-weight: bold; |
---|
| 316 | line-height: 200%; |
---|
| 317 | margin-left: 0em; |
---|
| 318 | } |
---|
[1072] | 319 | ul.ind li li { |
---|
[52] | 320 | font-weight: normal; |
---|
| 321 | line-height: 150%; |
---|
| 322 | margin-left: 0em; |
---|
| 323 | } |
---|
[662] | 324 | .avoidbreak { |
---|
| 325 | page-break-inside: avoid; |
---|
| 326 | } |
---|
[52] | 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 | .hidden { |
---|
| 359 | display: none; |
---|
| 360 | } |
---|
| 361 | .left { |
---|
| 362 | text-align: left; |
---|
| 363 | } |
---|
| 364 | .right { |
---|
| 365 | text-align: right; |
---|
| 366 | } |
---|
| 367 | .title { |
---|
| 368 | color: #990000; |
---|
| 369 | font-size: 18pt; |
---|
| 370 | line-height: 18pt; |
---|
| 371 | font-weight: bold; |
---|
| 372 | text-align: center; |
---|
| 373 | margin-top: 36pt; |
---|
| 374 | } |
---|
| 375 | .vcardline { |
---|
| 376 | display: block; |
---|
| 377 | } |
---|
| 378 | .warning { |
---|
| 379 | font-size: 14pt; |
---|
| 380 | background-color: yellow; |
---|
| 381 | } |
---|
[1522] | 382 | .feedback { |
---|
| 383 | position: fixed; |
---|
| 384 | bottom: 1%; |
---|
| 385 | right: 1%; |
---|
| 386 | padding: 3px 5px; |
---|
| 387 | color: white; |
---|
| 388 | border-radius: 5px; |
---|
| 389 | background: #a00000; |
---|
| 390 | border: 1px solid silver; |
---|
| 391 | } |
---|
| 392 | .fbbutton { |
---|
| 393 | margin-left: 1em; |
---|
| 394 | color: #303030; |
---|
| 395 | font-size: small; |
---|
| 396 | font-weight: normal; |
---|
| 397 | background: #d0d000; |
---|
| 398 | padding: 1px 4px; |
---|
| 399 | border: 1px solid silver; |
---|
| 400 | border-radius: 5px; |
---|
| 401 | } |
---|
[52] | 402 | |
---|
| 403 | @media print { |
---|
| 404 | .noprint { |
---|
| 405 | display: none; |
---|
| 406 | } |
---|
| 407 | |
---|
| 408 | a { |
---|
| 409 | color: black; |
---|
| 410 | text-decoration: none; |
---|
| 411 | } |
---|
| 412 | |
---|
| 413 | table.header { |
---|
| 414 | width: 90%; |
---|
| 415 | } |
---|
| 416 | |
---|
| 417 | td.header { |
---|
| 418 | width: 50%; |
---|
| 419 | color: black; |
---|
| 420 | background-color: white; |
---|
| 421 | vertical-align: top; |
---|
| 422 | font-size: 12pt; |
---|
| 423 | } |
---|
| 424 | |
---|
[1825] | 425 | ul.toc a:nth-child(2)::after { |
---|
[52] | 426 | content: leader('.') target-counter(attr(href), page); |
---|
| 427 | } |
---|
| 428 | |
---|
[1072] | 429 | ul.ind li li a { |
---|
[52] | 430 | content: target-counter(attr(href), page); |
---|
| 431 | } |
---|
| 432 | |
---|
| 433 | .print2col { |
---|
| 434 | column-count: 2; |
---|
[1528] | 435 | -moz-column-count: 2; |
---|
[52] | 436 | column-fill: auto; |
---|
| 437 | } |
---|
| 438 | } |
---|
| 439 | |
---|
| 440 | @page { |
---|
| 441 | @top-left { |
---|
[754] | 442 | content: "Internet-Draft"; |
---|
[52] | 443 | } |
---|
| 444 | @top-right { |
---|
[1845] | 445 | content: "September 2012"; |
---|
[52] | 446 | } |
---|
| 447 | @top-center { |
---|
[1864] | 448 | content: "HTTP/1.1 Caching"; |
---|
[52] | 449 | } |
---|
| 450 | @bottom-left { |
---|
| 451 | content: "Fielding, et al."; |
---|
| 452 | } |
---|
| 453 | @bottom-center { |
---|
[1873] | 454 | content: "Expires March 13, 2013"; |
---|
[52] | 455 | } |
---|
| 456 | @bottom-right { |
---|
| 457 | content: "[Page " counter(page) "]"; |
---|
| 458 | } |
---|
| 459 | } |
---|
| 460 | |
---|
| 461 | @page:first { |
---|
| 462 | @top-left { |
---|
| 463 | content: normal; |
---|
| 464 | } |
---|
| 465 | @top-right { |
---|
| 466 | content: normal; |
---|
| 467 | } |
---|
| 468 | @top-center { |
---|
| 469 | content: normal; |
---|
| 470 | } |
---|
| 471 | } |
---|
| 472 | </style><link rel="Contents" href="#rfc.toc"> |
---|
| 473 | <link rel="Author" href="#rfc.authors"> |
---|
[754] | 474 | <link rel="Copyright" href="#rfc.copyrightnotice"> |
---|
[52] | 475 | <link rel="Index" href="#rfc.index"> |
---|
| 476 | <link rel="Chapter" title="1 Introduction" href="#rfc.section.1"> |
---|
[1751] | 477 | <link rel="Chapter" title="2 Overview of Cache Operation" href="#rfc.section.2"> |
---|
| 478 | <link rel="Chapter" title="3 Storing Responses in Caches" href="#rfc.section.3"> |
---|
| 479 | <link rel="Chapter" title="4 Constructing Responses from Caches" href="#rfc.section.4"> |
---|
| 480 | <link rel="Chapter" title="5 Updating Caches with HEAD Responses" href="#rfc.section.5"> |
---|
| 481 | <link rel="Chapter" title="6 Request Methods that Invalidate" href="#rfc.section.6"> |
---|
| 482 | <link rel="Chapter" title="7 Header Field Definitions" href="#rfc.section.7"> |
---|
| 483 | <link rel="Chapter" title="8 History Lists" href="#rfc.section.8"> |
---|
| 484 | <link rel="Chapter" title="9 IANA Considerations" href="#rfc.section.9"> |
---|
| 485 | <link rel="Chapter" title="10 Security Considerations" href="#rfc.section.10"> |
---|
| 486 | <link rel="Chapter" title="11 Acknowledgments" href="#rfc.section.11"> |
---|
| 487 | <link rel="Chapter" href="#rfc.section.12" title="12 References"> |
---|
[912] | 488 | <link rel="Appendix" title="A Changes from RFC 2616" href="#rfc.section.A"> |
---|
[1805] | 489 | <link rel="Appendix" title="B Imported ABNF" href="#rfc.section.B"> |
---|
| 490 | <link rel="Appendix" title="C Collected ABNF" href="#rfc.section.C"> |
---|
| 491 | <link rel="Appendix" title="D Change Log (to be removed by RFC Editor before publication)" href="#rfc.section.D"> |
---|
[1472] | 492 | <link href="p5-range.html" rel="prev"> |
---|
| 493 | <link href="p7-auth.html" rel="next"> |
---|
[1867] | 494 | <meta name="generator" content="http://greenbytes.de/tech/webdav/rfc2629.xslt, Revision 1.588, 2012-08-25 12:28:24, XSLT vendor: SAXON 8.9 from Saxonica http://www.saxonica.com/"> |
---|
[754] | 495 | <link rel="schema.dct" href="http://purl.org/dc/terms/"> |
---|
| 496 | <meta name="dct.creator" content="Fielding, R."> |
---|
| 497 | <meta name="dct.creator" content="Lafon, Y."> |
---|
| 498 | <meta name="dct.creator" content="Nottingham, M."> |
---|
| 499 | <meta name="dct.creator" content="Reschke, J. F."> |
---|
| 500 | <meta name="dct.identifier" content="urn:ietf:id:draft-ietf-httpbis-p6-cache-latest"> |
---|
[1873] | 501 | <meta name="dct.issued" scheme="ISO8601" content="2012-09-09"> |
---|
[754] | 502 | <meta name="dct.replaces" content="urn:ietf:rfc:2616"> |
---|
[1808] | 503 | <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."> |
---|
| 504 | <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."> |
---|
[52] | 505 | </head> |
---|
[1522] | 506 | <body onload="init();"> |
---|
[729] | 507 | <table class="header"> |
---|
| 508 | <tbody> |
---|
| 509 | <tr> |
---|
| 510 | <td class="left">HTTPbis Working Group</td> |
---|
| 511 | <td class="right">R. Fielding, Editor</td> |
---|
| 512 | </tr> |
---|
| 513 | <tr> |
---|
[754] | 514 | <td class="left">Internet-Draft</td> |
---|
[1106] | 515 | <td class="right">Adobe</td> |
---|
[729] | 516 | </tr> |
---|
| 517 | <tr> |
---|
[741] | 518 | <td class="left">Obsoletes: <a href="http://tools.ietf.org/html/rfc2616">2616</a> (if approved) |
---|
[729] | 519 | </td> |
---|
[1586] | 520 | <td class="right">Y. Lafon, Editor</td> |
---|
[729] | 521 | </tr> |
---|
| 522 | <tr> |
---|
[741] | 523 | <td class="left">Intended status: Standards Track</td> |
---|
[729] | 524 | <td class="right">W3C</td> |
---|
| 525 | </tr> |
---|
| 526 | <tr> |
---|
[1873] | 527 | <td class="left">Expires: March 13, 2013</td> |
---|
[729] | 528 | <td class="right">M. Nottingham, Editor</td> |
---|
| 529 | </tr> |
---|
| 530 | <tr> |
---|
| 531 | <td class="left"></td> |
---|
[832] | 532 | <td class="right">J. Reschke, Editor</td> |
---|
[729] | 533 | </tr> |
---|
| 534 | <tr> |
---|
| 535 | <td class="left"></td> |
---|
| 536 | <td class="right">greenbytes</td> |
---|
| 537 | </tr> |
---|
| 538 | <tr> |
---|
| 539 | <td class="left"></td> |
---|
[1873] | 540 | <td class="right">September 9, 2012</td> |
---|
[729] | 541 | </tr> |
---|
| 542 | </tbody> |
---|
[52] | 543 | </table> |
---|
[1864] | 544 | <p class="title">Hypertext Transfer Protocol (HTTP/1.1): Caching<br><span class="filename">draft-ietf-httpbis-p6-cache-latest</span></p> |
---|
[723] | 545 | <h1 id="rfc.abstract"><a href="#rfc.abstract">Abstract</a></h1> |
---|
[1373] | 546 | <p>The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypertext information |
---|
[1808] | 547 | systems. This document defines requirements on HTTP caches and the associated header fields that control cache behavior or |
---|
| 548 | indicate cacheable response messages. |
---|
[723] | 549 | </p> |
---|
| 550 | <h1 id="rfc.note.1"><a href="#rfc.note.1">Editorial Note (To be removed by RFC Editor)</a></h1> |
---|
[1764] | 551 | <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>>. |
---|
[723] | 552 | </p> |
---|
[1268] | 553 | <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>>. |
---|
| 554 | </p> |
---|
[1807] | 555 | <p>The changes in this draft are summarized in <a href="#changes.since.20" title="Since draft-ietf-httpbis-p6-cache-20">Appendix D.2</a>. |
---|
[723] | 556 | </p> |
---|
[799] | 557 | <h1><a id="rfc.status" href="#rfc.status">Status of This Memo</a></h1> |
---|
| 558 | <p>This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.</p> |
---|
| 559 | <p>Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute |
---|
| 560 | 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>. |
---|
[52] | 561 | </p> |
---|
| 562 | <p>Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other |
---|
| 563 | documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as “work |
---|
| 564 | in progress”. |
---|
| 565 | </p> |
---|
[1873] | 566 | <p>This Internet-Draft will expire on March 13, 2013.</p> |
---|
[446] | 567 | <h1><a id="rfc.copyrightnotice" href="#rfc.copyrightnotice">Copyright Notice</a></h1> |
---|
[1497] | 568 | <p>Copyright © 2012 IETF Trust and the persons identified as the document authors. All rights reserved.</p> |
---|
[723] | 569 | <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 |
---|
| 570 | and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License |
---|
[799] | 571 | text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified |
---|
| 572 | BSD License. |
---|
[446] | 573 | </p> |
---|
[723] | 574 | <p>This document may contain material from IETF Documents or IETF Contributions published or made publicly available before November |
---|
| 575 | 10, 2008. The person(s) controlling the copyright in some of this material may not have granted the IETF Trust the right to |
---|
| 576 | allow modifications of such material outside the IETF Standards Process. Without obtaining an adequate license from the person(s) |
---|
| 577 | controlling the copyright in such materials, this document may not be modified outside the IETF Standards Process, and derivative |
---|
| 578 | works of it may not be created outside the IETF Standards Process, except to format it for publication as an RFC or to translate |
---|
| 579 | it into languages other than English. |
---|
| 580 | </p> |
---|
[52] | 581 | <hr class="noprint"> |
---|
| 582 | <h1 class="np" id="rfc.toc"><a href="#rfc.toc">Table of Contents</a></h1> |
---|
| 583 | <ul class="toc"> |
---|
[1825] | 584 | <li><a href="#rfc.section.1">1.</a> <a href="#caching">Introduction</a><ul> |
---|
| 585 | <li><a href="#rfc.section.1.1">1.1</a> <a href="#intro.purpose">Purpose</a></li> |
---|
| 586 | <li><a href="#rfc.section.1.2">1.2</a> <a href="#intro.terminology">Terminology</a></li> |
---|
[1875] | 587 | <li><a href="#rfc.section.1.3">1.3</a> <a href="#conformance">Conformance and Error Handling</a></li> |
---|
[1825] | 588 | <li><a href="#rfc.section.1.4">1.4</a> <a href="#notation">Syntax Notation</a><ul> |
---|
| 589 | <li><a href="#rfc.section.1.4.1">1.4.1</a> <a href="#delta-seconds">Delta Seconds</a></li> |
---|
[424] | 590 | </ul> |
---|
| 591 | </li> |
---|
[52] | 592 | </ul> |
---|
| 593 | </li> |
---|
[1825] | 594 | <li><a href="#rfc.section.2">2.</a> <a href="#caching.overview">Overview of Cache Operation</a></li> |
---|
| 595 | <li><a href="#rfc.section.3">3.</a> <a href="#response.cacheability">Storing Responses in Caches</a><ul> |
---|
| 596 | <li><a href="#rfc.section.3.1">3.1</a> <a href="#incomplete.responses">Storing Incomplete Responses</a></li> |
---|
| 597 | <li><a href="#rfc.section.3.2">3.2</a> <a href="#caching.authenticated.responses">Storing Responses to Authenticated Requests</a></li> |
---|
[1751] | 598 | </ul> |
---|
| 599 | </li> |
---|
[1825] | 600 | <li><a href="#rfc.section.4">4.</a> <a href="#constructing.responses.from.caches">Constructing Responses from Caches</a><ul> |
---|
| 601 | <li><a href="#rfc.section.4.1">4.1</a> <a href="#expiration.model">Freshness Model</a><ul> |
---|
| 602 | <li><a href="#rfc.section.4.1.1">4.1.1</a> <a href="#calculating.freshness.lifetime">Calculating Freshness Lifetime</a></li> |
---|
| 603 | <li><a href="#rfc.section.4.1.2">4.1.2</a> <a href="#heuristic.freshness">Calculating Heuristic Freshness</a></li> |
---|
| 604 | <li><a href="#rfc.section.4.1.3">4.1.3</a> <a href="#age.calculations">Calculating Age</a></li> |
---|
| 605 | <li><a href="#rfc.section.4.1.4">4.1.4</a> <a href="#serving.stale.responses">Serving Stale Responses</a></li> |
---|
[538] | 606 | </ul> |
---|
| 607 | </li> |
---|
[1825] | 608 | <li><a href="#rfc.section.4.2">4.2</a> <a href="#validation.model">Validation Model</a><ul> |
---|
| 609 | <li><a href="#rfc.section.4.2.1">4.2.1</a> <a href="#freshening.responses">Freshening Responses with 304 Not Modified</a></li> |
---|
[1419] | 610 | </ul> |
---|
| 611 | </li> |
---|
[1825] | 612 | <li><a href="#rfc.section.4.3">4.3</a> <a href="#caching.negotiated.responses">Using Negotiated Responses</a></li> |
---|
| 613 | <li><a href="#rfc.section.4.4">4.4</a> <a href="#combining.responses">Combining Partial Content</a></li> |
---|
[52] | 614 | </ul> |
---|
| 615 | </li> |
---|
[1825] | 616 | <li><a href="#rfc.section.5">5.</a> <a href="#head.effects">Updating Caches with HEAD Responses</a></li> |
---|
| 617 | <li><a href="#rfc.section.6">6.</a> <a href="#invalidation.after.updates.or.deletions">Request Methods that Invalidate</a></li> |
---|
| 618 | <li><a href="#rfc.section.7">7.</a> <a href="#header.field.definitions">Header Field Definitions</a><ul> |
---|
| 619 | <li><a href="#rfc.section.7.1">7.1</a> <a href="#header.age">Age</a></li> |
---|
| 620 | <li><a href="#rfc.section.7.2">7.2</a> <a href="#header.cache-control">Cache-Control</a><ul> |
---|
| 621 | <li><a href="#rfc.section.7.2.1">7.2.1</a> <a href="#cache-request-directive">Request Cache-Control Directives</a><ul> |
---|
| 622 | <li><a href="#rfc.section.7.2.1.1">7.2.1.1</a> <a href="#cache-request-directive.no-cache">no-cache</a></li> |
---|
| 623 | <li><a href="#rfc.section.7.2.1.2">7.2.1.2</a> <a href="#cache-request-directive.no-store">no-store</a></li> |
---|
| 624 | <li><a href="#rfc.section.7.2.1.3">7.2.1.3</a> <a href="#cache-request-directive.max-age">max-age</a></li> |
---|
| 625 | <li><a href="#rfc.section.7.2.1.4">7.2.1.4</a> <a href="#cache-request-directive.max-stale">max-stale</a></li> |
---|
| 626 | <li><a href="#rfc.section.7.2.1.5">7.2.1.5</a> <a href="#cache-request-directive.min-fresh">min-fresh</a></li> |
---|
| 627 | <li><a href="#rfc.section.7.2.1.6">7.2.1.6</a> <a href="#cache-request-directive.no-transform">no-transform</a></li> |
---|
| 628 | <li><a href="#rfc.section.7.2.1.7">7.2.1.7</a> <a href="#cache-request-directive.only-if-cached">only-if-cached</a></li> |
---|
[1695] | 629 | </ul> |
---|
| 630 | </li> |
---|
[1825] | 631 | <li><a href="#rfc.section.7.2.2">7.2.2</a> <a href="#cache-response-directive">Response Cache-Control Directives</a><ul> |
---|
| 632 | <li><a href="#rfc.section.7.2.2.1">7.2.2.1</a> <a href="#cache-response-directive.only-if-cached">public</a></li> |
---|
| 633 | <li><a href="#rfc.section.7.2.2.2">7.2.2.2</a> <a href="#cache-response-directive.private">private</a></li> |
---|
| 634 | <li><a href="#rfc.section.7.2.2.3">7.2.2.3</a> <a href="#cache-response-directive.no-cache">no-cache</a></li> |
---|
| 635 | <li><a href="#rfc.section.7.2.2.4">7.2.2.4</a> <a href="#cache-response-directive.no-store">no-store</a></li> |
---|
| 636 | <li><a href="#rfc.section.7.2.2.5">7.2.2.5</a> <a href="#cache-response-directive.must-revalidate">must-revalidate</a></li> |
---|
| 637 | <li><a href="#rfc.section.7.2.2.6">7.2.2.6</a> <a href="#cache-response-directive.proxy-revalidate">proxy-revalidate</a></li> |
---|
| 638 | <li><a href="#rfc.section.7.2.2.7">7.2.2.7</a> <a href="#cache-response-directive.max-age">max-age</a></li> |
---|
| 639 | <li><a href="#rfc.section.7.2.2.8">7.2.2.8</a> <a href="#cache-response-directive.s-maxage">s-maxage</a></li> |
---|
| 640 | <li><a href="#rfc.section.7.2.2.9">7.2.2.9</a> <a href="#cache-response-directive.no-transform">no-transform</a></li> |
---|
[1695] | 641 | </ul> |
---|
| 642 | </li> |
---|
[1825] | 643 | <li><a href="#rfc.section.7.2.3">7.2.3</a> <a href="#cache.control.extensions">Cache Control Extensions</a></li> |
---|
[52] | 644 | </ul> |
---|
| 645 | </li> |
---|
[1825] | 646 | <li><a href="#rfc.section.7.3">7.3</a> <a href="#header.expires">Expires</a></li> |
---|
| 647 | <li><a href="#rfc.section.7.4">7.4</a> <a href="#header.pragma">Pragma</a></li> |
---|
[1860] | 648 | <li><a href="#rfc.section.7.5">7.5</a> <a href="#header.warning">Warning</a><ul> |
---|
| 649 | <li><a href="#rfc.section.7.5.1">7.5.1</a> <a href="#warn.110">110 Response is Stale</a></li> |
---|
| 650 | <li><a href="#rfc.section.7.5.2">7.5.2</a> <a href="#warn.111">111 Revalidation Failed</a></li> |
---|
| 651 | <li><a href="#rfc.section.7.5.3">7.5.3</a> <a href="#warn.112">112 Disconnected Operation</a></li> |
---|
| 652 | <li><a href="#rfc.section.7.5.4">7.5.4</a> <a href="#warn.113">113 Heuristic Expiration</a></li> |
---|
| 653 | <li><a href="#rfc.section.7.5.5">7.5.5</a> <a href="#warn.199">199 Miscellaneous Warning</a></li> |
---|
| 654 | <li><a href="#rfc.section.7.5.6">7.5.6</a> <a href="#warn.214">214 Transformation Applied</a></li> |
---|
| 655 | <li><a href="#rfc.section.7.5.7">7.5.7</a> <a href="#warn.299">299 Miscellaneous Persistent Warning</a></li> |
---|
| 656 | <li><a href="#rfc.section.7.5.8">7.5.8</a> <a href="#warn.code.extensions">Warn Code Extensions</a></li> |
---|
[1485] | 657 | </ul> |
---|
| 658 | </li> |
---|
[52] | 659 | </ul> |
---|
| 660 | </li> |
---|
[1825] | 661 | <li><a href="#rfc.section.8">8.</a> <a href="#history.lists">History Lists</a></li> |
---|
| 662 | <li><a href="#rfc.section.9">9.</a> <a href="#IANA.considerations">IANA Considerations</a><ul> |
---|
| 663 | <li><a href="#rfc.section.9.1">9.1</a> <a href="#cache.directive.registration">Cache Directive Registry</a></li> |
---|
| 664 | <li><a href="#rfc.section.9.2">9.2</a> <a href="#warn.code.registration">Warn Code Registry</a></li> |
---|
| 665 | <li><a href="#rfc.section.9.3">9.3</a> <a href="#header.field.registration">Header Field Registration</a></li> |
---|
[253] | 666 | </ul> |
---|
| 667 | </li> |
---|
[1825] | 668 | <li><a href="#rfc.section.10">10.</a> <a href="#security.considerations">Security Considerations</a></li> |
---|
| 669 | <li><a href="#rfc.section.11">11.</a> <a href="#acks">Acknowledgments</a></li> |
---|
| 670 | <li><a href="#rfc.section.12">12.</a> <a href="#rfc.references">References</a><ul> |
---|
| 671 | <li><a href="#rfc.section.12.1">12.1</a> <a href="#rfc.references.1">Normative References</a></li> |
---|
| 672 | <li><a href="#rfc.section.12.2">12.2</a> <a href="#rfc.references.2">Informative References</a></li> |
---|
[1513] | 673 | </ul> |
---|
| 674 | </li> |
---|
[1072] | 675 | <li><a href="#rfc.authors">Authors' Addresses</a></li> |
---|
[1825] | 676 | <li><a href="#rfc.section.A">A.</a> <a href="#changes.from.rfc.2616">Changes from RFC 2616</a></li> |
---|
| 677 | <li><a href="#rfc.section.B">B.</a> <a href="#imported.abnf">Imported ABNF</a></li> |
---|
| 678 | <li><a href="#rfc.section.C">C.</a> <a href="#collected.abnf">Collected ABNF</a></li> |
---|
| 679 | <li><a href="#rfc.section.D">D.</a> <a href="#change.log">Change Log (to be removed by RFC Editor before publication)</a><ul> |
---|
| 680 | <li><a href="#rfc.section.D.1">D.1</a> <a href="#changes.since.19">Since draft-ietf-httpbis-p6-cache-19</a></li> |
---|
| 681 | <li><a href="#rfc.section.D.2">D.2</a> <a href="#changes.since.20">Since draft-ietf-httpbis-p6-cache-20</a></li> |
---|
[115] | 682 | </ul> |
---|
| 683 | </li> |
---|
[1072] | 684 | <li><a href="#rfc.index">Index</a></li> |
---|
[52] | 685 | </ul> |
---|
[157] | 686 | <h1 id="rfc.section.1" class="np"><a href="#rfc.section.1">1.</a> <a id="caching" href="#caching">Introduction</a></h1> |
---|
[538] | 687 | <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. |
---|
| 688 | This document defines aspects of HTTP/1.1 related to caching and reusing response messages. |
---|
[52] | 689 | </p> |
---|
[157] | 690 | <div id="rfc.iref.c.1"></div> |
---|
| 691 | <h2 id="rfc.section.1.1"><a href="#rfc.section.1.1">1.1</a> <a id="intro.purpose" href="#intro.purpose">Purpose</a></h2> |
---|
| 692 | <p id="rfc.section.1.1.p.1">An HTTP <dfn>cache</dfn> is a local store of response messages and the subsystem that controls its message storage, retrieval, and deletion. A cache |
---|
| 693 | stores cacheable responses in order to reduce the response time and network bandwidth consumption on future, equivalent requests. |
---|
[912] | 694 | 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. |
---|
[52] | 695 | </p> |
---|
[1375] | 696 | <p id="rfc.section.1.1.p.2">The goal of caching in HTTP/1.1 is to significantly improve performance by reusing a prior response message to satisfy a current |
---|
[1751] | 697 | request. A stored response is considered "fresh", as defined in <a href="#expiration.model" title="Freshness Model">Section 4.1</a>, if the response can be reused without "validation" (checking with the origin server to see if the cached response remains |
---|
[1375] | 698 | valid for this request). A fresh cache response can therefore reduce both latency and network transfers each time it is reused. |
---|
[1751] | 699 | When a cached response is not fresh, it might still be reusable if it can be freshened by validation (<a href="#validation.model" title="Validation Model">Section 4.2</a>) or if the origin is unavailable. |
---|
[96] | 700 | </p> |
---|
[157] | 701 | <h2 id="rfc.section.1.2"><a href="#rfc.section.1.2">1.2</a> <a id="intro.terminology" href="#intro.terminology">Terminology</a></h2> |
---|
| 702 | <p id="rfc.section.1.2.p.1">This specification uses a number of terms to refer to the roles played by participants in, and objects of, HTTP caching.</p> |
---|
[1112] | 703 | <p id="rfc.section.1.2.p.2"> <span id="rfc.iref.c.2"></span> <dfn>cache</dfn> |
---|
[52] | 704 | </p> |
---|
[729] | 705 | <ul class="empty"> |
---|
[1112] | 706 | <li>A conformant implementation of a HTTP cache. Note that this implies an HTTP/1.1 cache; this specification does not define |
---|
| 707 | conformance for HTTP/1.0 caches. |
---|
| 708 | </li> |
---|
| 709 | </ul> |
---|
| 710 | <div id="shared.and.non-shared.caches"> |
---|
| 711 | <p id="rfc.section.1.2.p.3"> <span id="rfc.iref.s.1"></span> <dfn>shared cache</dfn> |
---|
| 712 | </p> |
---|
| 713 | <ul class="empty"> |
---|
[1375] | 714 | <li>A cache that stores responses to be reused by more than one user; usually (but not always) deployed as part of an intermediary.</li> |
---|
[1112] | 715 | </ul> |
---|
| 716 | </div> |
---|
| 717 | <p id="rfc.section.1.2.p.4"> <span id="rfc.iref.p.1"></span> <dfn>private cache</dfn> |
---|
| 718 | </p> |
---|
| 719 | <ul class="empty"> |
---|
| 720 | <li>A cache that is dedicated to a single user.</li> |
---|
| 721 | </ul> |
---|
| 722 | <p id="rfc.section.1.2.p.5"> <span id="rfc.iref.c.3"></span> <dfn>cacheable</dfn> |
---|
| 723 | </p> |
---|
| 724 | <ul class="empty"> |
---|
[729] | 725 | <li>A response is cacheable if a cache is allowed to store a copy of the response message for use in answering subsequent requests. |
---|
[1112] | 726 | Even when a response is cacheable, there might be additional constraints on whether a cache can use the stored copy to satisfy |
---|
[538] | 727 | a particular request. |
---|
[729] | 728 | </li> |
---|
| 729 | </ul> |
---|
[1112] | 730 | <p id="rfc.section.1.2.p.6"> <span id="rfc.iref.e.1"></span> <dfn>explicit expiration time</dfn> |
---|
[52] | 731 | </p> |
---|
[729] | 732 | <ul class="empty"> |
---|
[970] | 733 | <li>The time at which the origin server intends that a representation no longer be returned by a cache without further validation.</li> |
---|
[729] | 734 | </ul> |
---|
[1112] | 735 | <p id="rfc.section.1.2.p.7"> <span id="rfc.iref.h.1"></span> <dfn>heuristic expiration time</dfn> |
---|
[52] | 736 | </p> |
---|
[729] | 737 | <ul class="empty"> |
---|
| 738 | <li>An expiration time assigned by a cache when no explicit expiration time is available.</li> |
---|
| 739 | </ul> |
---|
[1112] | 740 | <p id="rfc.section.1.2.p.8"> <span id="rfc.iref.a.1"></span> <dfn>age</dfn> |
---|
[52] | 741 | </p> |
---|
[729] | 742 | <ul class="empty"> |
---|
| 743 | <li>The age of a response is the time since it was sent by, or successfully validated with, the origin server.</li> |
---|
| 744 | </ul> |
---|
[1112] | 745 | <p id="rfc.section.1.2.p.9"> <span id="rfc.iref.f.1"></span> <dfn>first-hand</dfn> |
---|
[538] | 746 | </p> |
---|
[729] | 747 | <ul class="empty"> |
---|
| 748 | <li>A response is first-hand if the freshness model is not in use; i.e., its age is 0.</li> |
---|
| 749 | </ul> |
---|
[1112] | 750 | <p id="rfc.section.1.2.p.10"> <span id="rfc.iref.f.2"></span> <dfn>freshness lifetime</dfn> |
---|
[52] | 751 | </p> |
---|
[729] | 752 | <ul class="empty"> |
---|
| 753 | <li>The length of time between the generation of a response and its expiration time.</li> |
---|
| 754 | </ul> |
---|
[1112] | 755 | <p id="rfc.section.1.2.p.11"> <span id="rfc.iref.f.3"></span> <dfn>fresh</dfn> |
---|
[52] | 756 | </p> |
---|
[729] | 757 | <ul class="empty"> |
---|
| 758 | <li>A response is fresh if its age has not yet exceeded its freshness lifetime.</li> |
---|
| 759 | </ul> |
---|
[1112] | 760 | <p id="rfc.section.1.2.p.12"> <span id="rfc.iref.s.2"></span> <dfn>stale</dfn> |
---|
[52] | 761 | </p> |
---|
[729] | 762 | <ul class="empty"> |
---|
| 763 | <li>A response is stale if its age has passed its freshness lifetime (either explicit or heuristic).</li> |
---|
| 764 | </ul> |
---|
[1112] | 765 | <p id="rfc.section.1.2.p.13"> <span id="rfc.iref.v.1"></span> <dfn>validator</dfn> |
---|
[52] | 766 | </p> |
---|
[729] | 767 | <ul class="empty"> |
---|
[1864] | 768 | <li>A protocol element (e.g., an entity-tag or a <a href="p4-conditional.html#header.last-modified" class="smpl">Last-Modified</a> time) that is used to find out whether a stored response is an equivalent copy of a representation. 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.1"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Conditional Requests">[Part4]</cite></a>. |
---|
[729] | 769 | </li> |
---|
| 770 | </ul> |
---|
[1375] | 771 | <p id="rfc.section.1.2.p.14"> <span id="rfc.iref.s.3"></span> <span id="rfc.iref.v.2"></span> <dfn>strong validator</dfn> |
---|
| 772 | </p> |
---|
| 773 | <ul class="empty"> |
---|
| 774 | <li>A validator that is defined by the origin server such that its current value will change if the representation body changes; |
---|
[1864] | 775 | i.e., an entity-tag that is not marked as weak (<a href="p4-conditional.html#header.etag" title="ETag">Section 2.3</a> of <a href="#Part4" id="rfc.xref.Part4.2"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Conditional Requests">[Part4]</cite></a>) or, if no entity-tag is provided, a <a href="p4-conditional.html#header.last-modified" class="smpl">Last-Modified</a> value that is strong in the sense defined by <a href="p4-conditional.html#lastmod.comparison" title="Comparison">Section 2.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>. |
---|
[1375] | 776 | </li> |
---|
| 777 | </ul> |
---|
[1875] | 778 | <h2 id="rfc.section.1.3"><a href="#rfc.section.1.3">1.3</a> <a id="conformance" href="#conformance">Conformance and Error Handling</a></h2> |
---|
[157] | 779 | <p id="rfc.section.1.3.p.1">The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" |
---|
| 780 | 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>. |
---|
[52] | 781 | </p> |
---|
[1875] | 782 | <p id="rfc.section.1.3.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>. |
---|
[52] | 783 | </p> |
---|
[424] | 784 | <h2 id="rfc.section.1.4"><a href="#rfc.section.1.4">1.4</a> <a id="notation" href="#notation">Syntax Notation</a></h2> |
---|
[1864] | 785 | <p id="rfc.section.1.4.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#notation" title="Syntax Notation">Section 1.2</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. |
---|
[543] | 786 | </p> |
---|
[1805] | 787 | <h3 id="rfc.section.1.4.1"><a href="#rfc.section.1.4.1">1.4.1</a> <a id="delta-seconds" href="#delta-seconds">Delta Seconds</a></h3> |
---|
| 788 | <p id="rfc.section.1.4.1.p.1">The delta-seconds rule specifies a non-negative integer, representing time in seconds.</p> |
---|
| 789 | <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> |
---|
| 790 | </pre><p id="rfc.section.1.4.1.p.3">If an implementation receives a delta-seconds value larger than the largest positive integer it can represent, or if any of |
---|
[1434] | 791 | its subsequent calculations overflows, it <em class="bcp14">MUST</em> consider the value to be 2147483648 (2<sup>31</sup>). Recipients parsing a delta-seconds value <em class="bcp14">MUST</em> use an arithmetic type of at least 31 bits of range, and senders <em class="bcp14">MUST NOT</em> send delta-seconds with a value greater than 2147483648. |
---|
[1323] | 792 | </p> |
---|
[1375] | 793 | <div id="rfc.iref.c.4"></div> |
---|
| 794 | <div id="rfc.iref.c.5"></div> |
---|
[1751] | 795 | <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> |
---|
[1864] | 796 | <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 |
---|
[1375] | 797 | no requirement or locally-desired configuration prevents it. Therefore, HTTP cache requirements are focused on preventing |
---|
| 798 | a cache from either storing a non-reusable response or reusing a stored response inappropriately. |
---|
| 799 | </p> |
---|
| 800 | <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 |
---|
[1715] | 801 | 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 containing a representation of the resource identified by the request target. However, it is also possible to cache |
---|
[1751] | 802 | negative results (e.g., <a href="p2-semantics.html#status.404" class="smpl">404 (Not |
---|
| 803 | Found)</a>, incomplete results (e.g., <a href="p5-range.html#status.206" class="smpl">206 (Partial |
---|
[1754] | 804 | Content)</a>), and responses to methods other than GET if the method's definition allows such caching and defines something suitable for |
---|
| 805 | use as a cache key. |
---|
[1375] | 806 | </p> |
---|
| 807 | <p id="rfc.section.2.p.3">The default <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 |
---|
[1752] | 808 | responses to GET, many implementations simply decline other methods and use only the URI as the key. |
---|
[1375] | 809 | </p> |
---|
| 810 | <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 |
---|
[1751] | 811 | by a secondary key for the values of the original request's selecting header fields (<a href="#caching.negotiated.responses" title="Using Negotiated Responses">Section 4.3</a>). |
---|
[1375] | 812 | </p> |
---|
[1751] | 813 | <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> |
---|
| 814 | <p id="rfc.section.3.p.1">A cache <em class="bcp14">MUST NOT</em> store a response to any request, unless: |
---|
[205] | 815 | </p> |
---|
[538] | 816 | <ul> |
---|
[722] | 817 | <li>The request method is understood by the cache and defined as being cacheable, and</li> |
---|
[737] | 818 | <li>the response status code is understood by the cache, and</li> |
---|
[1751] | 819 | <li>the "no-store" cache directive (see <a href="#header.cache-control" id="rfc.xref.header.cache-control.1" title="Cache-Control">Section 7.2</a>) does not appear in request or response header fields, and |
---|
[52] | 820 | </li> |
---|
[1793] | 821 | <li>the "private" cache response directive (see <a href="#cache-response-directive.private" title="private">Section 7.2.2.2</a>) does not appear in the response, if the cache is shared, and |
---|
[52] | 822 | </li> |
---|
[1864] | 823 | <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 |
---|
[538] | 824 | </li> |
---|
[737] | 825 | <li>the response either: |
---|
| 826 | <ul> |
---|
[1751] | 827 | <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 7.3</a>), or |
---|
[737] | 828 | </li> |
---|
[1793] | 829 | <li>contains a max-age response cache directive (see <a href="#cache-response-directive.max-age" title="max-age">Section 7.2.2.7</a>), or |
---|
[737] | 830 | </li> |
---|
| 831 | <li>contains a s-maxage response cache directive and the cache is shared, or</li> |
---|
[1751] | 832 | <li>contains a Cache Control Extension (see <a href="#cache.control.extensions" title="Cache Control Extensions">Section 7.2.3</a>) that allows it to be cached, or |
---|
[737] | 833 | </li> |
---|
[1751] | 834 | <li>has a status code that can be served with heuristic freshness (see <a href="#heuristic.freshness" title="Calculating Heuristic Freshness">Section 4.1.2</a>). |
---|
[737] | 835 | </li> |
---|
| 836 | </ul> |
---|
[538] | 837 | </li> |
---|
| 838 | </ul> |
---|
[1751] | 839 | <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 7.2.3</a>. |
---|
[1291] | 840 | </p> |
---|
[1751] | 841 | <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 any |
---|
[1375] | 842 | cache-specific behavior. |
---|
[737] | 843 | </p> |
---|
[1752] | 844 | <p id="rfc.section.3.p.4">Note that, in normal operation, many caches will not store a response that has neither a cache validator nor an explicit expiration |
---|
[538] | 845 | time, as such responses are not usually useful to store. However, caches are not prohibited from storing such responses. |
---|
[52] | 846 | </p> |
---|
[1751] | 847 | <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> |
---|
[1864] | 848 | <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 is GET, the response status is <a href="p2-semantics.html#status.200" class="smpl">200 |
---|
[1751] | 849 | (OK)</a>, and the entire response header block 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 |
---|
| 850 | (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#range.retrieval.requests" 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. |
---|
[52] | 851 | </p> |
---|
[1864] | 852 | <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 4.4</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 |
---|
[1708] | 853 | 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. |
---|
[52] | 854 | </p> |
---|
[1751] | 855 | <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> |
---|
[1864] | 856 | <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. |
---|
[52] | 857 | </p> |
---|
[1751] | 858 | <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 7.2.2</a>) have such an effect: must-revalidate, public, s-maxage. |
---|
| 859 | </p> |
---|
| 860 | <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 |
---|
| 861 | served stale (<a href="#serving.stale.responses" title="Serving Stale Responses">Section 4.1.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 |
---|
| 862 | a subsequent request without revalidating it on the origin server. |
---|
| 863 | </p> |
---|
| 864 | <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> |
---|
| 865 | <p id="rfc.section.4.p.1">For a presented request, a cache <em class="bcp14">MUST NOT</em> return a stored response, unless: |
---|
| 866 | </p> |
---|
[538] | 867 | <ul> |
---|
[1864] | 868 | <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 |
---|
[538] | 869 | </li> |
---|
| 870 | <li>the request method associated with the stored response allows it to be used for the presented request, and</li> |
---|
[1751] | 871 | <li>selecting header fields nominated by the stored response (if any) match those presented (see <a href="#caching.negotiated.responses" title="Using Negotiated Responses">Section 4.3</a>), and |
---|
[538] | 872 | </li> |
---|
[1751] | 873 | <li>the presented request does not contain the no-cache pragma (<a href="#header.pragma" id="rfc.xref.header.pragma.1" title="Pragma">Section 7.4</a>), nor the no-cache cache directive (<a href="#cache-request-directive" title="Request Cache-Control Directives">Section 7.2.1</a>), unless the stored response is successfully validated (<a href="#validation.model" title="Validation Model">Section 4.2</a>), and |
---|
[538] | 874 | </li> |
---|
[1793] | 875 | <li>the stored response does not contain the no-cache cache directive (<a href="#cache-response-directive.no-cache" title="no-cache">Section 7.2.2.3</a>), unless it is successfully validated (<a href="#validation.model" title="Validation Model">Section 4.2</a>), and |
---|
[1483] | 876 | </li> |
---|
[538] | 877 | <li>the stored response is either: |
---|
| 878 | <ul> |
---|
[1751] | 879 | <li>fresh (see <a href="#expiration.model" title="Freshness Model">Section 4.1</a>), or |
---|
[538] | 880 | </li> |
---|
[1751] | 881 | <li>allowed to be served stale (see <a href="#serving.stale.responses" title="Serving Stale Responses">Section 4.1.4</a>), or |
---|
[538] | 882 | </li> |
---|
[1751] | 883 | <li>successfully validated (see <a href="#validation.model" title="Validation Model">Section 4.2</a>). |
---|
[538] | 884 | </li> |
---|
[540] | 885 | </ul> |
---|
[538] | 886 | </li> |
---|
| 887 | </ul> |
---|
[1751] | 888 | <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 7.2.3</a>. |
---|
[540] | 889 | </p> |
---|
[1751] | 890 | <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> include a single <a href="#header.age" class="smpl">Age</a> header field (<a href="#header.age" id="rfc.xref.header.age.1" title="Age">Section 7.1</a>) in the response with a value equal to the stored response's current_age; see <a href="#age.calculations" title="Calculating Age">Section 4.1.3</a>. |
---|
[1291] | 891 | </p> |
---|
[1864] | 892 | <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 5.2.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>) to the origin server; i.e., a cache is not allowed to generate a reply to such a request before having forwarded the request |
---|
[1604] | 893 | and having received a corresponding response. |
---|
[52] | 894 | </p> |
---|
[1751] | 895 | <p id="rfc.section.4.p.5">Also, note that unsafe requests might invalidate already stored responses; see <a href="#invalidation.after.updates.or.deletions" title="Request Methods that Invalidate">Section 6</a>. |
---|
[52] | 896 | </p> |
---|
[1751] | 897 | <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 a request with "Cache-Control: max-age=0" or "Cache-Control: no-cache" to disambiguate |
---|
[1740] | 898 | which response to use. |
---|
[52] | 899 | </p> |
---|
[1751] | 900 | <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 on every use. A cache, especially a shared cache, <em class="bcp14">SHOULD</em> use a mechanism, such as NTP <a href="#RFC1305" id="rfc.xref.RFC1305.1"><cite title="Network Time Protocol (Version 3) Specification, Implementation">[RFC1305]</cite></a>, to synchronize its clock with a reliable external standard. |
---|
[1044] | 901 | </p> |
---|
[1751] | 902 | <h2 id="rfc.section.4.1"><a href="#rfc.section.4.1">4.1</a> <a id="expiration.model" href="#expiration.model">Freshness Model</a></h2> |
---|
| 903 | <p id="rfc.section.4.1.p.1">When a response is "fresh" in the cache, it can be used to satisfy subsequent requests without contacting the origin server, |
---|
[538] | 904 | thereby improving efficiency. |
---|
[52] | 905 | </p> |
---|
[1751] | 906 | <p id="rfc.section.4.1.p.2">The primary mechanism for determining freshness is for an origin server to provide an explicit expiration time in the future, |
---|
[1793] | 907 | 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 7.3</a>) or the max-age response cache directive (<a href="#cache-response-directive.max-age" title="max-age">Section 7.2.2.7</a>). Generally, origin servers will assign future explicit expiration times to responses in the belief that the representation |
---|
[868] | 908 | is not likely to change in a semantically significant way before the expiration time is reached. |
---|
[52] | 909 | </p> |
---|
[1751] | 910 | <p id="rfc.section.4.1.p.3">If an origin server wishes to force a cache to validate every request, it can assign an explicit expiration time in the past |
---|
[1113] | 911 | to indicate that the response is already stale. Compliant caches will normally validate the cached response before reusing |
---|
[1751] | 912 | it for subsequent requests (see <a href="#serving.stale.responses" title="Serving Stale Responses">Section 4.1.4</a>). |
---|
[540] | 913 | </p> |
---|
[1751] | 914 | <p id="rfc.section.4.1.p.4">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 |
---|
[1739] | 915 | 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 |
---|
| 916 | constraints on their results. |
---|
[52] | 917 | </p> |
---|
[1805] | 918 | <div id="rfc.figure.u.2"></div> |
---|
[540] | 919 | <p>The calculation to determine if a response is fresh is:</p> <pre class="text"> response_is_fresh = (freshness_lifetime > current_age) |
---|
[1751] | 920 | </pre> <p id="rfc.section.4.1.p.6">The freshness_lifetime is defined in <a href="#calculating.freshness.lifetime" title="Calculating Freshness Lifetime">Section 4.1.1</a>; the current_age is defined in <a href="#age.calculations" title="Calculating Age">Section 4.1.3</a>. |
---|
[52] | 921 | </p> |
---|
[1751] | 922 | <p id="rfc.section.4.1.p.7">Additionally, clients can influence freshness calculation — either constraining it relaxing it — by using the max-age and |
---|
| 923 | min-fresh request cache directives. See <a href="#cache-request-directive" title="Request Cache-Control Directives">Section 7.2.1</a> for details. |
---|
[52] | 924 | </p> |
---|
[1751] | 925 | <p id="rfc.section.4.1.p.8">Note that freshness applies only to cache operation; it cannot be used to force a user agent to refresh its display or reload |
---|
| 926 | a resource. See <a href="#history.lists" title="History Lists">Section 8</a> for an explanation of the difference between caches and history mechanisms. |
---|
[52] | 927 | </p> |
---|
[1751] | 928 | <h3 id="rfc.section.4.1.1"><a href="#rfc.section.4.1.1">4.1.1</a> <a id="calculating.freshness.lifetime" href="#calculating.freshness.lifetime">Calculating Freshness Lifetime</a></h3> |
---|
| 929 | <p id="rfc.section.4.1.1.p.1">A cache can calculate the freshness lifetime (denoted as freshness_lifetime) of a response by using the first match of: </p> |
---|
[538] | 930 | <ul> |
---|
[1793] | 931 | <li>If the cache is shared and the s-maxage response cache directive (<a href="#cache-response-directive.s-maxage" title="s-maxage">Section 7.2.2.8</a>) is present, use its value, or |
---|
[538] | 932 | </li> |
---|
[1793] | 933 | <li>If the max-age response cache directive (<a href="#cache-response-directive.max-age" title="max-age">Section 7.2.2.7</a>) is present, use its value, or |
---|
[538] | 934 | </li> |
---|
[1751] | 935 | <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 7.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 |
---|
[538] | 936 | </li> |
---|
[1751] | 937 | <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.1.2</a>. |
---|
[538] | 938 | </li> |
---|
| 939 | </ul> |
---|
[1751] | 940 | <p id="rfc.section.4.1.1.p.2">Note that this calculation is not vulnerable to clock skew, since all of the information comes from the origin server.</p> |
---|
| 941 | <p id="rfc.section.4.1.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), it is considered invalid. Caches are encouraged to consider responses |
---|
[1737] | 942 | that have invalid freshness information to be stale. |
---|
[1731] | 943 | </p> |
---|
[1751] | 944 | <h3 id="rfc.section.4.1.2"><a href="#rfc.section.4.1.2">4.1.2</a> <a id="heuristic.freshness" href="#heuristic.freshness">Calculating Heuristic Freshness</a></h3> |
---|
| 945 | <p id="rfc.section.4.1.2.p.1">If no explicit expiration time is present in a stored response that has a status code whose definition allows heuristic freshness |
---|
[1864] | 946 | to be used (including the following in <a href="p2-semantics.html#status.codes" title="Response Status Codes">Section 7</a> of <a href="#Part2" id="rfc.xref.Part2.3"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content">[Part2]</cite></a>: <a href="p2-semantics.html#status.200" class="smpl">200 (OK)</a>, <a href="p2-semantics.html#status.203" class="smpl">203 (Non-Authoritative Information)</a>, <a href="p5-range.html#status.206" class="smpl">206 (Partial |
---|
[1751] | 947 | Content)</a>, <a href="p2-semantics.html#status.300" class="smpl">300 (Multiple Choices)</a>, <a href="p2-semantics.html#status.301" class="smpl">301 (Moved |
---|
| 948 | Permanently)</a> and <a href="p2-semantics.html#status.410" class="smpl">410 (Gone)</a>), a cache <em class="bcp14">MAY</em> calculate a heuristic expiration time. A cache <em class="bcp14">MUST NOT</em> use heuristics to determine freshness for responses with status codes that do not explicitly allow it. |
---|
[52] | 949 | </p> |
---|
[1751] | 950 | <p id="rfc.section.4.1.2.p.2">When a heuristic is used to calculate freshness lifetime, a cache <em class="bcp14">SHOULD</em> attach a <a href="#header.warning" class="smpl">Warning</a> header field with a 113 warn-code to the response if its current_age is more than 24 hours and such a warning is not already |
---|
[1737] | 951 | present. |
---|
[52] | 952 | </p> |
---|
[1864] | 953 | <p id="rfc.section.4.1.2.p.3">Also, 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.4"><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 |
---|
[1434] | 954 | time. A typical setting of this fraction might be 10%. |
---|
[52] | 955 | </p> |
---|
[1751] | 956 | <div class="note" id="rfc.section.4.1.2.p.4"> |
---|
[1755] | 957 | <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, |
---|
[1753] | 958 | this has not been widely implemented. Therefore, servers are encouraged to send explicit directives (e.g., Cache-Control: |
---|
[828] | 959 | no-cache) if they wish to preclude caching. |
---|
| 960 | </p> |
---|
| 961 | </div> |
---|
[1751] | 962 | <h3 id="rfc.section.4.1.3"><a href="#rfc.section.4.1.3">4.1.3</a> <a id="age.calculations" href="#age.calculations">Calculating Age</a></h3> |
---|
| 963 | <p id="rfc.section.4.1.3.p.1">HTTP/1.1 uses the <a href="#header.age" class="smpl">Age</a> header field to convey the estimated age of the response message when obtained from a cache. The Age field value is the cache's |
---|
[1737] | 964 | estimate of the amount of time since the response was generated or validated by the origin server. In essence, the Age value |
---|
| 965 | is the sum of the time that the response has been resident in each of the caches along the path from the origin server, plus |
---|
| 966 | the amount of time it has been in transit along network paths. |
---|
[52] | 967 | </p> |
---|
[1751] | 968 | <p id="rfc.section.4.1.3.p.2">The following data is used for the age calculation:</p> |
---|
| 969 | <p id="rfc.section.4.1.3.p.3"> <dfn>age_value</dfn> |
---|
[52] | 970 | </p> |
---|
[779] | 971 | <ul class="empty"> |
---|
[1751] | 972 | <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 7.1</a>), in a form appropriate for arithmetic operation; or 0, if not available. |
---|
[784] | 973 | </li> |
---|
[779] | 974 | </ul> |
---|
[1751] | 975 | <p id="rfc.section.4.1.3.p.4"> <dfn>date_value</dfn> |
---|
[52] | 976 | </p> |
---|
[779] | 977 | <ul class="empty"> |
---|
[1740] | 978 | <li>HTTP/1.1 requires origin servers to send a <a href="p2-semantics.html#header.date" class="smpl">Date</a> header field, if possible, with every response, giving the time at which the response was generated. The term "date_value" |
---|
[1864] | 979 | 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 8.2.1</a> of <a href="#Part2" id="rfc.xref.Part2.4"><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. |
---|
[779] | 980 | </li> |
---|
| 981 | </ul> |
---|
[1751] | 982 | <p id="rfc.section.4.1.3.p.5"> <dfn>now</dfn> |
---|
[779] | 983 | </p> |
---|
| 984 | <ul class="empty"> |
---|
[1112] | 985 | <li>The term "now" means "the current value of the clock at the host performing the calculation". A cache <em class="bcp14">SHOULD</em> use NTP (<a href="#RFC1305" id="rfc.xref.RFC1305.2"><cite title="Network Time Protocol (Version 3) Specification, Implementation">[RFC1305]</cite></a>) or some similar protocol to synchronize its clocks to a globally accurate time standard. |
---|
[779] | 986 | </li> |
---|
| 987 | </ul> |
---|
[1751] | 988 | <p id="rfc.section.4.1.3.p.6"> <dfn>request_time</dfn> |
---|
[779] | 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> |
---|
[1751] | 993 | <p id="rfc.section.4.1.3.p.7"> <dfn>response_time</dfn> |
---|
[779] | 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> |
---|
[1751] | 998 | <p id="rfc.section.4.1.3.p.8">A response's age can be calculated in two entirely independent ways: </p> |
---|
[52] | 999 | <ol> |
---|
[786] | 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. |
---|
[52] | 1002 | </li> |
---|
[1112] | 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. |
---|
[792] | 1004 | </li> |
---|
[52] | 1005 | </ol> |
---|
[1805] | 1006 | <div id="rfc.figure.u.3"></div> <pre class="text"> apparent_age = max(0, response_time - date_value); |
---|
[792] | 1007 | |
---|
| 1008 | response_delay = response_time - request_time; |
---|
| 1009 | corrected_age_value = age_value + response_delay; |
---|
[1805] | 1010 | </pre> <div id="rfc.figure.u.4"></div> |
---|
[1484] | 1011 | <p>These <em class="bcp14">SHOULD</em> be combined as |
---|
| 1012 | </p> <pre class="text"> corrected_initial_age = max(apparent_age, corrected_age_value); |
---|
[1751] | 1013 | </pre><p id="rfc.section.4.1.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. |
---|
[1484] | 1014 | </p> |
---|
[1751] | 1015 | <p id="rfc.section.4.1.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 |
---|
[538] | 1016 | was last validated by the origin server to the corrected_initial_age. |
---|
[52] | 1017 | </p> |
---|
[1805] | 1018 | <div id="rfc.figure.u.5"></div><pre class="text"> resident_time = now - response_time; |
---|
[786] | 1019 | current_age = corrected_initial_age + resident_time; |
---|
[1751] | 1020 | </pre><p id="rfc.section.4.1.3.p.14">Additionally, to avoid common problems in date parsing:</p> |
---|
| 1021 | <p id="rfc.section.4.1.3.p.15"> </p> |
---|
[1391] | 1022 | <ul> |
---|
[1875] | 1023 | <li>Recipients <em class="bcp14">SHOULD</em> assume that an RFC-850 date which appears to be more than 50 years in the future is in fact in the past (this helps solve |
---|
[1391] | 1024 | the "year 2000" problem). |
---|
| 1025 | </li> |
---|
| 1026 | <li>Although all date formats are specified to be case-sensitive, recipients <em class="bcp14">SHOULD</em> match day, week and timezone names case-insensitively. |
---|
| 1027 | </li> |
---|
[1875] | 1028 | <li>An implementation <em class="bcp14">MAY</em> internally represent a parsed <a href="#header.expires" class="smpl">Expires</a> date as earlier than the proper value, but <em class="bcp14">MUST NOT</em> internally represent a parsed Expires date as later than the proper value. |
---|
[1391] | 1029 | </li> |
---|
[1875] | 1030 | <li>Recipients <em class="bcp14">MUST</em> perform all expiration-related calculations in GMT. The local time zone <em class="bcp14">MUST NOT</em> influence the calculation or comparison of an age or expiration time. |
---|
[1391] | 1031 | </li> |
---|
[1814] | 1032 | <li>Caches <em class="bcp14">SHOULD</em> consider dates with time zones other than "GMT" invalid. |
---|
[1391] | 1033 | </li> |
---|
| 1034 | </ul> |
---|
[1751] | 1035 | <h3 id="rfc.section.4.1.4"><a href="#rfc.section.4.1.4">4.1.4</a> <a id="serving.stale.responses" href="#serving.stale.responses">Serving Stale Responses</a></h3> |
---|
| 1036 | <p id="rfc.section.4.1.4.p.1">A "stale" response is one that either has explicit expiry information or is allowed to have heuristic expiry calculated, but |
---|
| 1037 | is not fresh according to the calculations in <a href="#expiration.model" title="Freshness Model">Section 4.1</a>. |
---|
[52] | 1038 | </p> |
---|
[1751] | 1039 | <p id="rfc.section.4.1.4.p.2">A cache <em class="bcp14">MUST NOT</em> return a stale response if it is prohibited by an explicit in-protocol directive (e.g., by a "no-store" or "no-cache" cache |
---|
[538] | 1040 | directive, a "must-revalidate" cache-response-directive, or an applicable "s-maxage" or "proxy-revalidate" cache-response-directive; |
---|
[1751] | 1041 | see <a href="#cache-response-directive" title="Response Cache-Control Directives">Section 7.2.2</a>). |
---|
[52] | 1042 | </p> |
---|
[1751] | 1043 | <p id="rfc.section.4.1.4.p.3">A cache <em class="bcp14">MUST NOT</em> return stale responses unless it is disconnected (i.e., it cannot contact the origin server or otherwise find a forward path) |
---|
| 1044 | 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 7.2.1</a>). |
---|
[52] | 1045 | </p> |
---|
[1860] | 1046 | <p id="rfc.section.4.1.4.p.4">A cache <em class="bcp14">SHOULD</em> append a <a href="#header.warning" class="smpl">Warning</a> header field with the 110 warn-code (see <a href="#header.warning" id="rfc.xref.header.warning.1" title="Warning">Section 7.5</a>) to stale responses. Likewise, a cache <em class="bcp14">SHOULD</em> add the 112 warn-code to stale responses if the cache is disconnected. |
---|
[52] | 1047 | </p> |
---|
[1751] | 1048 | <p id="rfc.section.4.1.4.p.5">If a cache receives a first-hand response (either an entire response, or a <a href="p4-conditional.html#status.304" class="smpl">304 (Not Modified)</a> response) that it would normally forward to the requesting client, and the received response is no longer fresh, the cache |
---|
[1737] | 1049 | can forward it to the requesting client without adding a new <a href="#header.warning" class="smpl">Warning</a> (but without removing any existing Warning header fields). A cache shouldn't attempt to validate a response simply because |
---|
| 1050 | that response became stale in transit. |
---|
[52] | 1051 | </p> |
---|
[1751] | 1052 | <h2 id="rfc.section.4.2"><a href="#rfc.section.4.2">4.2</a> <a id="validation.model" href="#validation.model">Validation Model</a></h2> |
---|
| 1053 | <p id="rfc.section.4.2.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 |
---|
[1864] | 1054 | fresh, or one cannot be selected; see <a href="#caching.negotiated.responses" title="Using Negotiated Responses">Section 4.3</a>), it can use the conditional request mechanism <a href="#Part4" id="rfc.xref.Part4.5"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Conditional Requests">[Part4]</cite></a> in the forwarded request to give the origin server an opportunity to both select a valid stored response to be used, and to |
---|
[609] | 1055 | update it. This process is known as "validating" or "revalidating" the stored response. |
---|
[52] | 1056 | </p> |
---|
[1751] | 1057 | <p id="rfc.section.4.2.p.2">When sending such a conditional request, a cache adds an <a href="p4-conditional.html#header.if-modified-since" class="smpl">If-Modified-Since</a> header field whose value is that of the <a href="p4-conditional.html#header.last-modified" class="smpl">Last-Modified</a> header field from the selected (see <a href="#caching.negotiated.responses" title="Using Negotiated Responses">Section 4.3</a>) stored response, if available. |
---|
[52] | 1058 | </p> |
---|
[1751] | 1059 | <p id="rfc.section.4.2.p.3">Additionally, a cache can add an <a href="p4-conditional.html#header.if-none-match" class="smpl">If-None-Match</a> header field whose value is that of the <a href="p4-conditional.html#header.etag" class="smpl">ETag</a> header field(s) from all responses stored for the requested URI, if present. However, if any of the stored responses contains |
---|
[1739] | 1060 | only partial content, the cache shouldn't include its entity-tag in the If-None-Match header field unless the request is for |
---|
| 1061 | a range that would be fully satisfied by that stored response. |
---|
[52] | 1062 | </p> |
---|
[1751] | 1063 | <p id="rfc.section.4.2.p.4">Cache handling of a response to a conditional request is dependent upon its status code:</p> |
---|
| 1064 | <p id="rfc.section.4.2.p.5"> </p> |
---|
[1419] | 1065 | <ul> |
---|
[1751] | 1066 | <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 Responses with 304 Not Modified">Section 4.2.1</a>. |
---|
[1419] | 1067 | </li> |
---|
| 1068 | <li>A full response (i.e., one with a response body) indicates that none of the stored responses nominated in the conditional |
---|
[1434] | 1069 | request is suitable. Instead, the cache can use the full response to satisfy the request and <em class="bcp14">MAY</em> replace the stored response(s). |
---|
[1419] | 1070 | </li> |
---|
[1735] | 1071 | <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 |
---|
[1751] | 1072 | if the server failed to respond. In the latter case, it can return a previously stored response (see <a href="#serving.stale.responses" title="Serving Stale Responses">Section 4.1.4</a>). |
---|
[1419] | 1073 | </li> |
---|
| 1074 | </ul> |
---|
[1751] | 1075 | <h3 id="rfc.section.4.2.1"><a href="#rfc.section.4.2.1">4.2.1</a> <a id="freshening.responses" href="#freshening.responses">Freshening Responses with 304 Not Modified</a></h3> |
---|
| 1076 | <p id="rfc.section.4.2.1.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 |
---|
[1734] | 1077 | 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. |
---|
[540] | 1078 | </p> |
---|
[1419] | 1079 | <ul> |
---|
| 1080 | <li>If the new response contains a strong validator, then that strong validator identifies the selected representation. All of |
---|
| 1081 | the stored responses with the same strong validator are selected. If none of the stored responses contain the same strong |
---|
| 1082 | validator, then this new response corresponds to a new selected representation and <em class="bcp14">MUST NOT</em> update the existing stored responses. |
---|
| 1083 | </li> |
---|
| 1084 | <li>If the new response contains a weak validator and that validator corresponds to one of the cache's stored responses, then |
---|
| 1085 | the most recent of those matching stored responses is selected. |
---|
| 1086 | </li> |
---|
| 1087 | <li>If the new response does not include any form of validator, there is only one stored response, and that stored response also |
---|
| 1088 | lacks a validator, then that stored response is selected. |
---|
| 1089 | </li> |
---|
| 1090 | </ul> |
---|
[1751] | 1091 | <p id="rfc.section.4.2.1.p.2">If a stored response is selected for update, the cache <em class="bcp14">MUST</em>: |
---|
[52] | 1092 | </p> |
---|
[1419] | 1093 | <ul> |
---|
[1860] | 1094 | <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 7.5</a>); |
---|
[1419] | 1095 | </li> |
---|
[1737] | 1096 | <li>retain any <a href="#header.warning" class="smpl">Warning</a> header fields in the stored response with warn-code 2xx; and, |
---|
| 1097 | </li> |
---|
[1734] | 1098 | <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. |
---|
[1419] | 1099 | </li> |
---|
| 1100 | </ul> |
---|
[1751] | 1101 | <h2 id="rfc.section.4.3"><a href="#rfc.section.4.3">4.3</a> <a id="caching.negotiated.responses" href="#caching.negotiated.responses">Using Negotiated Responses</a></h2> |
---|
[1864] | 1102 | <p id="rfc.section.4.3.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 8.2.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>), 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 |
---|
[994] | 1103 | request (i.e., that associated with the stored response), and the presented request. |
---|
[52] | 1104 | </p> |
---|
[1751] | 1105 | <p id="rfc.section.4.3.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 |
---|
[1164] | 1106 | to those in the second request by applying any of the following: |
---|
[52] | 1107 | </p> |
---|
[771] | 1108 | <ul> |
---|
[994] | 1109 | <li>adding or removing whitespace, where allowed in the header field's syntax</li> |
---|
[1864] | 1110 | <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>) |
---|
[771] | 1111 | </li> |
---|
[994] | 1112 | <li>normalizing both header field values in a way that is known to have identical semantics, according to the header field's specification |
---|
[771] | 1113 | (e.g., re-ordering field values when order is not significant; case-normalization, where values are defined to be case-insensitive) |
---|
| 1114 | </li> |
---|
| 1115 | </ul> |
---|
[1751] | 1116 | <p id="rfc.section.4.3.p.3">If (after any normalization that might take place) a header field is absent from a request, it can only match another request |
---|
[771] | 1117 | if it is also absent there. |
---|
| 1118 | </p> |
---|
[1860] | 1119 | <p id="rfc.section.4.3.p.4">A <a href="p2-semantics.html#header.vary" class="smpl">Vary</a> header field-value of "*" always fails to match, and subsequent requests to that resource can only be properly interpreted |
---|
[538] | 1120 | by the origin server. |
---|
[52] | 1121 | </p> |
---|
[1751] | 1122 | <p id="rfc.section.4.3.p.5">The stored response with matching selecting header fields is known as the selected response.</p> |
---|
| 1123 | <p id="rfc.section.4.3.p.6">If multiple selected responses are available, the most recent response (as determined by the <a href="p2-semantics.html#header.date" class="smpl">Date</a> header field) is used; see <a href="#constructing.responses.from.caches" title="Constructing Responses from Caches">Section 4</a>. |
---|
[52] | 1124 | </p> |
---|
[1751] | 1125 | <p id="rfc.section.4.3.p.7">If no selected response is available, the cache can forward the presented request to the origin server in a conditional request; |
---|
| 1126 | see <a href="#validation.model" title="Validation Model">Section 4.2</a>. |
---|
[1289] | 1127 | </p> |
---|
[1751] | 1128 | <h2 id="rfc.section.4.4"><a href="#rfc.section.4.4">4.4</a> <a id="combining.responses" href="#combining.responses">Combining Partial Content</a></h2> |
---|
| 1129 | <p id="rfc.section.4.4.p.1">A response might transfer only a partial representation if the connection closed prematurely or if the request used one or |
---|
[1864] | 1130 | 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 |
---|
| 1131 | 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.2</a> of <a href="#Part5" id="rfc.xref.Part5.3"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Range Requests">[Part5]</cite></a>. |
---|
[52] | 1132 | </p> |
---|
[1751] | 1133 | <p id="rfc.section.4.4.p.2">When combining the new response with one or more stored responses, a cache <em class="bcp14">MUST</em>: |
---|
[540] | 1134 | </p> |
---|
[1375] | 1135 | <ul> |
---|
[1860] | 1136 | <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 7.5</a>); |
---|
[1375] | 1137 | </li> |
---|
[1737] | 1138 | <li>retain any <a href="#header.warning" class="smpl">Warning</a> header fields in the stored response with warn-code 2xx; and, |
---|
| 1139 | </li> |
---|
[1738] | 1140 | <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. |
---|
[1375] | 1141 | </li> |
---|
| 1142 | </ul> |
---|
[1751] | 1143 | <h1 id="rfc.section.5"><a href="#rfc.section.5">5.</a> <a id="head.effects" href="#head.effects">Updating Caches with HEAD Responses</a></h1> |
---|
| 1144 | <p id="rfc.section.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 |
---|
| 1145 | a body. This property of HEAD responses is used to both invalidate and update cached GET responses. |
---|
| 1146 | </p> |
---|
| 1147 | <p id="rfc.section.5.p.2">If one or more stored GET responses can be selected (as per <a href="#caching.negotiated.responses" title="Using Negotiated Responses">Section 4.3</a>) for a HEAD request, and the <a href="p1-messaging.html#header.content-length" class="smpl">Content-Length</a>, <a href="p4-conditional.html#header.etag" class="smpl">ETag</a> or <a href="p4-conditional.html#header.last-modified" class="smpl">Last-Modified</a> value of a HEAD response differs from that in a selected GET response, the cache <em class="bcp14">MUST</em> consider that selected response to be stale. |
---|
| 1148 | </p> |
---|
[1772] | 1149 | <p id="rfc.section.5.p.3">If the <a href="p1-messaging.html#header.content-length" class="smpl">Content-Length</a>, <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> values of a HEAD response (when present) are the same as that in a selected GET response (as per <a href="#caching.negotiated.responses" title="Using Negotiated Responses">Section 4.3</a>), the cache <em class="bcp14">SHOULD</em> update the remaining header fields in the stored response using the following rules: |
---|
[1751] | 1150 | </p> |
---|
| 1151 | <ul> |
---|
[1860] | 1152 | <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.4" title="Warning">Section 7.5</a>); |
---|
[1751] | 1153 | </li> |
---|
| 1154 | <li>retain any <a href="#header.warning" class="smpl">Warning</a> header fields in the stored response with warn-code 2xx; and, |
---|
| 1155 | </li> |
---|
| 1156 | <li>use other header fields provided in the response to replace all instances of the corresponding header fields in the stored |
---|
| 1157 | response. |
---|
| 1158 | </li> |
---|
| 1159 | </ul> |
---|
| 1160 | <h1 id="rfc.section.6"><a href="#rfc.section.6">6.</a> <a id="invalidation.after.updates.or.deletions" href="#invalidation.after.updates.or.deletions">Request Methods that Invalidate</a></h1> |
---|
[1864] | 1161 | <p id="rfc.section.6.p.1">Because unsafe request methods (<a href="p2-semantics.html#safe.methods" title="Safe Methods">Section 5.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 |
---|
[1751] | 1162 | to keep their contents up-to-date. |
---|
| 1163 | </p> |
---|
[1864] | 1164 | <p id="rfc.section.6.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 response to a request with an unsafe method is received. |
---|
[1751] | 1165 | </p> |
---|
[1864] | 1166 | <p id="rfc.section.6.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. |
---|
[1751] | 1167 | </p> |
---|
[1864] | 1168 | <p id="rfc.section.6.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. |
---|
[1751] | 1169 | </p> |
---|
| 1170 | <p id="rfc.section.6.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, |
---|
| 1171 | or will mark these as "invalid" and in need of a mandatory validation before they can be returned in response to a subsequent |
---|
| 1172 | request. |
---|
| 1173 | </p> |
---|
| 1174 | <p id="rfc.section.6.p.6">Note that this does not guarantee that all appropriate responses are invalidated. For example, the request that caused the |
---|
| 1175 | change at the origin server might not have gone through the cache where a response is stored. |
---|
| 1176 | </p> |
---|
| 1177 | <h1 id="rfc.section.7"><a href="#rfc.section.7">7.</a> <a id="header.field.definitions" href="#header.field.definitions">Header Field Definitions</a></h1> |
---|
| 1178 | <p id="rfc.section.7.p.1">This section defines the syntax and semantics of HTTP/1.1 header fields related to caching.</p> |
---|
[52] | 1179 | <div id="rfc.iref.a.2"></div> |
---|
| 1180 | <div id="rfc.iref.h.2"></div> |
---|
[1751] | 1181 | <h2 id="rfc.section.7.1"><a href="#rfc.section.7.1">7.1</a> <a id="header.age" href="#header.age">Age</a></h2> |
---|
| 1182 | <p id="rfc.section.7.1.p.1">The "Age" header field conveys the sender's estimate of the amount of time since the response was generated or successfully |
---|
| 1183 | validated at the origin server. Age values are calculated as specified in <a href="#age.calculations" title="Calculating Age">Section 4.1.3</a>. |
---|
[52] | 1184 | </p> |
---|
[1805] | 1185 | <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> |
---|
| 1186 | </pre><p id="rfc.section.7.1.p.3">Age field-values are non-negative integers, representing time in seconds (see <a href="#delta-seconds" title="Delta Seconds">Section 1.4.1</a>). |
---|
[52] | 1187 | </p> |
---|
[1751] | 1188 | <p id="rfc.section.7.1.p.4">The presence of an Age header field in a response implies that a response is not first-hand. However, the converse is not |
---|
[912] | 1189 | true, since HTTP/1.0 caches might not implement the Age header field. |
---|
[538] | 1190 | </p> |
---|
[1375] | 1191 | <div id="rfc.iref.c.6"></div> |
---|
[52] | 1192 | <div id="rfc.iref.h.3"></div> |
---|
[1751] | 1193 | <h2 id="rfc.section.7.2"><a href="#rfc.section.7.2">7.2</a> <a id="header.cache-control" href="#header.cache-control">Cache-Control</a></h2> |
---|
| 1194 | <p id="rfc.section.7.2.p.1">The "Cache-Control" header field is used to specify directives for caches along the request/response chain. Such cache directives |
---|
[1164] | 1195 | are unidirectional in that the presence of a directive in a request does not imply that the same directive is to be given |
---|
| 1196 | in the response. |
---|
[52] | 1197 | </p> |
---|
[1751] | 1198 | <p id="rfc.section.7.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 7.2.3</a> for information about how Cache-Control directives defined elsewhere are handled. |
---|
[827] | 1199 | </p> |
---|
[1751] | 1200 | <div class="note" id="rfc.section.7.2.p.3"> |
---|
| 1201 | <p> <b>Note:</b> HTTP/1.0 caches might not implement Cache-Control and might only implement Pragma: no-cache (see <a href="#header.pragma" id="rfc.xref.header.pragma.2" title="Pragma">Section 7.4</a>). |
---|
[540] | 1202 | </p> |
---|
| 1203 | </div> |
---|
[1751] | 1204 | <p id="rfc.section.7.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 |
---|
[1174] | 1205 | might be applicable to all recipients along the request/response chain. It is not possible to target a directive to a specific |
---|
| 1206 | cache. |
---|
[52] | 1207 | </p> |
---|
[1751] | 1208 | <p id="rfc.section.7.2.p.5">Cache directives are identified by a token, to be compared case-insensitively, and have an optional argument, that can use |
---|
[1695] | 1209 | both token and quoted-string syntax. For the directives defined below that define arguments, recipients ought to accept both |
---|
| 1210 | forms, even if one is documented to be preferred. For any directive not defined by this specification, recipients <em class="bcp14">MUST</em> accept both forms. |
---|
| 1211 | </p> |
---|
[1805] | 1212 | <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> |
---|
[52] | 1213 | |
---|
[1805] | 1214 | <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> ) ] |
---|
[1751] | 1215 | </pre><p id="rfc.section.7.2.p.7">For the cache directives defined below, no argument is defined (nor allowed) otherwise stated otherwise.</p> |
---|
| 1216 | <h3 id="rfc.section.7.2.1"><a href="#rfc.section.7.2.1">7.2.1</a> <a id="cache-request-directive" href="#cache-request-directive">Request Cache-Control Directives</a></h3> |
---|
[1695] | 1217 | <div id="rfc.iref.c.7"></div> |
---|
| 1218 | <div id="rfc.iref.n.1"></div> |
---|
[1751] | 1219 | <h4 id="rfc.section.7.2.1.1"><a href="#rfc.section.7.2.1.1">7.2.1.1</a> <a id="cache-request-directive.no-cache" href="#cache-request-directive.no-cache">no-cache</a></h4> |
---|
[1779] | 1220 | <p id="rfc.section.7.2.1.1.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. |
---|
[52] | 1221 | </p> |
---|
[1695] | 1222 | <div id="rfc.iref.c.8"></div> |
---|
| 1223 | <div id="rfc.iref.n.2"></div> |
---|
[1751] | 1224 | <h4 id="rfc.section.7.2.1.2"><a href="#rfc.section.7.2.1.2">7.2.1.2</a> <a id="cache-request-directive.no-store" href="#cache-request-directive.no-store">no-store</a></h4> |
---|
[1779] | 1225 | <p id="rfc.section.7.2.1.2.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. |
---|
[52] | 1226 | </p> |
---|
[1751] | 1227 | <p id="rfc.section.7.2.1.2.p.2">This directive is NOT a reliable or sufficient mechanism for ensuring privacy. In particular, malicious or compromised caches |
---|
[1695] | 1228 | might not recognize or obey this directive, and communications networks might be vulnerable to eavesdropping. |
---|
[52] | 1229 | </p> |
---|
[1751] | 1230 | <p id="rfc.section.7.2.1.2.p.3">Note that if a request containing this directive is satisfied from a cache, the no-store request directive does not apply |
---|
[1695] | 1231 | to the already stored response. |
---|
[52] | 1232 | </p> |
---|
[1695] | 1233 | <div id="rfc.iref.c.9"></div> |
---|
| 1234 | <div id="rfc.iref.m.1"></div> |
---|
[1751] | 1235 | <h4 id="rfc.section.7.2.1.3"><a href="#rfc.section.7.2.1.3">7.2.1.3</a> <a id="cache-request-directive.max-age" href="#cache-request-directive.max-age">max-age</a></h4> |
---|
| 1236 | <p id="rfc.section.7.2.1.3.p.1">Argument syntax: </p> |
---|
[729] | 1237 | <ul class="empty"> |
---|
[1805] | 1238 | <li> <a href="#delta-seconds" class="smpl">delta-seconds</a> (see <a href="#delta-seconds" title="Delta Seconds">Section 1.4.1</a>) |
---|
[939] | 1239 | </li> |
---|
[729] | 1240 | </ul> |
---|
[1779] | 1241 | <p id="rfc.section.7.2.1.3.p.2">The "max-age" request directive indicates that the client is unwilling to accept a response whose age is greater than the |
---|
| 1242 | specified number of seconds. Unless the max-stale request directive is also present, the client is not willing to accept a |
---|
| 1243 | stale response. |
---|
[52] | 1244 | </p> |
---|
[1751] | 1245 | <p id="rfc.section.7.2.1.3.p.3"> <b>Note:</b> This directive uses the token form of the argument syntax; e.g., 'max-age=5', not 'max-age="5"'. Senders <em class="bcp14">SHOULD NOT</em> use the quoted-string form. |
---|
[1695] | 1246 | </p> |
---|
| 1247 | <div id="rfc.iref.c.10"></div> |
---|
| 1248 | <div id="rfc.iref.m.2"></div> |
---|
[1751] | 1249 | <h4 id="rfc.section.7.2.1.4"><a href="#rfc.section.7.2.1.4">7.2.1.4</a> <a id="cache-request-directive.max-stale" href="#cache-request-directive.max-stale">max-stale</a></h4> |
---|
| 1250 | <p id="rfc.section.7.2.1.4.p.1">Argument syntax: </p> |
---|
[729] | 1251 | <ul class="empty"> |
---|
[1805] | 1252 | <li> <a href="#delta-seconds" class="smpl">delta-seconds</a> (see <a href="#delta-seconds" title="Delta Seconds">Section 1.4.1</a>) |
---|
[729] | 1253 | </li> |
---|
| 1254 | </ul> |
---|
[1779] | 1255 | <p id="rfc.section.7.2.1.4.p.2">The "max-stale" request directive indicates that the client is willing to accept a response that has exceeded its expiration |
---|
[1695] | 1256 | time. If max-stale is assigned a value, then the client is willing to accept a response that has exceeded its expiration time |
---|
| 1257 | by no more than the specified number of seconds. If no value is assigned to max-stale, then the client is willing to accept |
---|
| 1258 | a stale response of any age. |
---|
[52] | 1259 | </p> |
---|
[1751] | 1260 | <p id="rfc.section.7.2.1.4.p.3"> <b>Note:</b> This directive uses the token form of the argument syntax; e.g., 'max-stale=10', not 'max-stale="10"'. Senders <em class="bcp14">SHOULD NOT</em> use the quoted-string form. |
---|
[1695] | 1261 | </p> |
---|
| 1262 | <div id="rfc.iref.c.11"></div> |
---|
| 1263 | <div id="rfc.iref.m.3"></div> |
---|
[1751] | 1264 | <h4 id="rfc.section.7.2.1.5"><a href="#rfc.section.7.2.1.5">7.2.1.5</a> <a id="cache-request-directive.min-fresh" href="#cache-request-directive.min-fresh">min-fresh</a></h4> |
---|
| 1265 | <p id="rfc.section.7.2.1.5.p.1">Argument syntax: </p> |
---|
[729] | 1266 | <ul class="empty"> |
---|
[1805] | 1267 | <li> <a href="#delta-seconds" class="smpl">delta-seconds</a> (see <a href="#delta-seconds" title="Delta Seconds">Section 1.4.1</a>) |
---|
[729] | 1268 | </li> |
---|
| 1269 | </ul> |
---|
[1779] | 1270 | <p id="rfc.section.7.2.1.5.p.2">The "min-fresh" request directive indicates that the client is willing to accept a response whose freshness lifetime is no |
---|
| 1271 | less than its current age plus the specified time in seconds. That is, the client wants a response that will still be fresh |
---|
| 1272 | for at least the specified number of seconds. |
---|
[52] | 1273 | </p> |
---|
[1751] | 1274 | <p id="rfc.section.7.2.1.5.p.3"> <b>Note:</b> This directive uses the token form of the argument syntax; e.g., 'min-fresh=20', not 'min-fresh="20"'. Senders <em class="bcp14">SHOULD NOT</em> use the quoted-string form. |
---|
[1695] | 1275 | </p> |
---|
| 1276 | <div id="rfc.iref.c.12"></div> |
---|
| 1277 | <div id="rfc.iref.n.3"></div> |
---|
[1751] | 1278 | <h4 id="rfc.section.7.2.1.6"><a href="#rfc.section.7.2.1.6">7.2.1.6</a> <a id="cache-request-directive.no-transform" href="#cache-request-directive.no-transform">no-transform</a></h4> |
---|
[1779] | 1279 | <p id="rfc.section.7.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> change the <a href="p2-semantics.html#header.content-encoding" class="smpl">Content-Encoding</a>, <a href="p5-range.html#header.content-range" class="smpl">Content-Range</a> or <a href="p2-semantics.html#header.content-type" class="smpl">Content-Type</a> request header fields, nor the request representation. |
---|
[1695] | 1280 | </p> |
---|
| 1281 | <div id="rfc.iref.c.13"></div> |
---|
| 1282 | <div id="rfc.iref.o.1"></div> |
---|
[1751] | 1283 | <h4 id="rfc.section.7.2.1.7"><a href="#rfc.section.7.2.1.7">7.2.1.7</a> <a id="cache-request-directive.only-if-cached" href="#cache-request-directive.only-if-cached">only-if-cached</a></h4> |
---|
[1779] | 1284 | <p id="rfc.section.7.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 |
---|
[1775] | 1285 | 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 |
---|
[1751] | 1286 | 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. |
---|
[1695] | 1287 | </p> |
---|
[1751] | 1288 | <h3 id="rfc.section.7.2.2"><a href="#rfc.section.7.2.2">7.2.2</a> <a id="cache-response-directive" href="#cache-response-directive">Response Cache-Control Directives</a></h3> |
---|
[1695] | 1289 | <div id="rfc.iref.c.14"></div> |
---|
| 1290 | <div id="rfc.iref.p.2"></div> |
---|
[1751] | 1291 | <h4 id="rfc.section.7.2.2.1"><a href="#rfc.section.7.2.2.1">7.2.2.1</a> <a id="cache-response-directive.only-if-cached" href="#cache-response-directive.only-if-cached">public</a></h4> |
---|
[1779] | 1292 | <p id="rfc.section.7.2.2.1.p.1">The "public" response directive indicates that a response whose associated request contains an 'Authentication' header <em class="bcp14">MAY</em> be stored (see <a href="#caching.authenticated.responses" title="Storing Responses to Authenticated Requests">Section 3.2</a>). |
---|
[52] | 1293 | </p> |
---|
[1695] | 1294 | <div id="rfc.iref.c.15"></div> |
---|
| 1295 | <div id="rfc.iref.p.3"></div> |
---|
[1751] | 1296 | <h4 id="rfc.section.7.2.2.2"><a href="#rfc.section.7.2.2.2">7.2.2.2</a> <a id="cache-response-directive.private" href="#cache-response-directive.private">private</a></h4> |
---|
| 1297 | <p id="rfc.section.7.2.2.2.p.1">Argument syntax: </p> |
---|
[729] | 1298 | <ul class="empty"> |
---|
[1805] | 1299 | <li>#<a href="#imported.abnf" class="smpl">field-name</a> |
---|
[729] | 1300 | </li> |
---|
| 1301 | </ul> |
---|
[1779] | 1302 | <p id="rfc.section.7.2.2.2.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. |
---|
[52] | 1303 | </p> |
---|
[1751] | 1304 | <p id="rfc.section.7.2.2.2.p.3">If the private response directive specifies one or more field-names, this requirement is limited to the field-values associated |
---|
[1695] | 1305 | 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. |
---|
[52] | 1306 | </p> |
---|
[1751] | 1307 | <p id="rfc.section.7.2.2.2.p.4">The field-names given are not limited to the set of standard header fields defined by this specification. Field names are |
---|
[1695] | 1308 | case-insensitive. |
---|
[538] | 1309 | </p> |
---|
[1751] | 1310 | <p id="rfc.section.7.2.2.2.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 |
---|
[1695] | 1311 | content. Also, private response directives with field-names are often handled by implementations as if an unqualified private |
---|
| 1312 | directive was received; i.e., the special handling for the qualified form is not widely implemented. |
---|
[52] | 1313 | </p> |
---|
[1751] | 1314 | <p id="rfc.section.7.2.2.2.p.6"> <b>Note:</b> This directive uses the quoted-string form of the argument syntax. Senders <em class="bcp14">SHOULD NOT</em> use the token form (even if quoting appears not to be needed for single-entry lists). |
---|
[52] | 1315 | </p> |
---|
[1695] | 1316 | <div id="rfc.iref.c.16"></div> |
---|
| 1317 | <div id="rfc.iref.n.4"></div> |
---|
[1751] | 1318 | <h4 id="rfc.section.7.2.2.3"><a href="#rfc.section.7.2.2.3">7.2.2.3</a> <a id="cache-response-directive.no-cache" href="#cache-response-directive.no-cache">no-cache</a></h4> |
---|
| 1319 | <p id="rfc.section.7.2.2.3.p.1">Argument syntax: </p> |
---|
[729] | 1320 | <ul class="empty"> |
---|
[1805] | 1321 | <li>#<a href="#imported.abnf" class="smpl">field-name</a> |
---|
[729] | 1322 | </li> |
---|
| 1323 | </ul> |
---|
[1779] | 1324 | <p id="rfc.section.7.2.2.3.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 |
---|
[1695] | 1325 | prevent a cache from using it to satisfy a request without contacting it, even by caches that have been configured to return |
---|
| 1326 | stale responses. |
---|
[52] | 1327 | </p> |
---|
[1751] | 1328 | <p id="rfc.section.7.2.2.3.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 |
---|
[1695] | 1329 | 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 |
---|
| 1330 | server to prevent the re-use of certain header fields in a response, while still allowing caching of the rest of the response. |
---|
| 1331 | </p> |
---|
[1751] | 1332 | <p id="rfc.section.7.2.2.3.p.4">The field-names given are not limited to the set of standard header fields defined by this specification. Field names are |
---|
[1695] | 1333 | case-insensitive. |
---|
| 1334 | </p> |
---|
[1752] | 1335 | <p id="rfc.section.7.2.2.3.p.5"> <b>Note:</b> Many HTTP/1.0 caches will not recognize or obey this directive. Also, no-cache response directives with field-names are often |
---|
[1695] | 1336 | handled by implementations as if an unqualified no-cache directive was received; i.e., the special handling for the qualified |
---|
| 1337 | form is not widely implemented. |
---|
| 1338 | </p> |
---|
[1751] | 1339 | <p id="rfc.section.7.2.2.3.p.6"> <b>Note:</b> This directive uses the quoted-string form of the argument syntax. Senders <em class="bcp14">SHOULD NOT</em> use the token form (even if quoting appears not to be needed for single-entry lists). |
---|
[1695] | 1340 | </p> |
---|
| 1341 | <div id="rfc.iref.c.17"></div> |
---|
| 1342 | <div id="rfc.iref.n.5"></div> |
---|
[1751] | 1343 | <h4 id="rfc.section.7.2.2.4"><a href="#rfc.section.7.2.2.4">7.2.2.4</a> <a id="cache-response-directive.no-store" href="#cache-response-directive.no-store">no-store</a></h4> |
---|
[1779] | 1344 | <p id="rfc.section.7.2.2.4.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. |
---|
[1695] | 1345 | </p> |
---|
[1751] | 1346 | <p id="rfc.section.7.2.2.4.p.2">This directive is NOT a reliable or sufficient mechanism for ensuring privacy. In particular, malicious or compromised caches |
---|
[1695] | 1347 | might not recognize or obey this directive, and communications networks might be vulnerable to eavesdropping. |
---|
| 1348 | </p> |
---|
| 1349 | <div id="rfc.iref.c.18"></div> |
---|
| 1350 | <div id="rfc.iref.m.4"></div> |
---|
[1751] | 1351 | <h4 id="rfc.section.7.2.2.5"><a href="#rfc.section.7.2.2.5">7.2.2.5</a> <a id="cache-response-directive.must-revalidate" href="#cache-response-directive.must-revalidate">must-revalidate</a></h4> |
---|
[1779] | 1352 | <p id="rfc.section.7.2.2.5.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. |
---|
[1695] | 1353 | </p> |
---|
[1751] | 1354 | <p id="rfc.section.7.2.2.5.p.2">The must-revalidate directive is necessary to support reliable operation for certain protocol features. In all circumstances |
---|
[1710] | 1355 | 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. |
---|
[1695] | 1356 | </p> |
---|
[1751] | 1357 | <p id="rfc.section.7.2.2.5.p.3">The must-revalidate directive ought to be used by servers if and only if failure to validate a request on the representation |
---|
[1695] | 1358 | could result in incorrect operation, such as a silently unexecuted financial transaction. |
---|
| 1359 | </p> |
---|
| 1360 | <div id="rfc.iref.c.19"></div> |
---|
| 1361 | <div id="rfc.iref.p.4"></div> |
---|
[1751] | 1362 | <h4 id="rfc.section.7.2.2.6"><a href="#rfc.section.7.2.2.6">7.2.2.6</a> <a id="cache-response-directive.proxy-revalidate" href="#cache-response-directive.proxy-revalidate">proxy-revalidate</a></h4> |
---|
[1779] | 1363 | <p id="rfc.section.7.2.2.6.p.1">The "proxy-revalidate" response directive has the same meaning as the must-revalidate response directive, except that it does |
---|
[1695] | 1364 | not apply to private caches. |
---|
| 1365 | </p> |
---|
| 1366 | <div id="rfc.iref.c.20"></div> |
---|
| 1367 | <div id="rfc.iref.m.5"></div> |
---|
[1751] | 1368 | <h4 id="rfc.section.7.2.2.7"><a href="#rfc.section.7.2.2.7">7.2.2.7</a> <a id="cache-response-directive.max-age" href="#cache-response-directive.max-age">max-age</a></h4> |
---|
| 1369 | <p id="rfc.section.7.2.2.7.p.1">Argument syntax: </p> |
---|
[729] | 1370 | <ul class="empty"> |
---|
[1805] | 1371 | <li> <a href="#delta-seconds" class="smpl">delta-seconds</a> (see <a href="#delta-seconds" title="Delta Seconds">Section 1.4.1</a>) |
---|
[729] | 1372 | </li> |
---|
| 1373 | </ul> |
---|
[1779] | 1374 | <p id="rfc.section.7.2.2.7.p.2">The "max-age" response directive indicates that the response is to be considered stale after its age is greater than the specified |
---|
[1695] | 1375 | number of seconds. |
---|
[52] | 1376 | </p> |
---|
[1751] | 1377 | <p id="rfc.section.7.2.2.7.p.3"> <b>Note:</b> This directive uses the token form of the argument syntax; e.g., 'max-age=5', not 'max-age="5"'. Senders <em class="bcp14">SHOULD NOT</em> use the quoted-string form. |
---|
[1695] | 1378 | </p> |
---|
| 1379 | <div id="rfc.iref.c.21"></div> |
---|
| 1380 | <div id="rfc.iref.s.4"></div> |
---|
[1751] | 1381 | <h4 id="rfc.section.7.2.2.8"><a href="#rfc.section.7.2.2.8">7.2.2.8</a> <a id="cache-response-directive.s-maxage" href="#cache-response-directive.s-maxage">s-maxage</a></h4> |
---|
| 1382 | <p id="rfc.section.7.2.2.8.p.1">Argument syntax: </p> |
---|
[729] | 1383 | <ul class="empty"> |
---|
[1805] | 1384 | <li> <a href="#delta-seconds" class="smpl">delta-seconds</a> (see <a href="#delta-seconds" title="Delta Seconds">Section 1.4.1</a>) |
---|
[729] | 1385 | </li> |
---|
| 1386 | </ul> |
---|
[1779] | 1387 | <p id="rfc.section.7.2.2.8.p.2">The "s-maxage" response directive indicates that, in shared caches, the maximum age specified by this directive overrides |
---|
| 1388 | 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. |
---|
[52] | 1389 | </p> |
---|
[1751] | 1390 | <p id="rfc.section.7.2.2.8.p.3"> <b>Note:</b> This directive uses the token form of the argument syntax; e.g., 's-maxage=10', not 's-maxage="10"'. Senders <em class="bcp14">SHOULD NOT</em> use the quoted-string form. |
---|
[1695] | 1391 | </p> |
---|
| 1392 | <div id="rfc.iref.c.22"></div> |
---|
| 1393 | <div id="rfc.iref.n.6"></div> |
---|
[1751] | 1394 | <h4 id="rfc.section.7.2.2.9"><a href="#rfc.section.7.2.2.9">7.2.2.9</a> <a id="cache-response-directive.no-transform" href="#cache-response-directive.no-transform">no-transform</a></h4> |
---|
[1779] | 1395 | <p id="rfc.section.7.2.2.9.p.1">The "no-transform" response directive indicates that an intermediary (regardless of whether it implements a cache) <em class="bcp14">MUST NOT</em> change the <a href="p2-semantics.html#header.content-encoding" class="smpl">Content-Encoding</a>, <a href="p5-range.html#header.content-range" class="smpl">Content-Range</a> or <a href="p2-semantics.html#header.content-type" class="smpl">Content-Type</a> response header fields, nor the response representation. |
---|
[1695] | 1396 | </p> |
---|
[1751] | 1397 | <h3 id="rfc.section.7.2.3"><a href="#rfc.section.7.2.3">7.2.3</a> <a id="cache.control.extensions" href="#cache.control.extensions">Cache Control Extensions</a></h3> |
---|
| 1398 | <p id="rfc.section.7.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 |
---|
[538] | 1399 | value. Informational extensions (those that do not require a change in cache behavior) can be added without changing the semantics |
---|
| 1400 | of other directives. Behavioral extensions are designed to work by acting as modifiers to the existing base of cache directives. |
---|
| 1401 | Both the new directive and the standard directive are supplied, such that applications that do not understand the new directive |
---|
| 1402 | will default to the behavior specified by the standard directive, and those that understand the new directive will recognize |
---|
| 1403 | it as modifying the requirements associated with the standard directive. In this way, extensions to the cache-control directives |
---|
| 1404 | can be made without requiring changes to the base protocol. |
---|
[52] | 1405 | </p> |
---|
[1751] | 1406 | <p id="rfc.section.7.2.3.p.2">This extension mechanism depends on an HTTP cache obeying all of the cache-control directives defined for its native HTTP-version, |
---|
[52] | 1407 | obeying certain extensions, and ignoring all directives that it does not understand. |
---|
| 1408 | </p> |
---|
[1751] | 1409 | <p id="rfc.section.7.2.3.p.3">For example, consider a hypothetical new response directive called "community" that acts as a modifier to the private directive. |
---|
[1112] | 1410 | We define this new directive to mean that, in addition to any private cache, any cache that is shared only by members of the |
---|
[1707] | 1411 | community named within its value is allowed to cache the response. An origin server wishing to allow the UCI community to |
---|
| 1412 | use an otherwise private response in their shared cache(s) could do so by including |
---|
[52] | 1413 | </p> |
---|
[1805] | 1414 | <div id="rfc.figure.u.8"></div><pre class="text"> Cache-Control: private, community="UCI" |
---|
[1751] | 1415 | </pre><p id="rfc.section.7.2.3.p.5">A cache seeing this header field will act correctly even if the cache does not understand the community cache-extension, since |
---|
[52] | 1416 | it will also see and understand the private directive and thus default to the safe behavior. |
---|
| 1417 | </p> |
---|
[1751] | 1418 | <p id="rfc.section.7.2.3.p.6">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 |
---|
[1112] | 1419 | will be combined with standard directives (or the response's default cacheability) such that the cache behavior will remain |
---|
| 1420 | minimally correct even if the cache does not understand the extension(s). |
---|
[52] | 1421 | </p> |
---|
[1751] | 1422 | <p id="rfc.section.7.2.3.p.7">New extension directives ought to consider defining:</p> |
---|
| 1423 | <p id="rfc.section.7.2.3.p.8"> </p> |
---|
[1701] | 1424 | <ul> |
---|
| 1425 | <li>What it means for a directive to be specified multiple times,</li> |
---|
| 1426 | <li>When the directive does not take an argument, what it means when an argument is present,</li> |
---|
| 1427 | <li>When the directive requires an argument, what it means when it is missing.</li> |
---|
| 1428 | </ul> |
---|
[1751] | 1429 | <p id="rfc.section.7.2.3.p.9">The HTTP Cache Directive Registry defines the name space for the cache directives.</p> |
---|
| 1430 | <p id="rfc.section.7.2.3.p.10">A registration <em class="bcp14">MUST</em> include the following fields: |
---|
[817] | 1431 | </p> |
---|
| 1432 | <ul> |
---|
| 1433 | <li>Cache Directive Name</li> |
---|
| 1434 | <li>Pointer to specification text</li> |
---|
| 1435 | </ul> |
---|
[1751] | 1436 | <p id="rfc.section.7.2.3.p.11">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>). |
---|
[817] | 1437 | </p> |
---|
[1751] | 1438 | <p id="rfc.section.7.2.3.p.12">The registry itself is maintained at <<a href="http://www.iana.org/assignments/http-cache-directives">http://www.iana.org/assignments/http-cache-directives</a>>. |
---|
[817] | 1439 | </p> |
---|
[52] | 1440 | <div id="rfc.iref.e.2"></div> |
---|
| 1441 | <div id="rfc.iref.h.4"></div> |
---|
[1751] | 1442 | <h2 id="rfc.section.7.3"><a href="#rfc.section.7.3">7.3</a> <a id="header.expires" href="#header.expires">Expires</a></h2> |
---|
| 1443 | <p id="rfc.section.7.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 Model">Section 4.1</a> for further discussion of the freshness model. |
---|
[52] | 1444 | </p> |
---|
[1751] | 1445 | <p id="rfc.section.7.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 |
---|
[52] | 1446 | that time. |
---|
| 1447 | </p> |
---|
[1864] | 1448 | <p id="rfc.section.7.3.p.3">The field-value is an absolute date and time as defined by HTTP-date in <a href="p2-semantics.html#http.date" title="Date/Time Formats">Section 9.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>; a sender <em class="bcp14">MUST</em> use the rfc1123-date format. |
---|
[52] | 1449 | </p> |
---|
[1805] | 1450 | <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> |
---|
| 1451 | </pre><div id="rfc.figure.u.10"></div> |
---|
[540] | 1452 | <p>For example</p> <pre class="text"> Expires: Thu, 01 Dec 1994 16:00:00 GMT |
---|
[1751] | 1453 | </pre><p id="rfc.section.7.3.p.6">A cache <em class="bcp14">MUST</em> treat other invalid date formats, especially including the value "0", as in the past (i.e., "already expired"). |
---|
[1400] | 1454 | </p> |
---|
[1751] | 1455 | <div class="note" id="rfc.section.7.3.p.7"> |
---|
[1793] | 1456 | <p> <b>Note:</b> If a response includes a <a href="#header.cache-control" class="smpl">Cache-Control</a> field with the max-age directive (see <a href="#cache-response-directive.max-age" title="max-age">Section 7.2.2.7</a>), that directive overrides the Expires field. Likewise, the s-maxage directive (<a href="#cache-response-directive.s-maxage" title="s-maxage">Section 7.2.2.8</a>) overrides the <a href="#header.expires" class="smpl">Expires</a> header fieldin shared caches. |
---|
[540] | 1457 | </p> |
---|
| 1458 | </div> |
---|
[1751] | 1459 | <p id="rfc.section.7.3.p.8">Historically, HTTP required the Expires field-value to be no more than a year in the future. While longer freshness lifetimes |
---|
[1400] | 1460 | are no longer prohibited, extremely large values have been demonstrated to cause problems (e.g., clock overflows due to use |
---|
[1752] | 1461 | of 32-bit integers for time values), and many caches will evict a response far sooner than that. Therefore, senders ought |
---|
[1400] | 1462 | not produce them. |
---|
[52] | 1463 | </p> |
---|
[1751] | 1464 | <p id="rfc.section.7.3.p.9">An origin server without a clock <em class="bcp14">MUST NOT</em> assign Expires values to a response unless these values were associated with the resource by a system or user with a reliable |
---|
[1436] | 1465 | clock. It <em class="bcp14">MAY</em> assign an Expires value that is known, at or before server configuration time, to be in the past (this allows "pre-expiration" |
---|
| 1466 | of responses without storing separate Expires values for each resource). |
---|
| 1467 | </p> |
---|
[1112] | 1468 | <div id="rfc.iref.p.5"></div> |
---|
[52] | 1469 | <div id="rfc.iref.h.5"></div> |
---|
[1751] | 1470 | <h2 id="rfc.section.7.4"><a href="#rfc.section.7.4">7.4</a> <a id="header.pragma" href="#header.pragma">Pragma</a></h2> |
---|
| 1471 | <p id="rfc.section.7.4.p.1">The "Pragma" header field allows backwards compatibility with HTTP/1.0 caches, so that clients can specify a "no-cache" request |
---|
[1737] | 1472 | 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 |
---|
| 1473 | ignored. |
---|
[52] | 1474 | </p> |
---|
[1751] | 1475 | <p id="rfc.section.7.4.p.2">In HTTP/1.0, Pragma was defined as an extensible field for implementation-specified directives for recipients. This specification |
---|
[1284] | 1476 | deprecates such extensions to improve interoperability. |
---|
| 1477 | </p> |
---|
[1805] | 1478 | <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> |
---|
[1231] | 1479 | <a href="#header.pragma" class="smpl">pragma-directive</a> = "no-cache" / <a href="#header.pragma" class="smpl">extension-pragma</a> |
---|
[1805] | 1480 | <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> ) ] |
---|
[1751] | 1481 | </pre><p id="rfc.section.7.4.p.4">When the <a href="#header.cache-control" class="smpl">Cache-Control</a> header field is not present in a request, the no-cache request pragma-directive <em class="bcp14">MUST</em> have the same effect on caches as if "Cache-Control: no-cache" were present (see <a href="#cache-request-directive" title="Request Cache-Control Directives">Section 7.2.1</a>). |
---|
[52] | 1482 | </p> |
---|
[1751] | 1483 | <p id="rfc.section.7.4.p.5">When sending a no-cache request, a client ought to include both the pragma and cache-control directives, unless Cache-Control: |
---|
[1737] | 1484 | 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: |
---|
[1284] | 1485 | </p> |
---|
[1805] | 1486 | <div id="rfc.figure.u.12"></div> <pre class="text">GET / HTTP/1.1 |
---|
[1284] | 1487 | Host: www.example.com |
---|
| 1488 | Cache-Control: max-age=30 |
---|
| 1489 | Pragma: no-cache |
---|
[1287] | 1490 | |
---|
[1751] | 1491 | </pre> <p id="rfc.section.7.4.p.7">will constrain HTTP/1.1 caches to serve a response no older than 30 seconds, while precluding implementations that do not |
---|
[1737] | 1492 | understand <a href="#header.cache-control" class="smpl">Cache-Control</a> from serving a cached response. |
---|
[1284] | 1493 | </p> |
---|
[1751] | 1494 | <div class="note" id="rfc.section.7.4.p.8"> |
---|
[1287] | 1495 | <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: |
---|
| 1496 | no-cache" in them. |
---|
[540] | 1497 | </p> |
---|
| 1498 | </div> |
---|
[1860] | 1499 | <div id="rfc.iref.w.1"></div> |
---|
[52] | 1500 | <div id="rfc.iref.h.6"></div> |
---|
[1860] | 1501 | <h2 id="rfc.section.7.5"><a href="#rfc.section.7.5">7.5</a> <a id="header.warning" href="#header.warning">Warning</a></h2> |
---|
| 1502 | <p id="rfc.section.7.5.p.1">The "Warning" header field is used to carry additional information about the status or transformation of a message that might |
---|
[1164] | 1503 | not be reflected in the message. This information is typically used to warn about possible incorrectness introduced by caching |
---|
| 1504 | operations or transformations applied to the payload of the message. |
---|
[52] | 1505 | </p> |
---|
[1860] | 1506 | <p id="rfc.section.7.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 |
---|
[732] | 1507 | code, distinguishes these responses from true failures. |
---|
[538] | 1508 | </p> |
---|
[1860] | 1509 | <p id="rfc.section.7.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 |
---|
[994] | 1510 | be applied to response messages. |
---|
[538] | 1511 | </p> |
---|
[1860] | 1512 | <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> |
---|
[135] | 1513 | |
---|
[1805] | 1514 | <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> |
---|
| 1515 | [<a href="#imported.abnf" class="smpl">SP</a> <a href="#header.warning" class="smpl">warn-date</a>] |
---|
[135] | 1516 | |
---|
[1805] | 1517 | <a href="#header.warning" class="smpl">warn-code</a> = 3<a href="#imported.abnf" class="smpl">DIGIT</a> |
---|
| 1518 | <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> |
---|
[135] | 1519 | ; the name or pseudonym of the server adding |
---|
[994] | 1520 | ; the Warning header field, for use in debugging |
---|
[1805] | 1521 | <a href="#header.warning" class="smpl">warn-text</a> = <a href="#imported.abnf" class="smpl">quoted-string</a> |
---|
| 1522 | <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> |
---|
[1860] | 1523 | </pre><p id="rfc.section.7.5.p.5">Multiple warnings can be attached to a response (either by the origin server or by a cache), including multiple warnings with |
---|
[669] | 1524 | the same code number, only differing in warn-text. |
---|
[52] | 1525 | </p> |
---|
[1860] | 1526 | <p id="rfc.section.7.5.p.6">When this occurs, the user agent <em class="bcp14">SHOULD</em> inform the user of as many of them as possible, in the order that they appear in the response. |
---|
[52] | 1527 | </p> |
---|
[1860] | 1528 | <p id="rfc.section.7.5.p.7">Systems that generate multiple Warning header fields are encouraged to order them with this user agent behavior in mind. New |
---|
[1772] | 1529 | Warning header fields are added after any existing Warning header fields. |
---|
[52] | 1530 | </p> |
---|
[1860] | 1531 | <p id="rfc.section.7.5.p.8">Warnings are assigned three digit warn-codes. The first digit indicates whether the Warning is required to be deleted from |
---|
[538] | 1532 | a stored response after validation: |
---|
[52] | 1533 | </p> |
---|
[538] | 1534 | <ul> |
---|
[1112] | 1535 | <li>1xx Warnings 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. |
---|
[538] | 1536 | </li> |
---|
[868] | 1537 | <li>2xx Warnings describe some aspect of the representation that is not rectified by a validation (for example, a lossy compression |
---|
[1112] | 1538 | of the representation) and <em class="bcp14">MUST NOT</em> be deleted by a cache after validation, unless a full response is returned, in which case they <em class="bcp14">MUST</em> be. |
---|
[538] | 1539 | </li> |
---|
| 1540 | </ul> |
---|
[1860] | 1541 | <p id="rfc.section.7.5.p.9">If an implementation sends a message with one or more Warning header fields to a receiver whose version is HTTP/1.0 or lower, |
---|
[1740] | 1542 | then the sender <em class="bcp14">MUST</em> include in each warning-value a warn-date that matches the <a href="p2-semantics.html#header.date" class="smpl">Date</a> header field in the message. |
---|
[538] | 1543 | </p> |
---|
[1860] | 1544 | <p id="rfc.section.7.5.p.10">If a system receives a message with a warning-value that includes a warn-date, and that warn-date is different from the <a href="p2-semantics.html#header.date" class="smpl">Date</a> value in the response, then that warning-value <em class="bcp14">MUST</em> be deleted from the message before storing, forwarding, or using it. (preventing the consequences of naive caching of Warning |
---|
[994] | 1545 | header fields.) If all of the warning-values are deleted for this reason, the Warning header field <em class="bcp14">MUST</em> be deleted as well. |
---|
[538] | 1546 | </p> |
---|
[1860] | 1547 | <p id="rfc.section.7.5.p.11">The following warn-codes are defined by this specification, each with a recommended warn-text in English, and a description |
---|
[538] | 1548 | of its meaning. |
---|
| 1549 | </p> |
---|
[1860] | 1550 | <div id="rfc.iref.73"></div> |
---|
[1487] | 1551 | <div id="rfc.iref.w.2"></div> |
---|
[1860] | 1552 | <h3 id="rfc.section.7.5.1"><a href="#rfc.section.7.5.1">7.5.1</a> <a id="warn.110" href="#warn.110">110 Response is Stale</a></h3> |
---|
| 1553 | <p id="rfc.section.7.5.1.p.1">A cache <em class="bcp14">SHOULD</em> include this whenever the returned response is stale. |
---|
[1485] | 1554 | </p> |
---|
[1860] | 1555 | <div id="rfc.iref.74"></div> |
---|
[1487] | 1556 | <div id="rfc.iref.w.3"></div> |
---|
[1860] | 1557 | <h3 id="rfc.section.7.5.2"><a href="#rfc.section.7.5.2">7.5.2</a> <a id="warn.111" href="#warn.111">111 Revalidation Failed</a></h3> |
---|
| 1558 | <p id="rfc.section.7.5.2.p.1">A cache <em class="bcp14">SHOULD</em> include this when returning a stale response because an attempt to validate the response failed, due to an inability to reach |
---|
[1487] | 1559 | the server. |
---|
| 1560 | </p> |
---|
[1860] | 1561 | <div id="rfc.iref.75"></div> |
---|
[1487] | 1562 | <div id="rfc.iref.w.4"></div> |
---|
[1860] | 1563 | <h3 id="rfc.section.7.5.3"><a href="#rfc.section.7.5.3">7.5.3</a> <a id="warn.112" href="#warn.112">112 Disconnected Operation</a></h3> |
---|
| 1564 | <p id="rfc.section.7.5.3.p.1">A cache <em class="bcp14">SHOULD</em> include this if it is intentionally disconnected from the rest of the network for a period of time. |
---|
[1487] | 1565 | </p> |
---|
[1860] | 1566 | <div id="rfc.iref.76"></div> |
---|
[1487] | 1567 | <div id="rfc.iref.w.5"></div> |
---|
[1860] | 1568 | <h3 id="rfc.section.7.5.4"><a href="#rfc.section.7.5.4">7.5.4</a> <a id="warn.113" href="#warn.113">113 Heuristic Expiration</a></h3> |
---|
| 1569 | <p id="rfc.section.7.5.4.p.1">A cache <em class="bcp14">SHOULD</em> include this if it heuristically chose a freshness lifetime greater than 24 hours and the response's age is greater than 24 |
---|
[1487] | 1570 | hours. |
---|
| 1571 | </p> |
---|
[1860] | 1572 | <div id="rfc.iref.77"></div> |
---|
[1487] | 1573 | <div id="rfc.iref.w.6"></div> |
---|
[1860] | 1574 | <h3 id="rfc.section.7.5.5"><a href="#rfc.section.7.5.5">7.5.5</a> <a id="warn.199" href="#warn.199">199 Miscellaneous Warning</a></h3> |
---|
| 1575 | <p id="rfc.section.7.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. |
---|
[1487] | 1576 | </p> |
---|
[1860] | 1577 | <div id="rfc.iref.78"></div> |
---|
[1487] | 1578 | <div id="rfc.iref.w.7"></div> |
---|
[1860] | 1579 | <h3 id="rfc.section.7.5.6"><a href="#rfc.section.7.5.6">7.5.6</a> <a id="warn.214" href="#warn.214">214 Transformation Applied</a></h3> |
---|
| 1580 | <p id="rfc.section.7.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, |
---|
[1487] | 1581 | or modifying the representation data, unless this Warning code already appears in the response. |
---|
| 1582 | </p> |
---|
[1860] | 1583 | <div id="rfc.iref.79"></div> |
---|
[1487] | 1584 | <div id="rfc.iref.w.8"></div> |
---|
[1860] | 1585 | <h3 id="rfc.section.7.5.7"><a href="#rfc.section.7.5.7">7.5.7</a> <a id="warn.299" href="#warn.299">299 Miscellaneous Persistent Warning</a></h3> |
---|
| 1586 | <p id="rfc.section.7.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. |
---|
[1487] | 1587 | </p> |
---|
[1860] | 1588 | <h3 id="rfc.section.7.5.8"><a href="#rfc.section.7.5.8">7.5.8</a> <a id="warn.code.extensions" href="#warn.code.extensions">Warn Code Extensions</a></h3> |
---|
| 1589 | <p id="rfc.section.7.5.8.p.1">The HTTP Warn Code Registry defines the name space for warn codes.</p> |
---|
| 1590 | <p id="rfc.section.7.5.8.p.2">A registration <em class="bcp14">MUST</em> include the following fields: |
---|
[1487] | 1591 | </p> |
---|
[1485] | 1592 | <ul> |
---|
| 1593 | <li>Warn Code (3 digits)</li> |
---|
| 1594 | <li>Short Description</li> |
---|
| 1595 | <li>Pointer to specification text</li> |
---|
| 1596 | </ul> |
---|
[1860] | 1597 | <p id="rfc.section.7.5.8.p.3">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>). |
---|
[1485] | 1598 | </p> |
---|
[1860] | 1599 | <p id="rfc.section.7.5.8.p.4">The registry itself is maintained at <<a href="http://www.iana.org/assignments/http-warn-codes">http://www.iana.org/assignments/http-warn-codes</a>>. |
---|
[1485] | 1600 | </p> |
---|
[1751] | 1601 | <h1 id="rfc.section.8"><a href="#rfc.section.8">8.</a> <a id="history.lists" href="#history.lists">History Lists</a></h1> |
---|
| 1602 | <p id="rfc.section.8.p.1">User agents often have history mechanisms, such as "Back" buttons and history lists, that can be used to redisplay a representation |
---|
[538] | 1603 | retrieved earlier in a session. |
---|
[52] | 1604 | </p> |
---|
[1751] | 1605 | <p id="rfc.section.8.p.2">The freshness model (<a href="#expiration.model" title="Freshness Model">Section 4.1</a>) does not necessarily apply to history mechanisms. I.e., a history mechanism can display a previous representation even if |
---|
[766] | 1606 | it has expired. |
---|
[52] | 1607 | </p> |
---|
[1751] | 1608 | <p id="rfc.section.8.p.3">This does not prohibit the history mechanism from telling the user that a view might be stale, or from honoring cache directives |
---|
[766] | 1609 | (e.g., Cache-Control: no-store). |
---|
[203] | 1610 | </p> |
---|
[1751] | 1611 | <h1 id="rfc.section.9"><a href="#rfc.section.9">9.</a> <a id="IANA.considerations" href="#IANA.considerations">IANA Considerations</a></h1> |
---|
| 1612 | <h2 id="rfc.section.9.1"><a href="#rfc.section.9.1">9.1</a> <a id="cache.directive.registration" href="#cache.directive.registration">Cache Directive Registry</a></h2> |
---|
| 1613 | <p id="rfc.section.9.1.p.1">The registration procedure for HTTP Cache Directives is defined by <a href="#cache.control.extensions" title="Cache Control Extensions">Section 7.2.3</a> of this document. |
---|
[538] | 1614 | </p> |
---|
[1751] | 1615 | <p id="rfc.section.9.1.p.2">The HTTP Cache Directive Registry shall be created at <<a href="http://www.iana.org/assignments/http-cache-directives">http://www.iana.org/assignments/http-cache-directives</a>> and be populated with the registrations below: |
---|
[817] | 1616 | </p> |
---|
[290] | 1617 | <div id="rfc.table.1"> |
---|
[817] | 1618 | <div id="iana.cache.directive.registration.table"></div> |
---|
| 1619 | <table class="tt full left" cellpadding="3" cellspacing="0"> |
---|
| 1620 | <thead> |
---|
| 1621 | <tr> |
---|
| 1622 | <th>Cache Directive</th> |
---|
| 1623 | <th>Reference</th> |
---|
| 1624 | </tr> |
---|
| 1625 | </thead> |
---|
| 1626 | <tbody> |
---|
| 1627 | <tr> |
---|
| 1628 | <td class="left">max-age</td> |
---|
[1751] | 1629 | <td class="left"> <a href="#cache-request-directive.max-age" title="max-age">Section 7.2.1.3</a>, <a href="#cache-response-directive.max-age" title="max-age">Section 7.2.2.7</a> |
---|
[817] | 1630 | </td> |
---|
| 1631 | </tr> |
---|
| 1632 | <tr> |
---|
| 1633 | <td class="left">max-stale</td> |
---|
[1751] | 1634 | <td class="left"> <a href="#cache-request-directive.max-stale" title="max-stale">Section 7.2.1.4</a> |
---|
[817] | 1635 | </td> |
---|
| 1636 | </tr> |
---|
| 1637 | <tr> |
---|
| 1638 | <td class="left">min-fresh</td> |
---|
[1751] | 1639 | <td class="left"> <a href="#cache-request-directive.min-fresh" title="min-fresh">Section 7.2.1.5</a> |
---|
[817] | 1640 | </td> |
---|
| 1641 | </tr> |
---|
| 1642 | <tr> |
---|
| 1643 | <td class="left">must-revalidate</td> |
---|
[1751] | 1644 | <td class="left"> <a href="#cache-response-directive.must-revalidate" title="must-revalidate">Section 7.2.2.5</a> |
---|
[817] | 1645 | </td> |
---|
| 1646 | </tr> |
---|
| 1647 | <tr> |
---|
| 1648 | <td class="left">no-cache</td> |
---|
[1751] | 1649 | <td class="left"> <a href="#cache-request-directive.no-cache" title="no-cache">Section 7.2.1.1</a>, <a href="#cache-response-directive.no-cache" title="no-cache">Section 7.2.2.3</a> |
---|
[817] | 1650 | </td> |
---|
| 1651 | </tr> |
---|
| 1652 | <tr> |
---|
| 1653 | <td class="left">no-store</td> |
---|
[1751] | 1654 | <td class="left"> <a href="#cache-request-directive.no-store" title="no-store">Section 7.2.1.2</a>, <a href="#cache-response-directive.no-store" title="no-store">Section 7.2.2.4</a> |
---|
[817] | 1655 | </td> |
---|
| 1656 | </tr> |
---|
| 1657 | <tr> |
---|
| 1658 | <td class="left">no-transform</td> |
---|
[1751] | 1659 | <td class="left"> <a href="#cache-request-directive.no-transform" title="no-transform">Section 7.2.1.6</a>, <a href="#cache-response-directive.no-transform" title="no-transform">Section 7.2.2.9</a> |
---|
[817] | 1660 | </td> |
---|
| 1661 | </tr> |
---|
| 1662 | <tr> |
---|
| 1663 | <td class="left">only-if-cached</td> |
---|
[1751] | 1664 | <td class="left"> <a href="#cache-request-directive.only-if-cached" title="only-if-cached">Section 7.2.1.7</a> |
---|
[817] | 1665 | </td> |
---|
| 1666 | </tr> |
---|
| 1667 | <tr> |
---|
| 1668 | <td class="left">private</td> |
---|
[1751] | 1669 | <td class="left"> <a href="#cache-response-directive.private" title="private">Section 7.2.2.2</a> |
---|
[817] | 1670 | </td> |
---|
| 1671 | </tr> |
---|
| 1672 | <tr> |
---|
| 1673 | <td class="left">proxy-revalidate</td> |
---|
[1751] | 1674 | <td class="left"> <a href="#cache-response-directive.proxy-revalidate" title="proxy-revalidate">Section 7.2.2.6</a> |
---|
[817] | 1675 | </td> |
---|
| 1676 | </tr> |
---|
| 1677 | <tr> |
---|
| 1678 | <td class="left">public</td> |
---|
[1751] | 1679 | <td class="left"> <a href="#cache-response-directive.only-if-cached" title="public">Section 7.2.2.1</a> |
---|
[817] | 1680 | </td> |
---|
| 1681 | </tr> |
---|
| 1682 | <tr> |
---|
| 1683 | <td class="left">s-maxage</td> |
---|
[1751] | 1684 | <td class="left"> <a href="#cache-response-directive.s-maxage" title="s-maxage">Section 7.2.2.8</a> |
---|
[817] | 1685 | </td> |
---|
| 1686 | </tr> |
---|
[825] | 1687 | <tr> |
---|
| 1688 | <td class="left">stale-if-error</td> |
---|
| 1689 | <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> |
---|
| 1690 | </td> |
---|
| 1691 | </tr> |
---|
| 1692 | <tr> |
---|
| 1693 | <td class="left">stale-while-revalidate</td> |
---|
| 1694 | <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> |
---|
| 1695 | </td> |
---|
| 1696 | </tr> |
---|
[817] | 1697 | </tbody> |
---|
| 1698 | </table> |
---|
| 1699 | </div> |
---|
[1751] | 1700 | <h2 id="rfc.section.9.2"><a href="#rfc.section.9.2">9.2</a> <a id="warn.code.registration" href="#warn.code.registration">Warn Code Registry</a></h2> |
---|
[1860] | 1701 | <p id="rfc.section.9.2.p.1">The registration procedure for HTTP Warn Codes is defined by <a href="#warn.code.extensions" title="Warn Code Extensions">Section 7.5.8</a> of this document. |
---|
[817] | 1702 | </p> |
---|
[1751] | 1703 | <p id="rfc.section.9.2.p.2">The HTTP Warn Code Registry shall be created at <<a href="http://www.iana.org/assignments/http-cache-directives">http://www.iana.org/assignments/http-cache-directives</a>> and be populated with the registrations below: |
---|
[1485] | 1704 | </p> |
---|
[1487] | 1705 | <div id="rfc.table.2"> |
---|
| 1706 | <div id="iana.warn.code.registration.table"></div> |
---|
[1485] | 1707 | <table class="tt full left" cellpadding="3" cellspacing="0"> |
---|
| 1708 | <thead> |
---|
| 1709 | <tr> |
---|
| 1710 | <th>Warn Code</th> |
---|
| 1711 | <th>Short Description</th> |
---|
| 1712 | <th>Reference</th> |
---|
| 1713 | </tr> |
---|
| 1714 | </thead> |
---|
| 1715 | <tbody> |
---|
| 1716 | <tr> |
---|
| 1717 | <td class="left">110</td> |
---|
[1487] | 1718 | <td class="left">Response is Stale</td> |
---|
[1860] | 1719 | <td class="left"> <a href="#warn.110" id="rfc.xref.warn.110.1" title="110 Response is Stale">Section 7.5.1</a> |
---|
[1487] | 1720 | </td> |
---|
[1485] | 1721 | </tr> |
---|
| 1722 | <tr> |
---|
| 1723 | <td class="left">111</td> |
---|
[1487] | 1724 | <td class="left">Revalidation Failed</td> |
---|
[1860] | 1725 | <td class="left"> <a href="#warn.111" id="rfc.xref.warn.111.1" title="111 Revalidation Failed">Section 7.5.2</a> |
---|
[1487] | 1726 | </td> |
---|
[1485] | 1727 | </tr> |
---|
| 1728 | <tr> |
---|
| 1729 | <td class="left">112</td> |
---|
[1487] | 1730 | <td class="left">Disconnected Operation</td> |
---|
[1860] | 1731 | <td class="left"> <a href="#warn.112" id="rfc.xref.warn.112.1" title="112 Disconnected Operation">Section 7.5.3</a> |
---|
[1487] | 1732 | </td> |
---|
[1485] | 1733 | </tr> |
---|
| 1734 | <tr> |
---|
| 1735 | <td class="left">113</td> |
---|
[1487] | 1736 | <td class="left">Heuristic Expiration</td> |
---|
[1860] | 1737 | <td class="left"> <a href="#warn.113" id="rfc.xref.warn.113.1" title="113 Heuristic Expiration">Section 7.5.4</a> |
---|
[1487] | 1738 | </td> |
---|
[1485] | 1739 | </tr> |
---|
| 1740 | <tr> |
---|
| 1741 | <td class="left">199</td> |
---|
[1487] | 1742 | <td class="left">Miscellaneous Warning</td> |
---|
[1860] | 1743 | <td class="left"> <a href="#warn.199" id="rfc.xref.warn.199.1" title="199 Miscellaneous Warning">Section 7.5.5</a> |
---|
[1487] | 1744 | </td> |
---|
[1485] | 1745 | </tr> |
---|
| 1746 | <tr> |
---|
| 1747 | <td class="left">214</td> |
---|
[1487] | 1748 | <td class="left">Transformation Applied</td> |
---|
[1860] | 1749 | <td class="left"> <a href="#warn.214" id="rfc.xref.warn.214.1" title="214 Transformation Applied">Section 7.5.6</a> |
---|
[1487] | 1750 | </td> |
---|
[1485] | 1751 | </tr> |
---|
| 1752 | <tr> |
---|
| 1753 | <td class="left">299</td> |
---|
[1487] | 1754 | <td class="left">Miscellaneous Persistent Warning</td> |
---|
[1860] | 1755 | <td class="left"> <a href="#warn.299" id="rfc.xref.warn.299.1" title="299 Miscellaneous Persistent Warning">Section 7.5.7</a> |
---|
[1487] | 1756 | </td> |
---|
[1485] | 1757 | </tr> |
---|
| 1758 | </tbody> |
---|
| 1759 | </table> |
---|
| 1760 | </div> |
---|
[1751] | 1761 | <h2 id="rfc.section.9.3"><a href="#rfc.section.9.3">9.3</a> <a id="header.field.registration" href="#header.field.registration">Header Field Registration</a></h2> |
---|
| 1762 | <p id="rfc.section.9.3.p.1">The Message Header Field Registry located 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>> shall be updated with the permanent registrations below (see <a href="#RFC3864" id="rfc.xref.RFC3864.1"><cite title="Registration Procedures for Message Header Fields">[RFC3864]</cite></a>): |
---|
[1485] | 1763 | </p> |
---|
[1487] | 1764 | <div id="rfc.table.3"> |
---|
[290] | 1765 | <div id="iana.header.registration.table"></div> |
---|
[669] | 1766 | <table class="tt full left" cellpadding="3" cellspacing="0"> |
---|
[253] | 1767 | <thead> |
---|
| 1768 | <tr> |
---|
| 1769 | <th>Header Field Name</th> |
---|
| 1770 | <th>Protocol</th> |
---|
| 1771 | <th>Status</th> |
---|
| 1772 | <th>Reference</th> |
---|
| 1773 | </tr> |
---|
| 1774 | </thead> |
---|
| 1775 | <tbody> |
---|
| 1776 | <tr> |
---|
[704] | 1777 | <td class="left">Age</td> |
---|
| 1778 | <td class="left">http</td> |
---|
| 1779 | <td class="left">standard</td> |
---|
[1751] | 1780 | <td class="left"> <a href="#header.age" id="rfc.xref.header.age.3" title="Age">Section 7.1</a> |
---|
[253] | 1781 | </td> |
---|
| 1782 | </tr> |
---|
| 1783 | <tr> |
---|
[704] | 1784 | <td class="left">Cache-Control</td> |
---|
| 1785 | <td class="left">http</td> |
---|
| 1786 | <td class="left">standard</td> |
---|
[1751] | 1787 | <td class="left"> <a href="#header.cache-control" id="rfc.xref.header.cache-control.2" title="Cache-Control">Section 7.2</a> |
---|
[253] | 1788 | </td> |
---|
| 1789 | </tr> |
---|
| 1790 | <tr> |
---|
[704] | 1791 | <td class="left">Expires</td> |
---|
| 1792 | <td class="left">http</td> |
---|
| 1793 | <td class="left">standard</td> |
---|
[1751] | 1794 | <td class="left"> <a href="#header.expires" id="rfc.xref.header.expires.4" title="Expires">Section 7.3</a> |
---|
[253] | 1795 | </td> |
---|
| 1796 | </tr> |
---|
| 1797 | <tr> |
---|
[704] | 1798 | <td class="left">Pragma</td> |
---|
| 1799 | <td class="left">http</td> |
---|
| 1800 | <td class="left">standard</td> |
---|
[1751] | 1801 | <td class="left"> <a href="#header.pragma" id="rfc.xref.header.pragma.3" title="Pragma">Section 7.4</a> |
---|
[253] | 1802 | </td> |
---|
| 1803 | </tr> |
---|
| 1804 | <tr> |
---|
[704] | 1805 | <td class="left">Warning</td> |
---|
| 1806 | <td class="left">http</td> |
---|
| 1807 | <td class="left">standard</td> |
---|
[1860] | 1808 | <td class="left"> <a href="#header.warning" id="rfc.xref.header.warning.5" title="Warning">Section 7.5</a> |
---|
[253] | 1809 | </td> |
---|
| 1810 | </tr> |
---|
| 1811 | </tbody> |
---|
| 1812 | </table> |
---|
| 1813 | </div> |
---|
[1751] | 1814 | <p id="rfc.section.9.3.p.2">The change controller is: "IETF (iesg@ietf.org) - Internet Engineering Task Force".</p> |
---|
| 1815 | <h1 id="rfc.section.10"><a href="#rfc.section.10">10.</a> <a id="security.considerations" href="#security.considerations">Security Considerations</a></h1> |
---|
| 1816 | <p id="rfc.section.10.p.1">Caches expose additional potential vulnerabilities, since the contents of the cache represent an attractive target for malicious |
---|
[538] | 1817 | exploitation. Because cache contents persist after an HTTP request is complete, an attack on the cache can reveal information |
---|
[970] | 1818 | long after a user believes that the information has been removed from the network. Therefore, cache contents need to be protected |
---|
[538] | 1819 | as sensitive information. |
---|
[52] | 1820 | </p> |
---|
[1865] | 1821 | <p id="rfc.section.10.p.2">Implementation flaws might allow attackers to insert content into a cache ("cache poisoning"), leading to compromise of clients |
---|
| 1822 | that trust that content. Because of their nature, these attacks are difficult to mitigate. |
---|
| 1823 | </p> |
---|
| 1824 | <p id="rfc.section.10.p.3">Likewise, implementation flaws (as well as misunderstanding of cache operation) might lead to caching of sensitive information |
---|
| 1825 | (e.g., authentication credentials) that is thought to be private, exposing it to unauthorised parties. |
---|
| 1826 | </p> |
---|
| 1827 | <p id="rfc.section.10.p.4">Note that the Set-Cookie response header <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 can be (and often is) used to satisfy subsequent requests |
---|
| 1828 | to caches. Servers who wish to control caching of these responses are encouraged to emit appropriate Cache-Control response |
---|
| 1829 | headers. |
---|
| 1830 | </p> |
---|
[1751] | 1831 | <h1 id="rfc.section.11"><a href="#rfc.section.11">11.</a> <a id="acks" href="#acks">Acknowledgments</a></h1> |
---|
[1864] | 1832 | <p id="rfc.section.11.p.1">See <a href="p1-messaging.html#acks" title="Acknowledgments">Section 9</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>. |
---|
[52] | 1833 | </p> |
---|
[1751] | 1834 | <h1 id="rfc.references"><a id="rfc.section.12" href="#rfc.section.12">12.</a> References |
---|
[52] | 1835 | </h1> |
---|
[1751] | 1836 | <h2 id="rfc.references.1"><a href="#rfc.section.12.1" id="rfc.section.12.1">12.1</a> Normative References |
---|
[119] | 1837 | </h2> |
---|
[770] | 1838 | <table> |
---|
[52] | 1839 | <tr> |
---|
| 1840 | <td class="reference"><b id="Part1">[Part1]</b></td> |
---|
[1864] | 1841 | <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-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 2012. |
---|
[52] | 1842 | </td> |
---|
| 1843 | </tr> |
---|
| 1844 | <tr> |
---|
| 1845 | <td class="reference"><b id="Part2">[Part2]</b></td> |
---|
[1864] | 1846 | <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-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 2012. |
---|
[52] | 1847 | </td> |
---|
| 1848 | </tr> |
---|
| 1849 | <tr> |
---|
| 1850 | <td class="reference"><b id="Part4">[Part4]</b></td> |
---|
[1864] | 1851 | <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-p4-conditional-latest">Hypertext Transfer Protocol (HTTP/1.1): Conditional Requests</a>”, Internet-Draft draft-ietf-httpbis-p4-conditional-latest (work in progress), September 2012. |
---|
[52] | 1852 | </td> |
---|
| 1853 | </tr> |
---|
| 1854 | <tr> |
---|
| 1855 | <td class="reference"><b id="Part5">[Part5]</b></td> |
---|
[1864] | 1856 | <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 2012. |
---|
[52] | 1857 | </td> |
---|
| 1858 | </tr> |
---|
| 1859 | <tr> |
---|
| 1860 | <td class="reference"><b id="Part7">[Part7]</b></td> |
---|
[1864] | 1861 | <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-p7-auth-latest">Hypertext Transfer Protocol (HTTP/1.1): Authentication</a>”, Internet-Draft draft-ietf-httpbis-p7-auth-latest (work in progress), September 2012. |
---|
[52] | 1862 | </td> |
---|
| 1863 | </tr> |
---|
| 1864 | <tr> |
---|
[119] | 1865 | <td class="reference"><b id="RFC2119">[RFC2119]</b></td> |
---|
[704] | 1866 | <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. |
---|
[52] | 1867 | </td> |
---|
| 1868 | </tr> |
---|
[425] | 1869 | <tr> |
---|
| 1870 | <td class="reference"><b id="RFC5234">[RFC5234]</b></td> |
---|
[704] | 1871 | <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. |
---|
[425] | 1872 | </td> |
---|
| 1873 | </tr> |
---|
[119] | 1874 | </table> |
---|
[1751] | 1875 | <h2 id="rfc.references.2"><a href="#rfc.section.12.2" id="rfc.section.12.2">12.2</a> Informative References |
---|
[119] | 1876 | </h2> |
---|
[1865] | 1877 | <table> |
---|
[52] | 1878 | <tr> |
---|
[129] | 1879 | <td class="reference"><b id="RFC1305">[RFC1305]</b></td> |
---|
[704] | 1880 | <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. |
---|
[129] | 1881 | </td> |
---|
| 1882 | </tr> |
---|
| 1883 | <tr> |
---|
[119] | 1884 | <td class="reference"><b id="RFC2616">[RFC2616]</b></td> |
---|
[704] | 1885 | <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. |
---|
[52] | 1886 | </td> |
---|
| 1887 | </tr> |
---|
[253] | 1888 | <tr> |
---|
| 1889 | <td class="reference"><b id="RFC3864">[RFC3864]</b></td> |
---|
[704] | 1890 | <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. |
---|
[253] | 1891 | </td> |
---|
| 1892 | </tr> |
---|
[817] | 1893 | <tr> |
---|
| 1894 | <td class="reference"><b id="RFC5226">[RFC5226]</b></td> |
---|
| 1895 | <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. |
---|
| 1896 | </td> |
---|
| 1897 | </tr> |
---|
[825] | 1898 | <tr> |
---|
| 1899 | <td class="reference"><b id="RFC5861">[RFC5861]</b></td> |
---|
| 1900 | <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. |
---|
| 1901 | </td> |
---|
| 1902 | </tr> |
---|
[1865] | 1903 | <tr> |
---|
| 1904 | <td class="reference"><b id="RFC6265">[RFC6265]</b></td> |
---|
[1867] | 1905 | <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. |
---|
[1865] | 1906 | </td> |
---|
| 1907 | </tr> |
---|
[119] | 1908 | </table> |
---|
[662] | 1909 | <div class="avoidbreak"> |
---|
| 1910 | <h1 id="rfc.authors"><a href="#rfc.authors">Authors' Addresses</a></h1> |
---|
| 1911 | <address class="vcard"><span class="vcardline"><span class="fn">Roy T. Fielding</span> |
---|
| 1912 | (editor) |
---|
[1106] | 1913 | <span class="n hidden"><span class="family-name">Fielding</span><span class="given-name">Roy T.</span></span></span><span class="org vcardline">Adobe Systems Incorporated</span><span class="adr"><span class="street-address vcardline">345 Park Ave</span><span class="vcardline"><span class="locality">San Jose</span>, <span class="region">CA</span> <span class="postal-code">95110</span></span><span class="country-name vcardline">USA</span></span><span class="vcardline">Email: <a href="mailto:fielding@gbiv.com"><span class="email">fielding@gbiv.com</span></a></span><span class="vcardline">URI: <a href="http://roy.gbiv.com/" class="url">http://roy.gbiv.com/</a></span></address> |
---|
[662] | 1914 | <address class="vcard"><span class="vcardline"><span class="fn">Yves Lafon</span> |
---|
| 1915 | (editor) |
---|
[799] | 1916 | <span class="n hidden"><span class="family-name">Lafon</span><span class="given-name">Yves</span></span></span><span class="org vcardline">World Wide Web Consortium</span><span class="adr"><span class="street-address vcardline">W3C / ERCIM</span><span class="street-address vcardline">2004, rte des Lucioles</span><span class="vcardline"><span class="locality">Sophia-Antipolis</span>, <span class="region">AM</span> <span class="postal-code">06902</span></span><span class="country-name vcardline">France</span></span><span class="vcardline">Email: <a href="mailto:ylafon@w3.org"><span class="email">ylafon@w3.org</span></a></span><span class="vcardline">URI: <a href="http://www.raubacapeu.net/people/yves/" class="url">http://www.raubacapeu.net/people/yves/</a></span></address> |
---|
[662] | 1917 | <address class="vcard"><span class="vcardline"><span class="fn">Mark Nottingham</span> |
---|
| 1918 | (editor) |
---|
[1867] | 1919 | <span class="n hidden"><span class="family-name">Nottingham</span><span class="given-name">Mark</span></span></span><span class="vcardline">Email: <a href="mailto:mnot@mnot.net"><span class="email">mnot@mnot.net</span></a></span><span class="vcardline">URI: <a href="http://www.mnot.net/" class="url">http://www.mnot.net/</a></span></address> |
---|
[662] | 1920 | <address class="vcard"><span class="vcardline"><span class="fn">Julian F. Reschke</span> |
---|
| 1921 | (editor) |
---|
[1689] | 1922 | <span class="n hidden"><span class="family-name">Reschke</span><span class="given-name">Julian F.</span></span></span><span class="org vcardline">greenbytes GmbH</span><span class="adr"><span class="street-address vcardline">Hafenweg 16</span><span class="vcardline"><span class="locality">Muenster</span>, <span class="region">NW</span> <span class="postal-code">48155</span></span><span class="country-name vcardline">Germany</span></span><span class="vcardline">Email: <a href="mailto:julian.reschke@greenbytes.de"><span class="email">julian.reschke@greenbytes.de</span></a></span><span class="vcardline">URI: <a href="http://greenbytes.de/tech/webdav/" class="url">http://greenbytes.de/tech/webdav/</a></span></address> |
---|
[662] | 1923 | </div> |
---|
[912] | 1924 | <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> |
---|
[1751] | 1925 | <p id="rfc.section.A.p.1">Make the specified age calculation algorithm less conservative. (<a href="#age.calculations" title="Calculating Age">Section 4.1.3</a>) |
---|
[139] | 1926 | </p> |
---|
[1751] | 1927 | <p id="rfc.section.A.p.2">Remove requirement to consider <a href="p2-semantics.html#header.content-location" class="smpl">Content-Location</a> in successful responses in order to determine the appropriate response to use. (<a href="#validation.model" title="Validation Model">Section 4.2</a>) |
---|
[106] | 1928 | </p> |
---|
[1751] | 1929 | <p id="rfc.section.A.p.3">Clarify denial of service attack avoidance requirement. (<a href="#invalidation.after.updates.or.deletions" title="Request Methods that Invalidate">Section 6</a>) |
---|
[691] | 1930 | </p> |
---|
[1751] | 1931 | <p id="rfc.section.A.p.4">Change ABNF productions for header fields to only define the field value. (<a href="#header.field.definitions" title="Header Field Definitions">Section 7</a>) |
---|
[1231] | 1932 | </p> |
---|
[1860] | 1933 | <p id="rfc.section.A.p.5">Do not mention RFC 2047 encoding and multiple languages in <a href="#header.warning" class="smpl">Warning</a> header fields anymore, as these aspects never were implemented. (<a href="#header.warning" id="rfc.xref.header.warning.6" title="Warning">Section 7.5</a>) |
---|
[669] | 1934 | </p> |
---|
[1860] | 1935 | <p id="rfc.section.A.p.6">Introduce Cache Directive and Warn Code Registries. (<a href="#cache.control.extensions" title="Cache Control Extensions">Section 7.2.3</a> and <a href="#warn.code.extensions" title="Warn Code Extensions">Section 7.5.8</a>) |
---|
[1760] | 1936 | </p> |
---|
[1805] | 1937 | <h1 id="rfc.section.B"><a href="#rfc.section.B">B.</a> <a id="imported.abnf" href="#imported.abnf">Imported ABNF</a></h1> |
---|
[1806] | 1938 | <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 |
---|
[1805] | 1939 | (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 |
---|
| 1940 | character). |
---|
| 1941 | </p> |
---|
[1864] | 1942 | <p id="rfc.section.B.p.2">The rules below are defined in <a href="#Part1" id="rfc.xref.Part1.10"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing">[Part1]</cite></a>: |
---|
[1805] | 1943 | </p> |
---|
[1864] | 1944 | <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.11"><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.1</a>> |
---|
| 1945 | <a href="#imported.abnf" class="smpl">field-name</a> = <field-name, defined in <a href="#Part1" id="rfc.xref.Part1.12"><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>> |
---|
| 1946 | <a href="#imported.abnf" class="smpl">quoted-string</a> = <quoted-string, 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>, <a href="p1-messaging.html#field.components" title="Field value components">Section 3.2.4</a>> |
---|
| 1947 | <a href="#imported.abnf" class="smpl">token</a> = <token, 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#field.components" title="Field value components">Section 3.2.4</a>> |
---|
[1805] | 1948 | |
---|
[1864] | 1949 | <a href="#imported.abnf" class="smpl">port</a> = <port, 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#uri" title="Uniform Resource Identifiers">Section 2.7</a>> |
---|
| 1950 | <a href="#imported.abnf" class="smpl">pseudonym</a> = <pseudonym, 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#header.via" title="Via">Section 5.7</a>> |
---|
| 1951 | <a href="#imported.abnf" class="smpl">uri-host</a> = <uri-host, 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#uri" title="Uniform Resource Identifiers">Section 2.7</a>> |
---|
[1805] | 1952 | </pre><p id="rfc.section.B.p.4">The rules below are defined in other parts:</p> |
---|
[1864] | 1953 | <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.8"><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 9.1</a>> |
---|
[1805] | 1954 | </pre><h1 id="rfc.section.C"><a href="#rfc.section.C">C.</a> <a id="collected.abnf" href="#collected.abnf">Collected ABNF</a></h1> |
---|
[1860] | 1955 | <div id="rfc.figure.u.16"></div> <pre class="inline"><a href="#header.age" class="smpl">Age</a> = delta-seconds |
---|
[427] | 1956 | |
---|
[1231] | 1957 | <a href="#header.cache-control" class="smpl">Cache-Control</a> = *( "," OWS ) cache-directive *( OWS "," [ OWS |
---|
[421] | 1958 | cache-directive ] ) |
---|
[428] | 1959 | |
---|
[1231] | 1960 | <a href="#header.expires" class="smpl">Expires</a> = HTTP-date |
---|
[427] | 1961 | |
---|
[1860] | 1962 | <a href="#imported.abnf" class="smpl">HTTP-date</a> = <HTTP-date, defined in [Part2], Section 9.1> |
---|
[427] | 1963 | |
---|
[1805] | 1964 | <a href="#imported.abnf" class="smpl">OWS</a> = <OWS, defined in [Part1], Section 3.2.1> |
---|
[427] | 1965 | |
---|
[1231] | 1966 | <a href="#header.pragma" class="smpl">Pragma</a> = *( "," OWS ) pragma-directive *( OWS "," [ OWS |
---|
[421] | 1967 | pragma-directive ] ) |
---|
[428] | 1968 | |
---|
[1231] | 1969 | <a href="#header.warning" class="smpl">Warning</a> = *( "," OWS ) warning-value *( OWS "," [ OWS warning-value ] |
---|
| 1970 | ) |
---|
[428] | 1971 | |
---|
[1695] | 1972 | <a href="#header.cache-control" class="smpl">cache-directive</a> = token [ "=" ( token / quoted-string ) ] |
---|
[428] | 1973 | |
---|
[1323] | 1974 | <a href="#delta-seconds" class="smpl">delta-seconds</a> = 1*DIGIT |
---|
[427] | 1975 | |
---|
| 1976 | <a href="#header.pragma" class="smpl">extension-pragma</a> = token [ "=" ( token / quoted-string ) ] |
---|
| 1977 | |
---|
[1805] | 1978 | <a href="#imported.abnf" class="smpl">field-name</a> = <field-name, defined in [Part1], Section 3.2> |
---|
[427] | 1979 | |
---|
[1845] | 1980 | <a href="#imported.abnf" class="smpl">port</a> = <port, defined in [Part1], Section 2.7> |
---|
[427] | 1981 | <a href="#header.pragma" class="smpl">pragma-directive</a> = "no-cache" / extension-pragma |
---|
[1845] | 1982 | <a href="#imported.abnf" class="smpl">pseudonym</a> = <pseudonym, defined in [Part1], Section 5.7> |
---|
[427] | 1983 | |
---|
[1805] | 1984 | <a href="#imported.abnf" class="smpl">quoted-string</a> = <quoted-string, defined in [Part1], Section 3.2.4> |
---|
[427] | 1985 | |
---|
[1805] | 1986 | <a href="#imported.abnf" class="smpl">token</a> = <token, defined in [Part1], Section 3.2.4> |
---|
[427] | 1987 | |
---|
[1845] | 1988 | <a href="#imported.abnf" class="smpl">uri-host</a> = <uri-host, defined in [Part1], Section 2.7> |
---|
[427] | 1989 | |
---|
| 1990 | <a href="#header.warning" class="smpl">warn-agent</a> = ( uri-host [ ":" port ] ) / pseudonym |
---|
| 1991 | <a href="#header.warning" class="smpl">warn-code</a> = 3DIGIT |
---|
| 1992 | <a href="#header.warning" class="smpl">warn-date</a> = DQUOTE HTTP-date DQUOTE |
---|
| 1993 | <a href="#header.warning" class="smpl">warn-text</a> = quoted-string |
---|
| 1994 | <a href="#header.warning" class="smpl">warning-value</a> = warn-code SP warn-agent SP warn-text [ SP warn-date |
---|
[421] | 1995 | ] |
---|
[1860] | 1996 | </pre> <div id="rfc.figure.u.17"></div> |
---|
| 1997 | <p>ABNF diagnostics:</p><pre class="inline">; field-name defined but not used |
---|
| 1998 | </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> |
---|
[1805] | 1999 | <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>>. |
---|
[115] | 2000 | </p> |
---|
[1805] | 2001 | <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> |
---|
| 2002 | <p id="rfc.section.D.1.p.1">Closed issues: </p> |
---|
[1666] | 2003 | <ul> |
---|
[1695] | 2004 | <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" |
---|
| 2005 | </li> |
---|
[1772] | 2006 | <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" |
---|
[1731] | 2007 | </li> |
---|
[1666] | 2008 | <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" |
---|
| 2009 | </li> |
---|
[1776] | 2010 | <li> <<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/356">http://tools.ietf.org/wg/httpbis/trac/ticket/356</a>>: "Spurious 'MAYs'" |
---|
[1666] | 2011 | </li> |
---|
[1702] | 2012 | <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" |
---|
| 2013 | </li> |
---|
[1682] | 2014 | <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" |
---|
| 2015 | </li> |
---|
[1760] | 2016 | <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" |
---|
| 2017 | </li> |
---|
[1819] | 2018 | <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'" |
---|
| 2019 | </li> |
---|
[1666] | 2020 | </ul> |
---|
[1807] | 2021 | <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> |
---|
[1814] | 2022 | <p id="rfc.section.D.2.p.1">Closed issues: </p> |
---|
| 2023 | <ul> |
---|
| 2024 | <li> <<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/375">http://tools.ietf.org/wg/httpbis/trac/ticket/375</a>>: "'Most Conservative'" |
---|
| 2025 | </li> |
---|
| 2026 | </ul> |
---|
[52] | 2027 | <h1 id="rfc.index"><a href="#rfc.index">Index</a></h1> |
---|
[1487] | 2028 | <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.C">C</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.V">V</a> <a href="#rfc.index.W">W</a> |
---|
[52] | 2029 | </p> |
---|
| 2030 | <div class="print2col"> |
---|
| 2031 | <ul class="ind"> |
---|
[1487] | 2032 | <li><a id="rfc.index.1" href="#rfc.index.1"><b>1</b></a><ul> |
---|
[1860] | 2033 | <li>110 Response is Stale (warn code) <a href="#rfc.iref.73"><b>7.5.1</b></a>, <a href="#rfc.xref.warn.110.1">9.2</a></li> |
---|
| 2034 | <li>111 Revalidation Failed (warn code) <a href="#rfc.iref.74"><b>7.5.2</b></a>, <a href="#rfc.xref.warn.111.1">9.2</a></li> |
---|
| 2035 | <li>112 Disconnected Operation (warn code) <a href="#rfc.iref.75"><b>7.5.3</b></a>, <a href="#rfc.xref.warn.112.1">9.2</a></li> |
---|
| 2036 | <li>113 Heuristic Expiration (warn code) <a href="#rfc.iref.76"><b>7.5.4</b></a>, <a href="#rfc.xref.warn.113.1">9.2</a></li> |
---|
| 2037 | <li>199 Miscellaneous Warning (warn code) <a href="#rfc.iref.77"><b>7.5.5</b></a>, <a href="#rfc.xref.warn.199.1">9.2</a></li> |
---|
[1487] | 2038 | </ul> |
---|
| 2039 | </li> |
---|
| 2040 | <li><a id="rfc.index.2" href="#rfc.index.2"><b>2</b></a><ul> |
---|
[1860] | 2041 | <li>214 Transformation Applied (warn code) <a href="#rfc.iref.78"><b>7.5.6</b></a>, <a href="#rfc.xref.warn.214.1">9.2</a></li> |
---|
| 2042 | <li>299 Miscellaneous Persistent Warning (warn code) <a href="#rfc.iref.79"><b>7.5.7</b></a>, <a href="#rfc.xref.warn.299.1">9.2</a></li> |
---|
[1487] | 2043 | </ul> |
---|
| 2044 | </li> |
---|
[1072] | 2045 | <li><a id="rfc.index.A" href="#rfc.index.A"><b>A</b></a><ul> |
---|
| 2046 | <li>age <a href="#rfc.iref.a.1">1.2</a></li> |
---|
[1751] | 2047 | <li>Age header field <a href="#rfc.xref.header.age.1">4</a>, <a href="#rfc.xref.header.age.2">4.1.3</a>, <a href="#rfc.iref.a.2"><b>7.1</b></a>, <a href="#rfc.xref.header.age.3">9.3</a></li> |
---|
[52] | 2048 | </ul> |
---|
| 2049 | </li> |
---|
[1072] | 2050 | <li><a id="rfc.index.C" href="#rfc.index.C"><b>C</b></a><ul> |
---|
[1112] | 2051 | <li>cache <a href="#rfc.iref.c.1">1.1</a>, <a href="#rfc.iref.c.2">1.2</a></li> |
---|
[1072] | 2052 | <li>Cache Directives |
---|
| 2053 | <ul> |
---|
[1751] | 2054 | <li>max-age <a href="#rfc.iref.c.9"><b>7.2.1.3</b></a>, <a href="#rfc.iref.c.20"><b>7.2.2.7</b></a></li> |
---|
| 2055 | <li>max-stale <a href="#rfc.iref.c.10"><b>7.2.1.4</b></a></li> |
---|
| 2056 | <li>min-fresh <a href="#rfc.iref.c.11"><b>7.2.1.5</b></a></li> |
---|
| 2057 | <li>must-revalidate <a href="#rfc.iref.c.18"><b>7.2.2.5</b></a></li> |
---|
| 2058 | <li>no-cache <a href="#rfc.iref.c.7"><b>7.2.1.1</b></a>, <a href="#rfc.iref.c.16"><b>7.2.2.3</b></a></li> |
---|
| 2059 | <li>no-store <a href="#rfc.iref.c.8"><b>7.2.1.2</b></a>, <a href="#rfc.iref.c.17"><b>7.2.2.4</b></a></li> |
---|
| 2060 | <li>no-transform <a href="#rfc.iref.c.12"><b>7.2.1.6</b></a>, <a href="#rfc.iref.c.22"><b>7.2.2.9</b></a></li> |
---|
| 2061 | <li>only-if-cached <a href="#rfc.iref.c.13"><b>7.2.1.7</b></a></li> |
---|
| 2062 | <li>private <a href="#rfc.iref.c.15"><b>7.2.2.2</b></a></li> |
---|
| 2063 | <li>proxy-revalidate <a href="#rfc.iref.c.19"><b>7.2.2.6</b></a></li> |
---|
| 2064 | <li>public <a href="#rfc.iref.c.14"><b>7.2.2.1</b></a></li> |
---|
| 2065 | <li>s-maxage <a href="#rfc.iref.c.21"><b>7.2.2.8</b></a></li> |
---|
[52] | 2066 | </ul> |
---|
| 2067 | </li> |
---|
[1375] | 2068 | <li>cache entry <a href="#rfc.iref.c.4">2</a></li> |
---|
| 2069 | <li>cache key <a href="#rfc.iref.c.5">2</a></li> |
---|
[1751] | 2070 | <li>Cache-Control header field <a href="#rfc.xref.header.cache-control.1">3</a>, <a href="#rfc.iref.c.6"><b>7.2</b></a>, <a href="#rfc.xref.header.cache-control.2">9.3</a></li> |
---|
[1112] | 2071 | <li>cacheable <a href="#rfc.iref.c.3">1.2</a></li> |
---|
[52] | 2072 | </ul> |
---|
| 2073 | </li> |
---|
[1072] | 2074 | <li><a id="rfc.index.E" href="#rfc.index.E"><b>E</b></a><ul> |
---|
[1751] | 2075 | <li>Expires header field <a href="#rfc.xref.header.expires.1">3</a>, <a href="#rfc.xref.header.expires.2">4.1</a>, <a href="#rfc.xref.header.expires.3">4.1.1</a>, <a href="#rfc.iref.e.2"><b>7.3</b></a>, <a href="#rfc.xref.header.expires.4">9.3</a></li> |
---|
[1072] | 2076 | <li>explicit expiration time <a href="#rfc.iref.e.1">1.2</a></li> |
---|
[52] | 2077 | </ul> |
---|
| 2078 | </li> |
---|
[1072] | 2079 | <li><a id="rfc.index.F" href="#rfc.index.F"><b>F</b></a><ul> |
---|
| 2080 | <li>first-hand <a href="#rfc.iref.f.1">1.2</a></li> |
---|
| 2081 | <li>fresh <a href="#rfc.iref.f.3">1.2</a></li> |
---|
| 2082 | <li>freshness lifetime <a href="#rfc.iref.f.2">1.2</a></li> |
---|
[52] | 2083 | </ul> |
---|
| 2084 | </li> |
---|
[1072] | 2085 | <li><a id="rfc.index.G" href="#rfc.index.G"><b>G</b></a><ul> |
---|
| 2086 | <li><tt>Grammar</tt> |
---|
| 2087 | <ul> |
---|
[1751] | 2088 | <li><tt>Age</tt> <a href="#rfc.iref.g.2"><b>7.1</b></a></li> |
---|
| 2089 | <li><tt>Cache-Control</tt> <a href="#rfc.iref.g.3"><b>7.2</b></a></li> |
---|
| 2090 | <li><tt>cache-directive</tt> <a href="#rfc.iref.g.4"><b>7.2</b></a></li> |
---|
[1805] | 2091 | <li><tt>delta-seconds</tt> <a href="#rfc.iref.g.1"><b>1.4.1</b></a></li> |
---|
[1751] | 2092 | <li><tt>Expires</tt> <a href="#rfc.iref.g.5"><b>7.3</b></a></li> |
---|
| 2093 | <li><tt>extension-pragma</tt> <a href="#rfc.iref.g.8"><b>7.4</b></a></li> |
---|
| 2094 | <li><tt>Pragma</tt> <a href="#rfc.iref.g.6"><b>7.4</b></a></li> |
---|
| 2095 | <li><tt>pragma-directive</tt> <a href="#rfc.iref.g.7"><b>7.4</b></a></li> |
---|
[1860] | 2096 | <li><tt>warn-agent</tt> <a href="#rfc.iref.g.12"><b>7.5</b></a></li> |
---|
| 2097 | <li><tt>warn-code</tt> <a href="#rfc.iref.g.11"><b>7.5</b></a></li> |
---|
| 2098 | <li><tt>warn-date</tt> <a href="#rfc.iref.g.14"><b>7.5</b></a></li> |
---|
| 2099 | <li><tt>warn-text</tt> <a href="#rfc.iref.g.13"><b>7.5</b></a></li> |
---|
| 2100 | <li><tt>Warning</tt> <a href="#rfc.iref.g.9"><b>7.5</b></a></li> |
---|
| 2101 | <li><tt>warning-value</tt> <a href="#rfc.iref.g.10"><b>7.5</b></a></li> |
---|
[52] | 2102 | </ul> |
---|
| 2103 | </li> |
---|
| 2104 | </ul> |
---|
| 2105 | </li> |
---|
[1072] | 2106 | <li><a id="rfc.index.H" href="#rfc.index.H"><b>H</b></a><ul> |
---|
[1120] | 2107 | <li>Header Fields |
---|
[1072] | 2108 | <ul> |
---|
[1751] | 2109 | <li>Age <a href="#rfc.xref.header.age.1">4</a>, <a href="#rfc.xref.header.age.2">4.1.3</a>, <a href="#rfc.iref.h.2"><b>7.1</b></a>, <a href="#rfc.xref.header.age.3">9.3</a></li> |
---|
| 2110 | <li>Cache-Control <a href="#rfc.xref.header.cache-control.1">3</a>, <a href="#rfc.iref.h.3"><b>7.2</b></a>, <a href="#rfc.xref.header.cache-control.2">9.3</a></li> |
---|
| 2111 | <li>Expires <a href="#rfc.xref.header.expires.1">3</a>, <a href="#rfc.xref.header.expires.2">4.1</a>, <a href="#rfc.xref.header.expires.3">4.1.1</a>, <a href="#rfc.iref.h.4"><b>7.3</b></a>, <a href="#rfc.xref.header.expires.4">9.3</a></li> |
---|
| 2112 | <li>Pragma <a href="#rfc.xref.header.pragma.1">4</a>, <a href="#rfc.xref.header.pragma.2">7.2</a>, <a href="#rfc.iref.h.5"><b>7.4</b></a>, <a href="#rfc.xref.header.pragma.3">9.3</a></li> |
---|
[1860] | 2113 | <li>Warning <a href="#rfc.xref.header.warning.1">4.1.4</a>, <a href="#rfc.xref.header.warning.2">4.2.1</a>, <a href="#rfc.xref.header.warning.3">4.4</a>, <a href="#rfc.xref.header.warning.4">5</a>, <a href="#rfc.iref.h.6"><b>7.5</b></a>, <a href="#rfc.xref.header.warning.5">9.3</a>, <a href="#rfc.xref.header.warning.6">A</a></li> |
---|
[52] | 2114 | </ul> |
---|
| 2115 | </li> |
---|
[1072] | 2116 | <li>heuristic expiration time <a href="#rfc.iref.h.1">1.2</a></li> |
---|
[52] | 2117 | </ul> |
---|
| 2118 | </li> |
---|
[1072] | 2119 | <li><a id="rfc.index.M" href="#rfc.index.M"><b>M</b></a><ul> |
---|
| 2120 | <li>max-age |
---|
| 2121 | <ul> |
---|
[1751] | 2122 | <li>Cache Directive <a href="#rfc.iref.m.1"><b>7.2.1.3</b></a>, <a href="#rfc.iref.m.5"><b>7.2.2.7</b></a></li> |
---|
[52] | 2123 | </ul> |
---|
| 2124 | </li> |
---|
[1072] | 2125 | <li>max-stale |
---|
| 2126 | <ul> |
---|
[1751] | 2127 | <li>Cache Directive <a href="#rfc.iref.m.2"><b>7.2.1.4</b></a></li> |
---|
[52] | 2128 | </ul> |
---|
| 2129 | </li> |
---|
[1072] | 2130 | <li>min-fresh |
---|
| 2131 | <ul> |
---|
[1751] | 2132 | <li>Cache Directive <a href="#rfc.iref.m.3"><b>7.2.1.5</b></a></li> |
---|
[52] | 2133 | </ul> |
---|
| 2134 | </li> |
---|
[1072] | 2135 | <li>must-revalidate |
---|
| 2136 | <ul> |
---|
[1751] | 2137 | <li>Cache Directive <a href="#rfc.iref.m.4"><b>7.2.2.5</b></a></li> |
---|
[52] | 2138 | </ul> |
---|
| 2139 | </li> |
---|
| 2140 | </ul> |
---|
| 2141 | </li> |
---|
[1072] | 2142 | <li><a id="rfc.index.N" href="#rfc.index.N"><b>N</b></a><ul> |
---|
| 2143 | <li>no-cache |
---|
| 2144 | <ul> |
---|
[1751] | 2145 | <li>Cache Directive <a href="#rfc.iref.n.1"><b>7.2.1.1</b></a>, <a href="#rfc.iref.n.4"><b>7.2.2.3</b></a></li> |
---|
[52] | 2146 | </ul> |
---|
| 2147 | </li> |
---|
[1072] | 2148 | <li>no-store |
---|
| 2149 | <ul> |
---|
[1751] | 2150 | <li>Cache Directive <a href="#rfc.iref.n.2"><b>7.2.1.2</b></a>, <a href="#rfc.iref.n.5"><b>7.2.2.4</b></a></li> |
---|
[52] | 2151 | </ul> |
---|
| 2152 | </li> |
---|
[1072] | 2153 | <li>no-transform |
---|
| 2154 | <ul> |
---|
[1751] | 2155 | <li>Cache Directive <a href="#rfc.iref.n.3"><b>7.2.1.6</b></a>, <a href="#rfc.iref.n.6"><b>7.2.2.9</b></a></li> |
---|
[52] | 2156 | </ul> |
---|
| 2157 | </li> |
---|
| 2158 | </ul> |
---|
| 2159 | </li> |
---|
[1072] | 2160 | <li><a id="rfc.index.O" href="#rfc.index.O"><b>O</b></a><ul> |
---|
| 2161 | <li>only-if-cached |
---|
| 2162 | <ul> |
---|
[1751] | 2163 | <li>Cache Directive <a href="#rfc.iref.o.1"><b>7.2.1.7</b></a></li> |
---|
[52] | 2164 | </ul> |
---|
| 2165 | </li> |
---|
| 2166 | </ul> |
---|
| 2167 | </li> |
---|
[1072] | 2168 | <li><a id="rfc.index.P" href="#rfc.index.P"><b>P</b></a><ul> |
---|
[1805] | 2169 | <li><em>Part1</em> <a href="#rfc.xref.Part1.1">1.3</a>, <a href="#rfc.xref.Part1.2">1.4</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.3</a>, <a href="#rfc.xref.Part1.6">6</a>, <a href="#rfc.xref.Part1.7">6</a>, <a href="#rfc.xref.Part1.8">6</a>, <a href="#rfc.xref.Part1.9">11</a>, <a href="#Part1"><b>12.1</b></a>, <a href="#rfc.xref.Part1.10">B</a>, <a href="#rfc.xref.Part1.11">B</a>, <a href="#rfc.xref.Part1.12">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><ul> |
---|
[1452] | 2170 | <li><em>Section 1.2</em> <a href="#rfc.xref.Part1.2">1.4</a></li> |
---|
[1875] | 2171 | <li><em>Section 2.5</em> <a href="#rfc.xref.Part1.1">1.3</a></li> |
---|
[1845] | 2172 | <li><em>Section 2.7</em> <a href="#rfc.xref.Part1.15">B</a>, <a href="#rfc.xref.Part1.17">B</a></li> |
---|
[1805] | 2173 | <li><em>Section 3.2</em> <a href="#rfc.xref.Part1.5">4.3</a>, <a href="#rfc.xref.Part1.12">B</a></li> |
---|
| 2174 | <li><em>Section 3.2.1</em> <a href="#rfc.xref.Part1.11">B</a></li> |
---|
| 2175 | <li><em>Section 3.2.4</em> <a href="#rfc.xref.Part1.13">B</a>, <a href="#rfc.xref.Part1.14">B</a></li> |
---|
| 2176 | <li><em>Section 5.5</em> <a href="#rfc.xref.Part1.4">4</a>, <a href="#rfc.xref.Part1.6">6</a>, <a href="#rfc.xref.Part1.7">6</a>, <a href="#rfc.xref.Part1.8">6</a></li> |
---|
[1845] | 2177 | <li><em>Section 5.7</em> <a href="#rfc.xref.Part1.16">B</a></li> |
---|
[1805] | 2178 | <li><em>Section 9</em> <a href="#rfc.xref.Part1.9">11</a></li> |
---|
[52] | 2179 | </ul> |
---|
| 2180 | </li> |
---|
[1860] | 2181 | <li><em>Part2</em> <a href="#rfc.xref.Part2.1">2</a>, <a href="#rfc.xref.Part2.2">4</a>, <a href="#rfc.xref.Part2.3">4.1.2</a>, <a href="#rfc.xref.Part2.4">4.1.3</a>, <a href="#rfc.xref.Part2.5">4.3</a>, <a href="#rfc.xref.Part2.6">6</a>, <a href="#rfc.xref.Part2.7">7.3</a>, <a href="#Part2"><b>12.1</b></a>, <a href="#rfc.xref.Part2.8">B</a><ul> |
---|
| 2182 | <li><em>Section 5.2.1</em> <a href="#rfc.xref.Part2.2">4</a>, <a href="#rfc.xref.Part2.6">6</a></li> |
---|
[1858] | 2183 | <li><em>Section 7</em> <a href="#rfc.xref.Part2.3">4.1.2</a></li> |
---|
| 2184 | <li><em>Section 8.2.1</em> <a href="#rfc.xref.Part2.4">4.1.3</a></li> |
---|
[1860] | 2185 | <li><em>Section 8.2.2</em> <a href="#rfc.xref.Part2.5">4.3</a></li> |
---|
| 2186 | <li><em>Section 9.1</em> <a href="#rfc.xref.Part2.7">7.3</a>, <a href="#rfc.xref.Part2.8">B</a></li> |
---|
[52] | 2187 | </ul> |
---|
| 2188 | </li> |
---|
[1751] | 2189 | <li><em>Part4</em> <a href="#rfc.xref.Part4.1">1.2</a>, <a href="#rfc.xref.Part4.2">1.2</a>, <a href="#rfc.xref.Part4.3">1.2</a>, <a href="#rfc.xref.Part4.4">4.1.2</a>, <a href="#rfc.xref.Part4.5">4.2</a>, <a href="#Part4"><b>12.1</b></a><ul> |
---|
[1391] | 2190 | <li><em>Section 2.1</em> <a href="#rfc.xref.Part4.1">1.2</a></li> |
---|
[1751] | 2191 | <li><em>Section 2.2</em> <a href="#rfc.xref.Part4.4">4.1.2</a></li> |
---|
[1391] | 2192 | <li><em>Section 2.2.2</em> <a href="#rfc.xref.Part4.3">1.2</a></li> |
---|
| 2193 | <li><em>Section 2.3</em> <a href="#rfc.xref.Part4.2">1.2</a></li> |
---|
[52] | 2194 | </ul> |
---|
| 2195 | </li> |
---|
[1751] | 2196 | <li><em>Part5</em> <a href="#rfc.xref.Part5.1">3.1</a>, <a href="#rfc.xref.Part5.2">4.4</a>, <a href="#rfc.xref.Part5.3">4.4</a>, <a href="#Part5"><b>12.1</b></a><ul> |
---|
| 2197 | <li><em>Section 4.2</em> <a href="#rfc.xref.Part5.3">4.4</a></li> |
---|
[52] | 2198 | </ul> |
---|
| 2199 | </li> |
---|
[1751] | 2200 | <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>12.1</b></a><ul> |
---|
| 2201 | <li><em>Section 4.1</em> <a href="#rfc.xref.Part7.1">3</a>, <a href="#rfc.xref.Part7.2">3.2</a></li> |
---|
[538] | 2202 | </ul> |
---|
| 2203 | </li> |
---|
[1751] | 2204 | <li>Pragma header field <a href="#rfc.xref.header.pragma.1">4</a>, <a href="#rfc.xref.header.pragma.2">7.2</a>, <a href="#rfc.iref.p.5"><b>7.4</b></a>, <a href="#rfc.xref.header.pragma.3">9.3</a></li> |
---|
[1072] | 2205 | <li>private |
---|
| 2206 | <ul> |
---|
[1751] | 2207 | <li>Cache Directive <a href="#rfc.iref.p.3"><b>7.2.2.2</b></a></li> |
---|
[52] | 2208 | </ul> |
---|
| 2209 | </li> |
---|
[1112] | 2210 | <li>private cache <a href="#rfc.iref.p.1">1.2</a></li> |
---|
[1072] | 2211 | <li>proxy-revalidate |
---|
| 2212 | <ul> |
---|
[1751] | 2213 | <li>Cache Directive <a href="#rfc.iref.p.4"><b>7.2.2.6</b></a></li> |
---|
[52] | 2214 | </ul> |
---|
| 2215 | </li> |
---|
[1072] | 2216 | <li>public |
---|
| 2217 | <ul> |
---|
[1751] | 2218 | <li>Cache Directive <a href="#rfc.iref.p.2"><b>7.2.2.1</b></a></li> |
---|
[52] | 2219 | </ul> |
---|
| 2220 | </li> |
---|
| 2221 | </ul> |
---|
| 2222 | </li> |
---|
[1072] | 2223 | <li><a id="rfc.index.R" href="#rfc.index.R"><b>R</b></a><ul> |
---|
[1751] | 2224 | <li><em>RFC1305</em> <a href="#rfc.xref.RFC1305.1">4</a>, <a href="#rfc.xref.RFC1305.2">4.1.3</a>, <a href="#RFC1305"><b>12.2</b></a></li> |
---|
| 2225 | <li><em>RFC2119</em> <a href="#rfc.xref.RFC2119.1">1.3</a>, <a href="#RFC2119"><b>12.1</b></a></li> |
---|
| 2226 | <li><em>RFC2616</em> <a href="#rfc.xref.RFC2616.1">4.1.2</a>, <a href="#RFC2616"><b>12.2</b></a><ul> |
---|
| 2227 | <li><em>Section 13.9</em> <a href="#rfc.xref.RFC2616.1">4.1.2</a></li> |
---|
[828] | 2228 | </ul> |
---|
| 2229 | </li> |
---|
[1751] | 2230 | <li><em>RFC3864</em> <a href="#rfc.xref.RFC3864.1">9.3</a>, <a href="#RFC3864"><b>12.2</b></a></li> |
---|
[1860] | 2231 | <li><em>RFC5226</em> <a href="#rfc.xref.RFC5226.1">7.2.3</a>, <a href="#rfc.xref.RFC5226.2">7.5.8</a>, <a href="#RFC5226"><b>12.2</b></a><ul> |
---|
| 2232 | <li><em>Section 4.1</em> <a href="#rfc.xref.RFC5226.1">7.2.3</a>, <a href="#rfc.xref.RFC5226.2">7.5.8</a></li> |
---|
[817] | 2233 | </ul> |
---|
| 2234 | </li> |
---|
[1805] | 2235 | <li><em>RFC5234</em> <a href="#rfc.xref.RFC5234.1">1.4</a>, <a href="#RFC5234"><b>12.1</b></a>, <a href="#rfc.xref.RFC5234.2">B</a><ul> |
---|
| 2236 | <li><em>Appendix B.1</em> <a href="#rfc.xref.RFC5234.2">B</a></li> |
---|
[425] | 2237 | </ul> |
---|
| 2238 | </li> |
---|
[1751] | 2239 | <li><em>RFC5861</em> <a href="#rfc.xref.RFC5861.1">9.1</a>, <a href="#rfc.xref.RFC5861.2">9.1</a>, <a href="#RFC5861"><b>12.2</b></a><ul> |
---|
| 2240 | <li><em>Section 3</em> <a href="#rfc.xref.RFC5861.2">9.1</a></li> |
---|
| 2241 | <li><em>Section 4</em> <a href="#rfc.xref.RFC5861.1">9.1</a></li> |
---|
[825] | 2242 | </ul> |
---|
| 2243 | </li> |
---|
[1865] | 2244 | <li><em>RFC6265</em> <a href="#rfc.xref.RFC6265.1">10</a>, <a href="#RFC6265"><b>12.2</b></a></li> |
---|
[52] | 2245 | </ul> |
---|
| 2246 | </li> |
---|
[1072] | 2247 | <li><a id="rfc.index.S" href="#rfc.index.S"><b>S</b></a><ul> |
---|
| 2248 | <li>s-maxage |
---|
| 2249 | <ul> |
---|
[1751] | 2250 | <li>Cache Directive <a href="#rfc.iref.s.4"><b>7.2.2.8</b></a></li> |
---|
[52] | 2251 | </ul> |
---|
| 2252 | </li> |
---|
[1112] | 2253 | <li>shared cache <a href="#rfc.iref.s.1">1.2</a></li> |
---|
| 2254 | <li>stale <a href="#rfc.iref.s.2">1.2</a></li> |
---|
[1375] | 2255 | <li>strong validator <a href="#rfc.iref.s.3">1.2</a></li> |
---|
[52] | 2256 | </ul> |
---|
| 2257 | </li> |
---|
[1072] | 2258 | <li><a id="rfc.index.V" href="#rfc.index.V"><b>V</b></a><ul> |
---|
[1376] | 2259 | <li>validator <a href="#rfc.iref.v.1">1.2</a><ul> |
---|
| 2260 | <li>strong <a href="#rfc.iref.v.2">1.2</a></li> |
---|
| 2261 | </ul> |
---|
| 2262 | </li> |
---|
[52] | 2263 | </ul> |
---|
| 2264 | </li> |
---|
[1072] | 2265 | <li><a id="rfc.index.W" href="#rfc.index.W"><b>W</b></a><ul> |
---|
[1487] | 2266 | <li>Warn Codes |
---|
| 2267 | <ul> |
---|
[1860] | 2268 | <li>110 Response is Stale <a href="#rfc.iref.w.2"><b>7.5.1</b></a>, <a href="#rfc.xref.warn.110.1">9.2</a></li> |
---|
| 2269 | <li>111 Revalidation Failed <a href="#rfc.iref.w.3"><b>7.5.2</b></a>, <a href="#rfc.xref.warn.111.1">9.2</a></li> |
---|
| 2270 | <li>112 Disconnected Operation <a href="#rfc.iref.w.4"><b>7.5.3</b></a>, <a href="#rfc.xref.warn.112.1">9.2</a></li> |
---|
| 2271 | <li>113 Heuristic Expiration <a href="#rfc.iref.w.5"><b>7.5.4</b></a>, <a href="#rfc.xref.warn.113.1">9.2</a></li> |
---|
| 2272 | <li>199 Miscellaneous Warning <a href="#rfc.iref.w.6"><b>7.5.5</b></a>, <a href="#rfc.xref.warn.199.1">9.2</a></li> |
---|
| 2273 | <li>214 Transformation Applied <a href="#rfc.iref.w.7"><b>7.5.6</b></a>, <a href="#rfc.xref.warn.214.1">9.2</a></li> |
---|
| 2274 | <li>299 Miscellaneous Persistent Warning <a href="#rfc.iref.w.8"><b>7.5.7</b></a>, <a href="#rfc.xref.warn.299.1">9.2</a></li> |
---|
[1487] | 2275 | </ul> |
---|
| 2276 | </li> |
---|
[1860] | 2277 | <li>Warning header field <a href="#rfc.xref.header.warning.1">4.1.4</a>, <a href="#rfc.xref.header.warning.2">4.2.1</a>, <a href="#rfc.xref.header.warning.3">4.4</a>, <a href="#rfc.xref.header.warning.4">5</a>, <a href="#rfc.iref.w.1"><b>7.5</b></a>, <a href="#rfc.xref.header.warning.5">9.3</a>, <a href="#rfc.xref.header.warning.6">A</a></li> |
---|
[52] | 2278 | </ul> |
---|
| 2279 | </li> |
---|
| 2280 | </ul> |
---|
| 2281 | </div> |
---|
| 2282 | </body> |
---|
| 2283 | </html> |
---|