[52] | 1 | <!DOCTYPE html |
---|
| 2 | PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
---|
| 3 | <html lang="en"> |
---|
[1099] | 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"> |
---|
| 6 | <title>HTTP/1.1, part 4: Conditional Requests</title><style type="text/css" title="Xml2Rfc (sans serif)"> |
---|
| 7 | a { |
---|
| 8 | text-decoration: none; |
---|
| 9 | } |
---|
| 10 | a.smpl { |
---|
| 11 | color: black; |
---|
| 12 | } |
---|
| 13 | a:hover { |
---|
| 14 | text-decoration: underline; |
---|
| 15 | } |
---|
| 16 | a:active { |
---|
| 17 | text-decoration: underline; |
---|
| 18 | } |
---|
| 19 | address { |
---|
| 20 | margin-top: 1em; |
---|
| 21 | margin-left: 2em; |
---|
| 22 | font-style: normal; |
---|
| 23 | } |
---|
| 24 | body { |
---|
| 25 | color: black; |
---|
| 26 | font-family: verdana, helvetica, arial, sans-serif; |
---|
| 27 | font-size: 10pt; |
---|
| 28 | } |
---|
| 29 | cite { |
---|
| 30 | font-style: normal; |
---|
| 31 | } |
---|
| 32 | dd { |
---|
| 33 | margin-right: 2em; |
---|
| 34 | } |
---|
| 35 | dl { |
---|
| 36 | margin-left: 2em; |
---|
| 37 | } |
---|
| 38 | |
---|
[1099] | 39 | ul.empty { |
---|
| 40 | list-style-type: none; |
---|
| 41 | } |
---|
| 42 | ul.empty li { |
---|
[52] | 43 | margin-top: .5em; |
---|
| 44 | } |
---|
| 45 | dl p { |
---|
| 46 | margin-left: 0em; |
---|
| 47 | } |
---|
| 48 | dt { |
---|
| 49 | margin-top: .5em; |
---|
| 50 | } |
---|
| 51 | h1 { |
---|
| 52 | font-size: 14pt; |
---|
| 53 | line-height: 21pt; |
---|
| 54 | page-break-after: avoid; |
---|
| 55 | } |
---|
| 56 | h1.np { |
---|
| 57 | page-break-before: always; |
---|
| 58 | } |
---|
| 59 | h1 a { |
---|
| 60 | color: #333333; |
---|
| 61 | } |
---|
| 62 | h2 { |
---|
| 63 | font-size: 12pt; |
---|
| 64 | line-height: 15pt; |
---|
| 65 | page-break-after: avoid; |
---|
| 66 | } |
---|
[1099] | 67 | h3, h4, h5, h6 { |
---|
[52] | 68 | font-size: 10pt; |
---|
| 69 | page-break-after: avoid; |
---|
| 70 | } |
---|
[1099] | 71 | h2 a, h3 a, h4 a, h5 a, h6 a { |
---|
[52] | 72 | color: black; |
---|
| 73 | } |
---|
| 74 | img { |
---|
| 75 | margin-left: 3em; |
---|
| 76 | } |
---|
| 77 | li { |
---|
| 78 | margin-left: 2em; |
---|
| 79 | margin-right: 2em; |
---|
| 80 | } |
---|
| 81 | ol { |
---|
| 82 | margin-left: 2em; |
---|
| 83 | margin-right: 2em; |
---|
| 84 | } |
---|
| 85 | ol p { |
---|
| 86 | margin-left: 0em; |
---|
| 87 | } |
---|
| 88 | p { |
---|
| 89 | margin-left: 2em; |
---|
| 90 | margin-right: 2em; |
---|
| 91 | } |
---|
| 92 | pre { |
---|
| 93 | margin-left: 3em; |
---|
| 94 | background-color: lightyellow; |
---|
| 95 | padding: .25em; |
---|
| 96 | } |
---|
| 97 | pre.text2 { |
---|
| 98 | border-style: dotted; |
---|
| 99 | border-width: 1px; |
---|
| 100 | background-color: #f0f0f0; |
---|
| 101 | width: 69em; |
---|
| 102 | } |
---|
| 103 | pre.inline { |
---|
| 104 | background-color: white; |
---|
| 105 | padding: 0em; |
---|
| 106 | } |
---|
| 107 | pre.text { |
---|
| 108 | border-style: dotted; |
---|
| 109 | border-width: 1px; |
---|
| 110 | background-color: #f8f8f8; |
---|
| 111 | width: 69em; |
---|
| 112 | } |
---|
| 113 | pre.drawing { |
---|
| 114 | border-style: solid; |
---|
| 115 | border-width: 1px; |
---|
| 116 | background-color: #f8f8f8; |
---|
| 117 | padding: 2em; |
---|
| 118 | } |
---|
| 119 | table { |
---|
| 120 | margin-left: 2em; |
---|
| 121 | } |
---|
[253] | 122 | table.tt { |
---|
| 123 | vertical-align: top; |
---|
| 124 | } |
---|
| 125 | table.full { |
---|
| 126 | border-style: outset; |
---|
| 127 | border-width: 1px; |
---|
| 128 | } |
---|
| 129 | table.headers { |
---|
| 130 | border-style: outset; |
---|
| 131 | border-width: 1px; |
---|
| 132 | } |
---|
| 133 | table.tt td { |
---|
| 134 | vertical-align: top; |
---|
| 135 | } |
---|
| 136 | table.full td { |
---|
| 137 | border-style: inset; |
---|
| 138 | border-width: 1px; |
---|
| 139 | } |
---|
| 140 | table.tt th { |
---|
| 141 | vertical-align: top; |
---|
| 142 | } |
---|
| 143 | table.full th { |
---|
| 144 | border-style: inset; |
---|
| 145 | border-width: 1px; |
---|
| 146 | } |
---|
| 147 | table.headers th { |
---|
| 148 | border-style: none none inset none; |
---|
| 149 | border-width: 1px; |
---|
| 150 | } |
---|
[1099] | 151 | table.left { |
---|
| 152 | margin-right: auto; |
---|
| 153 | } |
---|
| 154 | table.right { |
---|
| 155 | margin-left: auto; |
---|
| 156 | } |
---|
| 157 | table.center { |
---|
| 158 | margin-left: auto; |
---|
| 159 | margin-right: auto; |
---|
| 160 | } |
---|
| 161 | caption { |
---|
| 162 | caption-side: bottom; |
---|
| 163 | font-weight: bold; |
---|
| 164 | font-size: 9pt; |
---|
| 165 | margin-top: .5em; |
---|
| 166 | } |
---|
| 167 | |
---|
[52] | 168 | table.header { |
---|
[1099] | 169 | border-spacing: 1px; |
---|
[52] | 170 | width: 95%; |
---|
| 171 | font-size: 10pt; |
---|
| 172 | color: white; |
---|
| 173 | } |
---|
| 174 | td.top { |
---|
| 175 | vertical-align: top; |
---|
| 176 | } |
---|
| 177 | td.topnowrap { |
---|
| 178 | vertical-align: top; |
---|
| 179 | white-space: nowrap; |
---|
| 180 | } |
---|
[1099] | 181 | table.header td { |
---|
[52] | 182 | background-color: gray; |
---|
| 183 | width: 50%; |
---|
| 184 | } |
---|
[1099] | 185 | table.header a { |
---|
[227] | 186 | color: white; |
---|
| 187 | } |
---|
[52] | 188 | td.reference { |
---|
| 189 | vertical-align: top; |
---|
| 190 | white-space: nowrap; |
---|
| 191 | padding-right: 1em; |
---|
| 192 | } |
---|
| 193 | thead { |
---|
| 194 | display:table-header-group; |
---|
| 195 | } |
---|
[1099] | 196 | ul.toc, ul.toc ul { |
---|
[52] | 197 | list-style: none; |
---|
| 198 | margin-left: 1.5em; |
---|
| 199 | margin-right: 0em; |
---|
| 200 | padding-left: 0em; |
---|
| 201 | } |
---|
[1099] | 202 | ul.toc li { |
---|
[52] | 203 | line-height: 150%; |
---|
| 204 | font-weight: bold; |
---|
| 205 | font-size: 10pt; |
---|
| 206 | margin-left: 0em; |
---|
| 207 | margin-right: 0em; |
---|
| 208 | } |
---|
[1099] | 209 | ul.toc li li { |
---|
[52] | 210 | line-height: normal; |
---|
| 211 | font-weight: normal; |
---|
| 212 | font-size: 9pt; |
---|
| 213 | margin-left: 0em; |
---|
| 214 | margin-right: 0em; |
---|
| 215 | } |
---|
[1099] | 216 | li.excluded { |
---|
[52] | 217 | font-size: 0pt; |
---|
| 218 | } |
---|
| 219 | ul p { |
---|
| 220 | margin-left: 0em; |
---|
| 221 | } |
---|
[1099] | 222 | ul.ind, ul.ind ul { |
---|
[52] | 223 | list-style: none; |
---|
| 224 | margin-left: 1.5em; |
---|
| 225 | margin-right: 0em; |
---|
| 226 | padding-left: 0em; |
---|
[1099] | 227 | page-break-before: avoid; |
---|
[52] | 228 | } |
---|
[1099] | 229 | ul.ind li { |
---|
[52] | 230 | font-weight: bold; |
---|
| 231 | line-height: 200%; |
---|
| 232 | margin-left: 0em; |
---|
| 233 | margin-right: 0em; |
---|
| 234 | } |
---|
[1099] | 235 | ul.ind li li { |
---|
[52] | 236 | font-weight: normal; |
---|
| 237 | line-height: 150%; |
---|
| 238 | margin-left: 0em; |
---|
| 239 | margin-right: 0em; |
---|
| 240 | } |
---|
[1099] | 241 | .avoidbreak { |
---|
| 242 | page-break-inside: avoid; |
---|
| 243 | } |
---|
[52] | 244 | .bcp14 { |
---|
| 245 | font-style: normal; |
---|
| 246 | text-transform: lowercase; |
---|
| 247 | font-variant: small-caps; |
---|
| 248 | } |
---|
| 249 | .comment { |
---|
| 250 | background-color: yellow; |
---|
| 251 | } |
---|
| 252 | .center { |
---|
| 253 | text-align: center; |
---|
| 254 | } |
---|
| 255 | .error { |
---|
| 256 | color: red; |
---|
| 257 | font-style: italic; |
---|
| 258 | font-weight: bold; |
---|
| 259 | } |
---|
| 260 | .figure { |
---|
| 261 | font-weight: bold; |
---|
| 262 | text-align: center; |
---|
| 263 | font-size: 9pt; |
---|
| 264 | } |
---|
| 265 | .filename { |
---|
| 266 | color: #333333; |
---|
| 267 | font-weight: bold; |
---|
| 268 | font-size: 12pt; |
---|
| 269 | line-height: 21pt; |
---|
| 270 | text-align: center; |
---|
| 271 | } |
---|
| 272 | .fn { |
---|
| 273 | font-weight: bold; |
---|
| 274 | } |
---|
| 275 | .hidden { |
---|
| 276 | display: none; |
---|
| 277 | } |
---|
| 278 | .left { |
---|
| 279 | text-align: left; |
---|
| 280 | } |
---|
| 281 | .right { |
---|
| 282 | text-align: right; |
---|
| 283 | } |
---|
| 284 | .title { |
---|
| 285 | color: #990000; |
---|
| 286 | font-size: 18pt; |
---|
| 287 | line-height: 18pt; |
---|
| 288 | font-weight: bold; |
---|
| 289 | text-align: center; |
---|
| 290 | margin-top: 36pt; |
---|
| 291 | } |
---|
| 292 | .vcardline { |
---|
| 293 | display: block; |
---|
| 294 | } |
---|
| 295 | .warning { |
---|
| 296 | font-size: 14pt; |
---|
| 297 | background-color: yellow; |
---|
| 298 | } |
---|
| 299 | |
---|
| 300 | |
---|
| 301 | @media print { |
---|
| 302 | .noprint { |
---|
| 303 | display: none; |
---|
| 304 | } |
---|
| 305 | |
---|
| 306 | a { |
---|
| 307 | color: black; |
---|
| 308 | text-decoration: none; |
---|
| 309 | } |
---|
| 310 | |
---|
| 311 | table.header { |
---|
| 312 | width: 90%; |
---|
| 313 | } |
---|
| 314 | |
---|
| 315 | td.header { |
---|
| 316 | width: 50%; |
---|
| 317 | color: black; |
---|
| 318 | background-color: white; |
---|
| 319 | vertical-align: top; |
---|
| 320 | font-size: 12pt; |
---|
| 321 | } |
---|
| 322 | |
---|
| 323 | ul.toc a::after { |
---|
| 324 | content: leader('.') target-counter(attr(href), page); |
---|
| 325 | } |
---|
| 326 | |
---|
[1099] | 327 | ul.ind li li a { |
---|
[52] | 328 | content: target-counter(attr(href), page); |
---|
| 329 | } |
---|
| 330 | |
---|
| 331 | .print2col { |
---|
| 332 | column-count: 2; |
---|
| 333 | -moz-column-count: 2; |
---|
| 334 | column-fill: auto; |
---|
| 335 | } |
---|
| 336 | } |
---|
| 337 | |
---|
| 338 | @page { |
---|
| 339 | @top-left { |
---|
[1099] | 340 | content: "Internet-Draft"; |
---|
[52] | 341 | } |
---|
| 342 | @top-right { |
---|
[301] | 343 | content: "August 2008"; |
---|
[52] | 344 | } |
---|
| 345 | @top-center { |
---|
[120] | 346 | content: "HTTP/1.1, Part 4"; |
---|
[52] | 347 | } |
---|
| 348 | @bottom-left { |
---|
| 349 | content: "Fielding, et al."; |
---|
| 350 | } |
---|
| 351 | @bottom-center { |
---|
| 352 | content: "Standards Track"; |
---|
| 353 | } |
---|
| 354 | @bottom-right { |
---|
| 355 | content: "[Page " counter(page) "]"; |
---|
| 356 | } |
---|
| 357 | } |
---|
| 358 | |
---|
| 359 | @page:first { |
---|
| 360 | @top-left { |
---|
| 361 | content: normal; |
---|
| 362 | } |
---|
| 363 | @top-right { |
---|
| 364 | content: normal; |
---|
| 365 | } |
---|
| 366 | @top-center { |
---|
| 367 | content: normal; |
---|
| 368 | } |
---|
| 369 | } |
---|
| 370 | </style><link rel="Contents" href="#rfc.toc"> |
---|
| 371 | <link rel="Author" href="#rfc.authors"> |
---|
| 372 | <link rel="Copyright" href="#rfc.copyright"> |
---|
| 373 | <link rel="Index" href="#rfc.index"> |
---|
| 374 | <link rel="Chapter" title="1 Introduction" href="#rfc.section.1"> |
---|
[205] | 375 | <link rel="Chapter" title="2 Notational Conventions and Generic Grammar" href="#rfc.section.2"> |
---|
| 376 | <link rel="Chapter" title="3 Entity Tags" href="#rfc.section.3"> |
---|
| 377 | <link rel="Chapter" title="4 Status Code Definitions" href="#rfc.section.4"> |
---|
| 378 | <link rel="Chapter" title="5 Weak and Strong Validators" href="#rfc.section.5"> |
---|
| 379 | <link rel="Chapter" title="6 Rules for When to Use Entity Tags and Last-Modified Dates" href="#rfc.section.6"> |
---|
| 380 | <link rel="Chapter" title="7 Header Field Definitions" href="#rfc.section.7"> |
---|
| 381 | <link rel="Chapter" title="8 IANA Considerations" href="#rfc.section.8"> |
---|
| 382 | <link rel="Chapter" title="9 Security Considerations" href="#rfc.section.9"> |
---|
| 383 | <link rel="Chapter" title="10 Acknowledgments" href="#rfc.section.10"> |
---|
| 384 | <link rel="Chapter" href="#rfc.section.11" title="11 References"> |
---|
[99] | 385 | <link rel="Appendix" title="A Compatibility with Previous Versions" href="#rfc.section.A"> |
---|
[115] | 386 | <link rel="Appendix" title="B Change Log (to be removed by RFC Editor before publication)" href="#rfc.section.B"> |
---|
[1099] | 387 | <meta name="generator" content="http://greenbytes.de/tech/webdav/rfc2629.xslt, Revision 1.537, 2010-12-30 14:21:59, XSLT vendor: SAXON 8.9 from Saxonica http://www.saxonica.com/"> |
---|
| 388 | <link rel="schema.dct" href="http://purl.org/dc/terms/"> |
---|
| 389 | <meta name="dct.creator" content="Fielding, R."> |
---|
| 390 | <meta name="dct.creator" content="Gettys, J."> |
---|
| 391 | <meta name="dct.creator" content="Mogul, J."> |
---|
| 392 | <meta name="dct.creator" content="Frystyk, H."> |
---|
| 393 | <meta name="dct.creator" content="Masinter, L."> |
---|
| 394 | <meta name="dct.creator" content="Leach, P."> |
---|
| 395 | <meta name="dct.creator" content="Berners-Lee, T."> |
---|
| 396 | <meta name="dct.creator" content="Lafon, Y."> |
---|
| 397 | <meta name="dct.creator" content="Reschke, J. F."> |
---|
| 398 | <meta name="dct.identifier" content="urn:ietf:id:draft-ietf-httpbis-p4-conditional-04"> |
---|
| 399 | <meta name="dct.issued" scheme="ISO8601" content="2008-08-29"> |
---|
| 400 | <meta name="dct.replaces" content="urn:ietf:rfc:2616"> |
---|
| 401 | <meta name="dct.abstract" content="The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypermedia information systems. HTTP has been in use by the World Wide Web global information initiative since 1990. This document is Part 4 of the seven-part specification that defines the protocol referred to as "HTTP/1.1" and, taken together, obsoletes RFC 2616. Part 4 defines request header fields for indicating conditional requests and the rules for constructing responses to those requests."> |
---|
| 402 | <meta name="description" content="The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypermedia information systems. HTTP has been in use by the World Wide Web global information initiative since 1990. This document is Part 4 of the seven-part specification that defines the protocol referred to as "HTTP/1.1" and, taken together, obsoletes RFC 2616. Part 4 defines request header fields for indicating conditional requests and the rules for constructing responses to those requests."> |
---|
[52] | 403 | </head> |
---|
| 404 | <body> |
---|
[1099] | 405 | <table class="header"> |
---|
| 406 | <tbody> |
---|
| 407 | <tr> |
---|
| 408 | <td class="left">Network Working Group</td> |
---|
| 409 | <td class="right">R. Fielding, Editor</td> |
---|
| 410 | </tr> |
---|
| 411 | <tr> |
---|
| 412 | <td class="left">Internet-Draft</td> |
---|
| 413 | <td class="right">Day Software</td> |
---|
| 414 | </tr> |
---|
| 415 | <tr> |
---|
| 416 | <td class="left">Obsoletes: <a href="http://tools.ietf.org/html/rfc2616">2616</a> (if approved) |
---|
| 417 | </td> |
---|
| 418 | <td class="right">J. Gettys</td> |
---|
| 419 | </tr> |
---|
| 420 | <tr> |
---|
| 421 | <td class="left">Intended status: Standards Track</td> |
---|
| 422 | <td class="right">One Laptop per Child</td> |
---|
| 423 | </tr> |
---|
| 424 | <tr> |
---|
| 425 | <td class="left">Expires: March 2, 2009</td> |
---|
| 426 | <td class="right">J. Mogul</td> |
---|
| 427 | </tr> |
---|
| 428 | <tr> |
---|
| 429 | <td class="left"></td> |
---|
| 430 | <td class="right">HP</td> |
---|
| 431 | </tr> |
---|
| 432 | <tr> |
---|
| 433 | <td class="left"></td> |
---|
| 434 | <td class="right">H. Frystyk</td> |
---|
| 435 | </tr> |
---|
| 436 | <tr> |
---|
| 437 | <td class="left"></td> |
---|
| 438 | <td class="right">Microsoft</td> |
---|
| 439 | </tr> |
---|
| 440 | <tr> |
---|
| 441 | <td class="left"></td> |
---|
| 442 | <td class="right">L. Masinter</td> |
---|
| 443 | </tr> |
---|
| 444 | <tr> |
---|
| 445 | <td class="left"></td> |
---|
| 446 | <td class="right">Adobe Systems</td> |
---|
| 447 | </tr> |
---|
| 448 | <tr> |
---|
| 449 | <td class="left"></td> |
---|
| 450 | <td class="right">P. Leach</td> |
---|
| 451 | </tr> |
---|
| 452 | <tr> |
---|
| 453 | <td class="left"></td> |
---|
| 454 | <td class="right">Microsoft</td> |
---|
| 455 | </tr> |
---|
| 456 | <tr> |
---|
| 457 | <td class="left"></td> |
---|
| 458 | <td class="right">T. Berners-Lee</td> |
---|
| 459 | </tr> |
---|
| 460 | <tr> |
---|
| 461 | <td class="left"></td> |
---|
| 462 | <td class="right">W3C/MIT</td> |
---|
| 463 | </tr> |
---|
| 464 | <tr> |
---|
| 465 | <td class="left"></td> |
---|
| 466 | <td class="right">Y. Lafon, Editor</td> |
---|
| 467 | </tr> |
---|
| 468 | <tr> |
---|
| 469 | <td class="left"></td> |
---|
| 470 | <td class="right">W3C</td> |
---|
| 471 | </tr> |
---|
| 472 | <tr> |
---|
| 473 | <td class="left"></td> |
---|
| 474 | <td class="right">J. Reschke, Editor</td> |
---|
| 475 | </tr> |
---|
| 476 | <tr> |
---|
| 477 | <td class="left"></td> |
---|
| 478 | <td class="right">greenbytes</td> |
---|
| 479 | </tr> |
---|
| 480 | <tr> |
---|
| 481 | <td class="left"></td> |
---|
| 482 | <td class="right">August 29, 2008</td> |
---|
| 483 | </tr> |
---|
| 484 | </tbody> |
---|
[52] | 485 | </table> |
---|
[314] | 486 | <p class="title">HTTP/1.1, part 4: Conditional Requests<br><span class="filename">draft-ietf-httpbis-p4-conditional-04</span></p> |
---|
[52] | 487 | <h1><a id="rfc.status" href="#rfc.status">Status of this Memo</a></h1> |
---|
| 488 | <p>By submitting this Internet-Draft, each author represents that any applicable patent or other IPR claims of which he or she |
---|
| 489 | is aware have been or will be disclosed, and any of which he or she becomes aware will be disclosed, in accordance with Section |
---|
| 490 | 6 of BCP 79. |
---|
| 491 | </p> |
---|
| 492 | <p>Internet-Drafts are working documents of the Internet Engineering Task Force (IETF), its areas, and its working groups. Note |
---|
| 493 | that other groups may also distribute working documents as Internet-Drafts. |
---|
| 494 | </p> |
---|
| 495 | <p>Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other |
---|
| 496 | documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as “work |
---|
| 497 | in progress”. |
---|
| 498 | </p> |
---|
[1099] | 499 | <p>The list of current Internet-Drafts can be accessed at <a href="http://www.ietf.org/ietf/1id-abstracts.txt">http://www.ietf.org/ietf/1id-abstracts.txt</a>. |
---|
[52] | 500 | </p> |
---|
[1099] | 501 | <p>The list of Internet-Draft Shadow Directories can be accessed at <a href="http://www.ietf.org/shadow.html">http://www.ietf.org/shadow.html</a>. |
---|
[52] | 502 | </p> |
---|
[1099] | 503 | <p>This Internet-Draft will expire on March 2, 2009.</p> |
---|
[52] | 504 | <h1 id="rfc.abstract"><a href="#rfc.abstract">Abstract</a></h1> |
---|
| 505 | <p>The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypermedia information |
---|
| 506 | systems. HTTP has been in use by the World Wide Web global information initiative since 1990. This document is Part 4 of the |
---|
| 507 | seven-part specification that defines the protocol referred to as "HTTP/1.1" and, taken together, obsoletes RFC 2616. Part |
---|
| 508 | 4 defines request header fields for indicating conditional requests and the rules for constructing responses to those requests. |
---|
| 509 | </p> |
---|
| 510 | <h1 id="rfc.note.1"><a href="#rfc.note.1">Editorial Note (To be removed by RFC Editor)</a></h1> |
---|
| 511 | <p>Discussion of this draft should take place on the HTTPBIS working group mailing list (ietf-http-wg@w3.org). The current issues |
---|
[113] | 512 | list is at <<a href="http://www.tools.ietf.org/wg/httpbis/trac/report/11">http://www.tools.ietf.org/wg/httpbis/trac/report/11</a>> and related documents (including fancy diffs) can be found at <<a href="http://www.tools.ietf.org/wg/httpbis/">http://www.tools.ietf.org/wg/httpbis/</a>>. |
---|
[153] | 513 | </p> |
---|
[252] | 514 | <p>The changes in this draft are summarized in <a href="#changes.since.02" title="Since draft-ietf-httpbis-p4-conditional-02">Appendix B.4</a>. |
---|
[52] | 515 | </p> |
---|
| 516 | <hr class="noprint"> |
---|
| 517 | <h1 class="np" id="rfc.toc"><a href="#rfc.toc">Table of Contents</a></h1> |
---|
| 518 | <ul class="toc"> |
---|
[1099] | 519 | <li>1. <a href="#introduction">Introduction</a><ul> |
---|
| 520 | <li>1.1 <a href="#intro.requirements">Requirements</a></li> |
---|
[96] | 521 | </ul> |
---|
| 522 | </li> |
---|
[1099] | 523 | <li>2. <a href="#notation">Notational Conventions and Generic Grammar</a></li> |
---|
| 524 | <li>3. <a href="#entity.tags">Entity Tags</a></li> |
---|
| 525 | <li>4. <a href="#rfc.section.4">Status Code Definitions</a><ul> |
---|
| 526 | <li>4.1 <a href="#status.304">304 Not Modified</a></li> |
---|
| 527 | <li>4.2 <a href="#status.412">412 Precondition Failed</a></li> |
---|
[52] | 528 | </ul> |
---|
| 529 | </li> |
---|
[1099] | 530 | <li>5. <a href="#weak.and.strong.validators">Weak and Strong Validators</a></li> |
---|
| 531 | <li>6. <a href="#rules.for.when.to.use.entity.tags.and.last-modified.dates">Rules for When to Use Entity Tags and Last-Modified Dates</a></li> |
---|
| 532 | <li>7. <a href="#header.fields">Header Field Definitions</a><ul> |
---|
| 533 | <li>7.1 <a href="#header.etag">ETag</a></li> |
---|
| 534 | <li>7.2 <a href="#header.if-match">If-Match</a></li> |
---|
| 535 | <li>7.3 <a href="#header.if-modified-since">If-Modified-Since</a></li> |
---|
| 536 | <li>7.4 <a href="#header.if-none-match">If-None-Match</a></li> |
---|
| 537 | <li>7.5 <a href="#header.if-unmodified-since">If-Unmodified-Since</a></li> |
---|
| 538 | <li>7.6 <a href="#header.last-modified">Last-Modified</a></li> |
---|
[52] | 539 | </ul> |
---|
| 540 | </li> |
---|
[1099] | 541 | <li>8. <a href="#IANA.considerations">IANA Considerations</a><ul> |
---|
| 542 | <li>8.1 <a href="#message.header.registration">Message Header Registration</a></li> |
---|
[253] | 543 | </ul> |
---|
| 544 | </li> |
---|
[1099] | 545 | <li>9. <a href="#security.considerations">Security Considerations</a></li> |
---|
| 546 | <li>10. <a href="#ack">Acknowledgments</a></li> |
---|
| 547 | <li>11. <a href="#rfc.references">References</a><ul> |
---|
| 548 | <li>11.1 <a href="#rfc.references.1">Normative References</a></li> |
---|
| 549 | <li>11.2 <a href="#rfc.references.2">Informative References</a></li> |
---|
[119] | 550 | </ul> |
---|
| 551 | </li> |
---|
[1099] | 552 | <li><a href="#rfc.authors">Authors' Addresses</a></li> |
---|
| 553 | <li>A. <a href="#compatibility">Compatibility with Previous Versions</a><ul> |
---|
| 554 | <li>A.1 <a href="#changes.from.rfc.2616">Changes from RFC 2616</a></li> |
---|
[99] | 555 | </ul> |
---|
| 556 | </li> |
---|
[1099] | 557 | <li>B. <a href="#change.log">Change Log (to be removed by RFC Editor before publication)</a><ul> |
---|
| 558 | <li>B.1 <a href="#rfc.section.B.1">Since RFC2616</a></li> |
---|
| 559 | <li>B.2 <a href="#rfc.section.B.2">Since draft-ietf-httpbis-p4-conditional-00</a></li> |
---|
| 560 | <li>B.3 <a href="#rfc.section.B.3">Since draft-ietf-httpbis-p4-conditional-01</a></li> |
---|
| 561 | <li>B.4 <a href="#changes.since.02">Since draft-ietf-httpbis-p4-conditional-02</a></li> |
---|
| 562 | <li>B.5 <a href="#changes.since.03">Since draft-ietf-httpbis-p4-conditional-03</a></li> |
---|
[115] | 563 | </ul> |
---|
| 564 | </li> |
---|
[1099] | 565 | <li><a href="#rfc.index">Index</a></li> |
---|
| 566 | <li><a href="#rfc.ipr">Intellectual Property and Copyright Statements</a></li> |
---|
[52] | 567 | </ul> |
---|
| 568 | <h1 id="rfc.section.1" class="np"><a href="#rfc.section.1">1.</a> <a id="introduction" href="#introduction">Introduction</a></h1> |
---|
[163] | 569 | <p id="rfc.section.1.p.1">This document defines HTTP/1.1 response metadata for indicating potential changes to payload content, including modification |
---|
| 570 | time stamps and opaque entity-tags, and the HTTP conditional request mechanisms that allow preconditions to be placed on a |
---|
| 571 | request method. Conditional GET requests allow for efficient cache updates. Other conditional request methods are used to |
---|
| 572 | protect against overwriting or misunderstanding the state of a resource that has been changed unbeknownst to the requesting |
---|
| 573 | client. |
---|
[52] | 574 | </p> |
---|
[163] | 575 | <p id="rfc.section.1.p.2">This document is currently disorganized in order to minimize the changes between drafts and enable reviewers to see the smaller |
---|
| 576 | errata changes. The next draft will reorganize the sections to better reflect the content. In particular, the sections on |
---|
| 577 | resource metadata will be discussed first and then followed by each conditional request-header, concluding with a definition |
---|
| 578 | of precedence and the expectation of ordering strong validator checks before weak validator checks. It is likely that more |
---|
| 579 | content from <a href="#Part6" id="rfc.xref.Part6.1"><cite title="HTTP/1.1, part 6: Caching">[Part6]</cite></a> will migrate to this part, where appropriate. The current mess reflects how widely dispersed these topics and associated requirements |
---|
| 580 | had become in <a href="#RFC2616" id="rfc.xref.RFC2616.1"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2616]</cite></a>. |
---|
| 581 | </p> |
---|
[96] | 582 | <h2 id="rfc.section.1.1"><a href="#rfc.section.1.1">1.1</a> <a id="intro.requirements" href="#intro.requirements">Requirements</a></h2> |
---|
| 583 | <p id="rfc.section.1.1.p.1">The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" |
---|
| 584 | 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>. |
---|
| 585 | </p> |
---|
| 586 | <p id="rfc.section.1.1.p.2">An implementation is not compliant if it fails to satisfy one or more of the <em class="bcp14">MUST</em> or <em class="bcp14">REQUIRED</em> level requirements for the protocols it implements. An implementation that satisfies all the <em class="bcp14">MUST</em> or <em class="bcp14">REQUIRED</em> level and all the <em class="bcp14">SHOULD</em> level requirements for its protocols is said to be "unconditionally compliant"; one that satisfies all the <em class="bcp14">MUST</em> level requirements but not all the <em class="bcp14">SHOULD</em> level requirements for its protocols is said to be "conditionally compliant." |
---|
| 587 | </p> |
---|
[205] | 588 | <h1 id="rfc.section.2"><a href="#rfc.section.2">2.</a> <a id="notation" href="#notation">Notational Conventions and Generic Grammar</a></h1> |
---|
[1099] | 589 | <p id="rfc.section.2.p.1">This specification uses the ABNF syntax defined in <a href="p1-messaging.html#notation.abnf" title="Augmented BNF">Section 2.1</a> of <a href="#Part1" id="rfc.xref.Part1.1"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a> and the core rules defined in <a href="p1-messaging.html#basic.rules" title="Basic Rules">Section 2.2</a> of <a href="#Part1" id="rfc.xref.Part1.2"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>: <span class="comment" id="abnf.dep">[<a href="#abnf.dep" class="smpl">abnf.dep</a>: ABNF syntax and basic rules will be adopted from RFC 5234, see <<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/36">http://tools.ietf.org/wg/httpbis/trac/ticket/36</a>>.]</span> |
---|
[52] | 590 | </p> |
---|
[229] | 591 | <div id="rfc.figure.u.1"></div><pre class="inline"> <a href="#notation" class="smpl">quoted-string</a> = <quoted-string, defined in <a href="#Part1" id="rfc.xref.Part1.3"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>, <a href="p1-messaging.html#basic.rules" title="Basic Rules">Section 2.2</a>> |
---|
[207] | 592 | </pre><div id="abnf.dependencies"> |
---|
[229] | 593 | <p id="rfc.section.2.p.3"> The ABNF rules below are defined in other parts:</p> |
---|
[207] | 594 | </div> |
---|
[229] | 595 | <div id="rfc.figure.u.2"></div><pre class="inline"> <a href="#abnf.dependencies" class="smpl">HTTP-date</a> = <HTTP-date, defined in <a href="#Part1" id="rfc.xref.Part1.4"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>, <a href="p1-messaging.html#full.date" title="Full Date">Section 3.3.1</a>> |
---|
[205] | 596 | </pre><h1 id="rfc.section.3"><a href="#rfc.section.3">3.</a> <a id="entity.tags" href="#entity.tags">Entity Tags</a></h1> |
---|
| 597 | <p id="rfc.section.3.p.1">Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the |
---|
| 598 | ETag (<a href="#header.etag" id="rfc.xref.header.etag.1" title="ETag">Section 7.1</a>), If-Match (<a href="#header.if-match" id="rfc.xref.header.if-match.1" title="If-Match">Section 7.2</a>), If-None-Match (<a href="#header.if-none-match" id="rfc.xref.header.if-none-match.1" title="If-None-Match">Section 7.4</a>), and If-Range (<a href="p5-range.html#header.if-range" title="If-Range">Section 6.3</a> of <a href="#Part5" id="rfc.xref.Part5.1"><cite title="HTTP/1.1, part 5: Range Requests and Partial Responses">[Part5]</cite></a>) header fields. The definition of how they are used and compared as cache validators is in <a href="#weak.and.strong.validators" title="Weak and Strong Validators">Section 5</a>. An entity tag consists of an opaque quoted string, possibly prefixed by a weakness indicator. |
---|
| 599 | </p> |
---|
[229] | 600 | <div id="rfc.figure.u.3"></div><pre class="inline"><span id="rfc.iref.g.1"></span><span id="rfc.iref.g.2"></span><span id="rfc.iref.g.3"></span> <a href="#entity.tags" class="smpl">entity-tag</a> = [ <a href="#entity.tags" class="smpl">weak</a> ] <a href="#entity.tags" class="smpl">opaque-tag</a> |
---|
| 601 | <a href="#entity.tags" class="smpl">weak</a> = "W/" |
---|
| 602 | <a href="#entity.tags" class="smpl">opaque-tag</a> = <a href="#notation" class="smpl">quoted-string</a> |
---|
[205] | 603 | </pre><p id="rfc.section.3.p.3">A "strong entity tag" <em class="bcp14">MAY</em> be shared by two entities of a resource only if they are equivalent by octet equality. |
---|
[52] | 604 | </p> |
---|
[205] | 605 | <p id="rfc.section.3.p.4">A "weak entity tag," indicated by the "W/" prefix, <em class="bcp14">MAY</em> be shared by two entities of a resource only if the entities are equivalent and could be substituted for each other with no |
---|
[52] | 606 | significant change in semantics. A weak entity tag can only be used for weak comparison. |
---|
| 607 | </p> |
---|
[205] | 608 | <p id="rfc.section.3.p.5">An entity tag <em class="bcp14">MUST</em> be unique across all versions of all entities associated with a particular resource. A given entity tag value <em class="bcp14">MAY</em> be used for entities obtained by requests on different URIs. The use of the same entity tag value in conjunction with entities |
---|
[52] | 609 | obtained by requests on different URIs does not imply the equivalence of those entities. |
---|
| 610 | </p> |
---|
[205] | 611 | <h1 id="rfc.section.4"><a href="#rfc.section.4">4.</a> Status Code Definitions |
---|
[52] | 612 | </h1> |
---|
| 613 | <div id="rfc.iref.3"></div> |
---|
| 614 | <div id="rfc.iref.s.1"></div> |
---|
[205] | 615 | <h2 id="rfc.section.4.1"><a href="#rfc.section.4.1">4.1</a> <a id="status.304" href="#status.304">304 Not Modified</a></h2> |
---|
| 616 | <p id="rfc.section.4.1.p.1">If the client has performed a conditional GET request and access is allowed, but the document has not been modified, the server <em class="bcp14">SHOULD</em> respond with this status code. The 304 response <em class="bcp14">MUST NOT</em> contain a message-body, and thus is always terminated by the first empty line after the header fields. |
---|
[52] | 617 | </p> |
---|
[205] | 618 | <p id="rfc.section.4.1.p.2">The response <em class="bcp14">MUST</em> include the following header fields: |
---|
[52] | 619 | </p> |
---|
| 620 | <ul> |
---|
[305] | 621 | <li> |
---|
[306] | 622 | <p>Date, unless its omission is required by <a href="p1-messaging.html#clockless.origin.server.operation" title="Clockless Origin Server Operation">Section 8.3.1</a> of <a href="#Part1" id="rfc.xref.Part1.5"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>. |
---|
| 623 | </p> |
---|
[305] | 624 | <p>If a clockless origin server obeys these rules, and proxies and clients add their own Date to any response received without |
---|
[306] | 625 | one (as already specified by <a href="p1-messaging.html#header.date" title="Date">Section 8.3</a> of <a href="#Part1" id="rfc.xref.Part1.6"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>, caches will operate correctly. |
---|
[305] | 626 | </p> |
---|
[52] | 627 | </li> |
---|
[305] | 628 | <li> |
---|
[306] | 629 | <p>ETag and/or Content-Location, if the header would have been sent in a 200 response to the same request.</p> |
---|
[305] | 630 | </li> |
---|
| 631 | <li> |
---|
| 632 | <p>Expires, Cache-Control, and/or Vary, if the field-value might differ from that sent in any previous response for the same |
---|
[306] | 633 | variant. |
---|
[305] | 634 | </p> |
---|
| 635 | </li> |
---|
[52] | 636 | </ul> |
---|
[305] | 637 | <p id="rfc.section.4.1.p.3">If the conditional GET used a strong cache validator (see <a href="#weak.and.strong.validators" title="Weak and Strong Validators">Section 5</a>), the response <em class="bcp14">SHOULD NOT</em> include other entity-headers. Otherwise (i.e., the conditional GET used a weak validator), the response <em class="bcp14">MUST NOT</em> include other entity-headers; this prevents inconsistencies between cached entity-bodies and updated headers. |
---|
[52] | 638 | </p> |
---|
[305] | 639 | <p id="rfc.section.4.1.p.4">If a 304 response indicates an entity not currently cached, then the cache <em class="bcp14">MUST</em> disregard the response and repeat the request without the conditional. |
---|
[52] | 640 | </p> |
---|
[305] | 641 | <p id="rfc.section.4.1.p.5">If a cache uses a received 304 response to update a cache entry, the cache <em class="bcp14">MUST</em> update the entry to reflect any new field values given in the response. |
---|
[52] | 642 | </p> |
---|
| 643 | <div id="rfc.iref.4"></div> |
---|
| 644 | <div id="rfc.iref.s.2"></div> |
---|
[205] | 645 | <h2 id="rfc.section.4.2"><a href="#rfc.section.4.2">4.2</a> <a id="status.412" href="#status.412">412 Precondition Failed</a></h2> |
---|
| 646 | <p id="rfc.section.4.2.p.1">The precondition given in one or more of the request-header fields evaluated to false when it was tested on the server. This |
---|
[52] | 647 | response code allows the client to place preconditions on the current resource metainformation (header field data) and thus |
---|
| 648 | prevent the requested method from being applied to a resource other than the one intended. |
---|
| 649 | </p> |
---|
[205] | 650 | <h1 id="rfc.section.5"><a href="#rfc.section.5">5.</a> <a id="weak.and.strong.validators" href="#weak.and.strong.validators">Weak and Strong Validators</a></h1> |
---|
| 651 | <p id="rfc.section.5.p.1">Since both origin servers and caches will compare two validators to decide if they represent the same or different entities, |
---|
[52] | 652 | one normally would expect that if the entity (the entity-body or any entity-headers) changes in any way, then the associated |
---|
| 653 | validator would change as well. If this is true, then we call this validator a "strong validator." |
---|
| 654 | </p> |
---|
[205] | 655 | <p id="rfc.section.5.p.2">However, there might be cases when a server prefers to change the validator only on semantically significant changes, and |
---|
[52] | 656 | not when insignificant aspects of the entity change. A validator that does not always change when the resource changes is |
---|
| 657 | a "weak validator." |
---|
| 658 | </p> |
---|
[205] | 659 | <p id="rfc.section.5.p.3">Entity tags are normally "strong validators," but the protocol provides a mechanism to tag an entity tag as "weak." One can |
---|
[52] | 660 | think of a strong validator as one that changes whenever the bits of an entity changes, while a weak value changes whenever |
---|
| 661 | the meaning of an entity changes. Alternatively, one can think of a strong validator as part of an identifier for a specific |
---|
| 662 | entity, while a weak validator is part of an identifier for a set of semantically equivalent entities. |
---|
| 663 | </p> |
---|
[1099] | 664 | <ul class="empty"> |
---|
| 665 | <li> <b>Note:</b> One example of a strong validator is an integer that is incremented in stable storage every time an entity is changed. |
---|
| 666 | </li> |
---|
| 667 | <li>An entity's modification time, if represented with one-second resolution, could be a weak validator, since it is possible |
---|
[52] | 668 | that the resource might be modified twice during a single second. |
---|
[1099] | 669 | </li> |
---|
| 670 | <li>Support for weak validators is optional. However, weak validators allow for more efficient caching of equivalent objects; |
---|
[52] | 671 | for example, a hit counter on a site is probably good enough if it is updated every few days or weeks, and any value during |
---|
| 672 | that period is likely "good enough" to be equivalent. |
---|
[1099] | 673 | </li> |
---|
| 674 | </ul> |
---|
[205] | 675 | <p id="rfc.section.5.p.4">A "use" of a validator is either when a client generates a request and includes the validator in a validating header field, |
---|
[52] | 676 | or when a server compares two validators. |
---|
| 677 | </p> |
---|
[205] | 678 | <p id="rfc.section.5.p.5">Strong validators are usable in any context. Weak validators are only usable in contexts that do not depend on exact equality |
---|
[52] | 679 | of an entity. For example, either kind is usable for a conditional GET of a full entity. However, only a strong validator |
---|
| 680 | is usable for a sub-range retrieval, since otherwise the client might end up with an internally inconsistent entity. |
---|
| 681 | </p> |
---|
[245] | 682 | <p id="rfc.section.5.p.6">Clients <em class="bcp14">MUST NOT</em> use weak validators in range requests (<a href="#Part5" id="rfc.xref.Part5.2"><cite title="HTTP/1.1, part 5: Range Requests and Partial Responses">[Part5]</cite></a>). |
---|
[52] | 683 | </p> |
---|
[205] | 684 | <p id="rfc.section.5.p.7">The only function that HTTP/1.1 defines on validators is comparison. There are two validator comparison functions, depending |
---|
[172] | 685 | on whether the comparison context allows the use of weak validators or not: |
---|
[52] | 686 | </p> |
---|
| 687 | <ul> |
---|
[298] | 688 | <li>The strong comparison function: in order to be considered equal, both opaque-tags <em class="bcp14">MUST</em> be identical character-by-character, and both <em class="bcp14">MUST NOT</em> be weak. |
---|
[52] | 689 | </li> |
---|
[298] | 690 | <li>The weak comparison function: in order to be considered equal, both opaque-tags <em class="bcp14">MUST</em> be identical character-by-character. |
---|
[52] | 691 | </li> |
---|
| 692 | </ul> |
---|
[298] | 693 | <p id="rfc.section.5.p.8">The example below shows the results for a set of entity tag pairs, and both the weak and strong comparison function results:</p> |
---|
| 694 | <div id="rfc.table.u.1"> |
---|
[1099] | 695 | <table class="tt full left" cellpadding="3" cellspacing="0"> |
---|
[298] | 696 | <thead> |
---|
| 697 | <tr> |
---|
| 698 | <th>ETag 1</th> |
---|
| 699 | <th>ETag 2</th> |
---|
| 700 | <th>Strong Comparison</th> |
---|
| 701 | <th>Weak Comparison</th> |
---|
| 702 | </tr> |
---|
| 703 | </thead> |
---|
| 704 | <tbody> |
---|
| 705 | <tr> |
---|
[1099] | 706 | <td class="left">W/"1"</td> |
---|
| 707 | <td class="left">W/"1"</td> |
---|
| 708 | <td class="left">no match</td> |
---|
| 709 | <td class="left">match</td> |
---|
[298] | 710 | </tr> |
---|
| 711 | <tr> |
---|
[1099] | 712 | <td class="left">W/"1"</td> |
---|
| 713 | <td class="left">W/"2"</td> |
---|
| 714 | <td class="left">no match</td> |
---|
| 715 | <td class="left">no match</td> |
---|
[298] | 716 | </tr> |
---|
| 717 | <tr> |
---|
[1099] | 718 | <td class="left">W/"1"</td> |
---|
| 719 | <td class="left">"1"</td> |
---|
| 720 | <td class="left">no match</td> |
---|
| 721 | <td class="left">match</td> |
---|
[298] | 722 | </tr> |
---|
| 723 | <tr> |
---|
[1099] | 724 | <td class="left">"1"</td> |
---|
| 725 | <td class="left">"1"</td> |
---|
| 726 | <td class="left">match</td> |
---|
| 727 | <td class="left">match</td> |
---|
[298] | 728 | </tr> |
---|
| 729 | </tbody> |
---|
| 730 | </table> |
---|
| 731 | </div> |
---|
| 732 | <p id="rfc.section.5.p.9">An entity tag is strong unless it is explicitly tagged as weak. <a href="#entity.tags" title="Entity Tags">Section 3</a> gives the syntax for entity tags. |
---|
[52] | 733 | </p> |
---|
[298] | 734 | <p id="rfc.section.5.p.10">A Last-Modified time, when used as a validator in a request, is implicitly weak unless it is possible to deduce that it is |
---|
[52] | 735 | strong, using the following rules: |
---|
| 736 | </p> |
---|
| 737 | <ul> |
---|
| 738 | <li>The validator is being compared by an origin server to the actual current validator for the entity and,</li> |
---|
| 739 | <li>That origin server reliably knows that the associated entity did not change twice during the second covered by the presented |
---|
| 740 | validator. |
---|
| 741 | </li> |
---|
| 742 | </ul> |
---|
[298] | 743 | <p id="rfc.section.5.p.11">or </p> |
---|
[52] | 744 | <ul> |
---|
| 745 | <li>The validator is about to be used by a client in an If-Modified-Since or If-Unmodified-Since header, because the client has |
---|
| 746 | a cache entry for the associated entity, and |
---|
| 747 | </li> |
---|
| 748 | <li>That cache entry includes a Date value, which gives the time when the origin server sent the original response, and</li> |
---|
| 749 | <li>The presented Last-Modified time is at least 60 seconds before the Date value.</li> |
---|
| 750 | </ul> |
---|
[298] | 751 | <p id="rfc.section.5.p.12">or </p> |
---|
[52] | 752 | <ul> |
---|
| 753 | <li>The validator is being compared by an intermediate cache to the validator stored in its cache entry for the entity, and</li> |
---|
| 754 | <li>That cache entry includes a Date value, which gives the time when the origin server sent the original response, and</li> |
---|
| 755 | <li>The presented Last-Modified time is at least 60 seconds before the Date value.</li> |
---|
| 756 | </ul> |
---|
[298] | 757 | <p id="rfc.section.5.p.13">This method relies on the fact that if two different responses were sent by the origin server during the same second, but |
---|
[52] | 758 | both had the same Last-Modified time, then at least one of those responses would have a Date value equal to its Last-Modified |
---|
| 759 | time. The arbitrary 60-second limit guards against the possibility that the Date and Last-Modified values are generated from |
---|
| 760 | different clocks, or at somewhat different times during the preparation of the response. An implementation <em class="bcp14">MAY</em> use a value larger than 60 seconds, if it is believed that 60 seconds is too short. |
---|
| 761 | </p> |
---|
[298] | 762 | <p id="rfc.section.5.p.14">If a client wishes to perform a sub-range retrieval on a value for which it has only a Last-Modified time and no opaque validator, |
---|
[52] | 763 | it <em class="bcp14">MAY</em> do this only if the Last-Modified time is strong in the sense described here. |
---|
| 764 | </p> |
---|
[298] | 765 | <p id="rfc.section.5.p.15">A cache or origin server receiving a conditional range request (<a href="#Part5" id="rfc.xref.Part5.3"><cite title="HTTP/1.1, part 5: Range Requests and Partial Responses">[Part5]</cite></a>) <em class="bcp14">MUST</em> use the strong comparison function to evaluate the condition. |
---|
[52] | 766 | </p> |
---|
[298] | 767 | <p id="rfc.section.5.p.16">These rules allow HTTP/1.1 caches and clients to safely perform sub-range retrievals on values that have been obtained from |
---|
[52] | 768 | HTTP/1.0 servers. |
---|
| 769 | </p> |
---|
[205] | 770 | <h1 id="rfc.section.6"><a href="#rfc.section.6">6.</a> <a id="rules.for.when.to.use.entity.tags.and.last-modified.dates" href="#rules.for.when.to.use.entity.tags.and.last-modified.dates">Rules for When to Use Entity Tags and Last-Modified Dates</a></h1> |
---|
| 771 | <p id="rfc.section.6.p.1">We adopt a set of rules and recommendations for origin servers, clients, and caches regarding when various validator types |
---|
[52] | 772 | ought to be used, and for what purposes. |
---|
| 773 | </p> |
---|
[205] | 774 | <p id="rfc.section.6.p.2">HTTP/1.1 origin servers: </p> |
---|
[52] | 775 | <ul> |
---|
| 776 | <li><em class="bcp14">SHOULD</em> send an entity tag validator unless it is not feasible to generate one. |
---|
| 777 | </li> |
---|
| 778 | <li><em class="bcp14">MAY</em> send a weak entity tag instead of a strong entity tag, if performance considerations support the use of weak entity tags, |
---|
| 779 | or if it is unfeasible to send a strong entity tag. |
---|
| 780 | </li> |
---|
| 781 | <li><em class="bcp14">SHOULD</em> send a Last-Modified value if it is feasible to send one, unless the risk of a breakdown in semantic transparency that could |
---|
| 782 | result from using this date in an If-Modified-Since header would lead to serious problems. |
---|
| 783 | </li> |
---|
| 784 | </ul> |
---|
[205] | 785 | <p id="rfc.section.6.p.3">In other words, the preferred behavior for an HTTP/1.1 origin server is to send both a strong entity tag and a Last-Modified |
---|
[52] | 786 | value. |
---|
| 787 | </p> |
---|
[302] | 788 | <p id="rfc.section.6.p.4">In order to be legal, a strong entity tag <em class="bcp14">MUST</em> change whenever the associated entity changes in any way. A weak entity tag <em class="bcp14">SHOULD</em> change whenever the associated entity changes in a semantically significant way. |
---|
[52] | 789 | </p> |
---|
[1099] | 790 | <ul class="empty"> |
---|
| 791 | <li> <b>Note:</b> in order to provide semantically transparent caching, an origin server must avoid reusing a specific strong entity tag value |
---|
[52] | 792 | for two different entities, or reusing a specific weak entity tag value for two semantically different entities. Cache entries |
---|
| 793 | might persist for arbitrarily long periods, regardless of expiration times, so it might be inappropriate to expect that a |
---|
| 794 | cache will never again attempt to validate an entry using a validator that it obtained at some point in the past. |
---|
[1099] | 795 | </li> |
---|
| 796 | </ul> |
---|
[205] | 797 | <p id="rfc.section.6.p.5">HTTP/1.1 clients: </p> |
---|
[52] | 798 | <ul> |
---|
| 799 | <li>If an entity tag has been provided by the origin server, <em class="bcp14">MUST</em> use that entity tag in any cache-conditional request (using If-Match or If-None-Match). |
---|
| 800 | </li> |
---|
| 801 | <li>If only a Last-Modified value has been provided by the origin server, <em class="bcp14">SHOULD</em> use that value in non-subrange cache-conditional requests (using If-Modified-Since). |
---|
| 802 | </li> |
---|
| 803 | <li>If only a Last-Modified value has been provided by an HTTP/1.0 origin server, <em class="bcp14">MAY</em> use that value in subrange cache-conditional requests (using If-Unmodified-Since:). The user agent <em class="bcp14">SHOULD</em> provide a way to disable this, in case of difficulty. |
---|
| 804 | </li> |
---|
| 805 | <li>If both an entity tag and a Last-Modified value have been provided by the origin server, <em class="bcp14">SHOULD</em> use both validators in cache-conditional requests. This allows both HTTP/1.0 and HTTP/1.1 caches to respond appropriately. |
---|
| 806 | </li> |
---|
| 807 | </ul> |
---|
[205] | 808 | <p id="rfc.section.6.p.6">An HTTP/1.1 origin server, upon receiving a conditional request that includes both a Last-Modified date (e.g., in an If-Modified-Since |
---|
[52] | 809 | or If-Unmodified-Since header field) and one or more entity tags (e.g., in an If-Match, If-None-Match, or If-Range header |
---|
| 810 | field) as cache validators, <em class="bcp14">MUST NOT</em> return a response status of 304 (Not Modified) unless doing so is consistent with all of the conditional header fields in |
---|
| 811 | the request. |
---|
| 812 | </p> |
---|
[205] | 813 | <p id="rfc.section.6.p.7">An HTTP/1.1 caching proxy, upon receiving a conditional request that includes both a Last-Modified date and one or more entity |
---|
[52] | 814 | tags as cache validators, <em class="bcp14">MUST NOT</em> return a locally cached response to the client unless that cached response is consistent with all of the conditional header |
---|
| 815 | fields in the request. |
---|
| 816 | </p> |
---|
[1099] | 817 | <ul class="empty"> |
---|
| 818 | <li> <b>Note:</b> The general principle behind these rules is that HTTP/1.1 servers and clients should transmit as much non-redundant information |
---|
[52] | 819 | as is available in their responses and requests. HTTP/1.1 systems receiving this information will make the most conservative |
---|
| 820 | assumptions about the validators they receive. |
---|
[1099] | 821 | </li> |
---|
| 822 | <li>HTTP/1.0 clients and caches will ignore entity tags. Generally, last-modified values received or used by these systems will |
---|
[52] | 823 | support transparent and efficient caching, and so HTTP/1.1 origin servers should provide Last-Modified values. In those rare |
---|
| 824 | cases where the use of a Last-Modified value as a validator by an HTTP/1.0 system could result in a serious problem, then |
---|
| 825 | HTTP/1.1 origin servers should not provide one. |
---|
[1099] | 826 | </li> |
---|
| 827 | </ul> |
---|
[205] | 828 | <h1 id="rfc.section.7"><a href="#rfc.section.7">7.</a> <a id="header.fields" href="#header.fields">Header Field Definitions</a></h1> |
---|
| 829 | <p id="rfc.section.7.p.1">This section defines the syntax and semantics of HTTP/1.1 header fields related to conditional requests.</p> |
---|
| 830 | <p id="rfc.section.7.p.2">For entity-header fields, both sender and recipient refer to either the client or the server, depending on who sends and who |
---|
[117] | 831 | receives the entity. |
---|
[52] | 832 | </p> |
---|
| 833 | <div id="rfc.iref.e.1"></div> |
---|
| 834 | <div id="rfc.iref.h.1"></div> |
---|
[205] | 835 | <h2 id="rfc.section.7.1"><a href="#rfc.section.7.1">7.1</a> <a id="header.etag" href="#header.etag">ETag</a></h2> |
---|
| 836 | <p id="rfc.section.7.1.p.1">The ETag response-header field provides the current value of the entity tag for the requested variant. The headers used with |
---|
[245] | 837 | entity tags are described in Sections <a href="#header.if-match" id="rfc.xref.header.if-match.2" title="If-Match">7.2</a> and <a href="#header.if-none-match" id="rfc.xref.header.if-none-match.2" title="If-None-Match">7.4</a> of this document, and in <a href="p5-range.html#header.if-range" title="If-Range">Section 6.3</a> of <a href="#Part5" id="rfc.xref.Part5.4"><cite title="HTTP/1.1, part 5: Range Requests and Partial Responses">[Part5]</cite></a>. The entity tag <em class="bcp14">MAY</em> be used for comparison with other entities from the same resource (see <a href="#weak.and.strong.validators" title="Weak and Strong Validators">Section 5</a>). |
---|
[52] | 838 | </p> |
---|
[229] | 839 | <div id="rfc.figure.u.4"></div><pre class="inline"><span id="rfc.iref.g.4"></span> <a href="#header.etag" class="smpl">ETag</a> = "ETag" ":" <a href="#entity.tags" class="smpl">entity-tag</a> |
---|
[205] | 840 | </pre><div id="rfc.figure.u.5"></div> |
---|
[52] | 841 | <p>Examples:</p> <pre class="text"> ETag: "xyzzy" |
---|
| 842 | ETag: W/"xyzzy" |
---|
| 843 | ETag: "" |
---|
[205] | 844 | </pre><p id="rfc.section.7.1.p.4">The ETag response-header field value, an entity tag, provides for an "opaque" cache validator. This might allow more reliable |
---|
[183] | 845 | validation in situations where it is inconvenient to store modification dates, where the one-second resolution of HTTP date |
---|
| 846 | values is not sufficient, or where the origin server wishes to avoid certain paradoxes that might arise from the use of modification |
---|
| 847 | dates. |
---|
| 848 | </p> |
---|
[205] | 849 | <p id="rfc.section.7.1.p.5">The principle behind entity tags is that only the service author knows the semantics of a resource well enough to select an |
---|
[183] | 850 | appropriate cache validation mechanism, and the specification of any validator comparison function more complex than byte-equality |
---|
| 851 | would open up a can of worms. Thus, comparisons of any other headers (except Last-Modified, for compatibility with HTTP/1.0) |
---|
| 852 | are never used for purposes of validating a cache entry. |
---|
| 853 | </p> |
---|
| 854 | <div id="rfc.iref.i.1"></div> |
---|
[52] | 855 | <div id="rfc.iref.h.2"></div> |
---|
[205] | 856 | <h2 id="rfc.section.7.2"><a href="#rfc.section.7.2">7.2</a> <a id="header.if-match" href="#header.if-match">If-Match</a></h2> |
---|
| 857 | <p id="rfc.section.7.2.p.1">The If-Match request-header field is used with a method to make it conditional. A client that has one or more entities previously |
---|
[52] | 858 | obtained from the resource can verify that one of those entities is current by including a list of their associated entity |
---|
[205] | 859 | tags in the If-Match header field. Entity tags are defined in <a href="#entity.tags" title="Entity Tags">Section 3</a>. The purpose of this feature is to allow efficient updates of cached information with a minimum amount of transaction overhead. |
---|
[52] | 860 | It is also used, on updating requests, to prevent inadvertent modification of the wrong version of a resource. As a special |
---|
| 861 | case, the value "*" matches any current entity of the resource. |
---|
| 862 | </p> |
---|
[229] | 863 | <div id="rfc.figure.u.6"></div><pre class="inline"><span id="rfc.iref.g.5"></span> <a href="#header.if-match" class="smpl">If-Match</a> = "If-Match" ":" ( "*" | 1#<a href="#entity.tags" class="smpl">entity-tag</a> ) |
---|
[205] | 864 | </pre><p id="rfc.section.7.2.p.3">If any of the entity tags match the entity tag of the entity that would have been returned in the response to a similar GET |
---|
[52] | 865 | request (without the If-Match header) on that resource, or if "*" is given and any current entity exists for that resource, |
---|
| 866 | then the server <em class="bcp14">MAY</em> perform the requested method as if the If-Match header field did not exist. |
---|
| 867 | </p> |
---|
[205] | 868 | <p id="rfc.section.7.2.p.4">A server <em class="bcp14">MUST</em> use the strong comparison function (see <a href="#weak.and.strong.validators" title="Weak and Strong Validators">Section 5</a>) to compare the entity tags in If-Match. |
---|
[52] | 869 | </p> |
---|
[205] | 870 | <p id="rfc.section.7.2.p.5">If none of the entity tags match, or if "*" is given and no current entity exists, the server <em class="bcp14">MUST NOT</em> perform the requested method, and <em class="bcp14">MUST</em> return a 412 (Precondition Failed) response. This behavior is most useful when the client wants to prevent an updating method, |
---|
[52] | 871 | such as PUT, from modifying a resource that has changed since the client last retrieved it. |
---|
| 872 | </p> |
---|
[205] | 873 | <p id="rfc.section.7.2.p.6">If the request would, without the If-Match header field, result in anything other than a 2xx or 412 status, then the If-Match |
---|
[52] | 874 | header <em class="bcp14">MUST</em> be ignored. |
---|
| 875 | </p> |
---|
[205] | 876 | <p id="rfc.section.7.2.p.7">The meaning of "If-Match: *" is that the method <em class="bcp14">SHOULD</em> be performed if the representation selected by the origin server (or by a cache, possibly using the Vary mechanism, see <a href="p6-cache.html#header.vary" title="Vary">Section 16.5</a> of <a href="#Part6" id="rfc.xref.Part6.2"><cite title="HTTP/1.1, part 6: Caching">[Part6]</cite></a>) exists, and <em class="bcp14">MUST NOT</em> be performed if the representation does not exist. |
---|
[52] | 877 | </p> |
---|
[205] | 878 | <p id="rfc.section.7.2.p.8">A request intended to update a resource (e.g., a PUT) <em class="bcp14">MAY</em> include an If-Match header field to signal that the request method <em class="bcp14">MUST NOT</em> be applied if the entity corresponding to the If-Match value (a single entity tag) is no longer a representation of that resource. |
---|
[52] | 879 | This allows the user to indicate that they do not wish the request to be successful if the resource has been changed without |
---|
| 880 | their knowledge. Examples: |
---|
| 881 | </p> |
---|
[205] | 882 | <div id="rfc.figure.u.7"></div><pre class="text"> If-Match: "xyzzy" |
---|
[52] | 883 | If-Match: "xyzzy", "r2d2xxxx", "c3piozzzz" |
---|
| 884 | If-Match: * |
---|
[205] | 885 | </pre><p id="rfc.section.7.2.p.10">The result of a request having both an If-Match header field and either an If-None-Match or an If-Modified-Since header fields |
---|
[52] | 886 | is undefined by this specification. |
---|
| 887 | </p> |
---|
| 888 | <div id="rfc.iref.i.2"></div> |
---|
| 889 | <div id="rfc.iref.h.3"></div> |
---|
[205] | 890 | <h2 id="rfc.section.7.3"><a href="#rfc.section.7.3">7.3</a> <a id="header.if-modified-since" href="#header.if-modified-since">If-Modified-Since</a></h2> |
---|
| 891 | <p id="rfc.section.7.3.p.1">The If-Modified-Since request-header field is used with a method to make it conditional: if the requested variant has not |
---|
[137] | 892 | been modified since the time specified in this field, an entity will not be returned from the server; instead, a 304 (Not |
---|
| 893 | Modified) response will be returned without any message-body. |
---|
[52] | 894 | </p> |
---|
[229] | 895 | <div id="rfc.figure.u.8"></div><pre class="inline"><span id="rfc.iref.g.6"></span> <a href="#header.if-modified-since" class="smpl">If-Modified-Since</a> = "If-Modified-Since" ":" <a href="#abnf.dependencies" class="smpl">HTTP-date</a> |
---|
[205] | 896 | </pre><p id="rfc.section.7.3.p.3">An example of the field is:</p> |
---|
| 897 | <div id="rfc.figure.u.9"></div><pre class="text"> If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT |
---|
| 898 | </pre><p id="rfc.section.7.3.p.5">A GET method with an If-Modified-Since header and no Range header requests that the identified entity be transferred only |
---|
[52] | 899 | if it has been modified since the date given by the If-Modified-Since header. The algorithm for determining this includes |
---|
| 900 | the following cases: |
---|
| 901 | </p> |
---|
| 902 | <ol> |
---|
| 903 | <li>If the request would normally result in anything other than a 200 (OK) status, or if the passed If-Modified-Since date is |
---|
| 904 | invalid, the response is exactly the same as for a normal GET. A date which is later than the server's current time is invalid. |
---|
| 905 | </li> |
---|
| 906 | <li>If the variant has been modified since the If-Modified-Since date, the response is exactly the same as for a normal GET.</li> |
---|
| 907 | <li>If the variant has not been modified since a valid If-Modified-Since date, the server <em class="bcp14">SHOULD</em> return a 304 (Not Modified) response. |
---|
| 908 | </li> |
---|
| 909 | </ol> |
---|
[205] | 910 | <p id="rfc.section.7.3.p.6">The purpose of this feature is to allow efficient updates of cached information with a minimum amount of transaction overhead. </p> |
---|
[1099] | 911 | <ul class="empty"> |
---|
| 912 | <li> <b>Note:</b> The Range request-header field modifies the meaning of If-Modified-Since; see <a href="p5-range.html#header.range" title="Range">Section 6.4</a> of <a href="#Part5" id="rfc.xref.Part5.5"><cite title="HTTP/1.1, part 5: Range Requests and Partial Responses">[Part5]</cite></a> for full details. |
---|
| 913 | </li> |
---|
| 914 | <li> <b>Note:</b> If-Modified-Since times are interpreted by the server, whose clock might not be synchronized with the client. |
---|
| 915 | </li> |
---|
| 916 | <li> <b>Note:</b> When handling an If-Modified-Since header field, some servers will use an exact date comparison function, rather than a less-than |
---|
[52] | 917 | function, for deciding whether to send a 304 (Not Modified) response. To get best results when sending an If-Modified-Since |
---|
| 918 | header field for cache validation, clients are advised to use the exact date string received in a previous Last-Modified header |
---|
| 919 | field whenever possible. |
---|
[1099] | 920 | </li> |
---|
| 921 | <li> <b>Note:</b> If a client uses an arbitrary date in the If-Modified-Since header instead of a date taken from the Last-Modified header for |
---|
[52] | 922 | the same request, the client should be aware of the fact that this date is interpreted in the server's understanding of time. |
---|
| 923 | The client should consider unsynchronized clocks and rounding problems due to the different encodings of time between the |
---|
| 924 | client and server. This includes the possibility of race conditions if the document has changed between the time it was first |
---|
| 925 | requested and the If-Modified-Since date of a subsequent request, and the possibility of clock-skew-related problems if the |
---|
| 926 | If-Modified-Since date is derived from the client's clock without correction to the server's clock. Corrections for different |
---|
| 927 | time bases between client and server are at best approximate due to network latency. |
---|
[1099] | 928 | </li> |
---|
| 929 | </ul> |
---|
[205] | 930 | <p id="rfc.section.7.3.p.7">The result of a request having both an If-Modified-Since header field and either an If-Match or an If-Unmodified-Since header |
---|
[52] | 931 | fields is undefined by this specification. |
---|
| 932 | </p> |
---|
| 933 | <div id="rfc.iref.i.3"></div> |
---|
| 934 | <div id="rfc.iref.h.4"></div> |
---|
[205] | 935 | <h2 id="rfc.section.7.4"><a href="#rfc.section.7.4">7.4</a> <a id="header.if-none-match" href="#header.if-none-match">If-None-Match</a></h2> |
---|
| 936 | <p id="rfc.section.7.4.p.1">The If-None-Match request-header field is used with a method to make it conditional. A client that has one or more entities |
---|
[52] | 937 | previously obtained from the resource can verify that none of those entities is current by including a list of their associated |
---|
| 938 | entity tags in the If-None-Match header field. The purpose of this feature is to allow efficient updates of cached information |
---|
| 939 | with a minimum amount of transaction overhead. It is also used to prevent a method (e.g. PUT) from inadvertently modifying |
---|
| 940 | an existing resource when the client believes that the resource does not exist. |
---|
| 941 | </p> |
---|
[205] | 942 | <p id="rfc.section.7.4.p.2">As a special case, the value "*" matches any current entity of the resource.</p> |
---|
[229] | 943 | <div id="rfc.figure.u.10"></div><pre class="inline"><span id="rfc.iref.g.7"></span> <a href="#header.if-none-match" class="smpl">If-None-Match</a> = "If-None-Match" ":" ( "*" | 1#<a href="#entity.tags" class="smpl">entity-tag</a> ) |
---|
[205] | 944 | </pre><p id="rfc.section.7.4.p.4">If any of the entity tags match the entity tag of the entity that would have been returned in the response to a similar GET |
---|
[52] | 945 | request (without the If-None-Match header) on that resource, or if "*" is given and any current entity exists for that resource, |
---|
| 946 | then the server <em class="bcp14">MUST NOT</em> perform the requested method, unless required to do so because the resource's modification date fails to match that supplied |
---|
| 947 | in an If-Modified-Since header field in the request. Instead, if the request method was GET or HEAD, the server <em class="bcp14">SHOULD</em> respond with a 304 (Not Modified) response, including the cache-related header fields (particularly ETag) of one of the entities |
---|
| 948 | that matched. For all other request methods, the server <em class="bcp14">MUST</em> respond with a status of 412 (Precondition Failed). |
---|
| 949 | </p> |
---|
[245] | 950 | <p id="rfc.section.7.4.p.5">See <a href="#weak.and.strong.validators" title="Weak and Strong Validators">Section 5</a> for rules on how to determine if two entity tags match. |
---|
[52] | 951 | </p> |
---|
[205] | 952 | <p id="rfc.section.7.4.p.6">If none of the entity tags match, then the server <em class="bcp14">MAY</em> perform the requested method as if the If-None-Match header field did not exist, but <em class="bcp14">MUST</em> also ignore any If-Modified-Since header field(s) in the request. That is, if no entity tags match, then the server <em class="bcp14">MUST NOT</em> return a 304 (Not Modified) response. |
---|
[52] | 953 | </p> |
---|
[205] | 954 | <p id="rfc.section.7.4.p.7">If the request would, without the If-None-Match header field, result in anything other than a 2xx or 304 status, then the |
---|
| 955 | If-None-Match header <em class="bcp14">MUST</em> be ignored. (See <a href="#rules.for.when.to.use.entity.tags.and.last-modified.dates" title="Rules for When to Use Entity Tags and Last-Modified Dates">Section 6</a> for a discussion of server behavior when both If-Modified-Since and If-None-Match appear in the same request.) |
---|
[52] | 956 | </p> |
---|
[205] | 957 | <p id="rfc.section.7.4.p.8">The meaning of "If-None-Match: *" is that the method <em class="bcp14">MUST NOT</em> be performed if the representation selected by the origin server (or by a cache, possibly using the Vary mechanism, see <a href="p6-cache.html#header.vary" title="Vary">Section 16.5</a> of <a href="#Part6" id="rfc.xref.Part6.3"><cite title="HTTP/1.1, part 6: Caching">[Part6]</cite></a>) exists, and <em class="bcp14">SHOULD</em> be performed if the representation does not exist. This feature is intended to be useful in preventing races between PUT operations. |
---|
[52] | 958 | </p> |
---|
[205] | 959 | <p id="rfc.section.7.4.p.9">Examples:</p> |
---|
| 960 | <div id="rfc.figure.u.11"></div><pre class="text"> If-None-Match: "xyzzy" |
---|
[52] | 961 | If-None-Match: W/"xyzzy" |
---|
| 962 | If-None-Match: "xyzzy", "r2d2xxxx", "c3piozzzz" |
---|
| 963 | If-None-Match: W/"xyzzy", W/"r2d2xxxx", W/"c3piozzzz" |
---|
| 964 | If-None-Match: * |
---|
[205] | 965 | </pre><p id="rfc.section.7.4.p.11">The result of a request having both an If-None-Match header field and either an If-Match or an If-Unmodified-Since header |
---|
[52] | 966 | fields is undefined by this specification. |
---|
| 967 | </p> |
---|
| 968 | <div id="rfc.iref.i.4"></div> |
---|
| 969 | <div id="rfc.iref.h.5"></div> |
---|
[205] | 970 | <h2 id="rfc.section.7.5"><a href="#rfc.section.7.5">7.5</a> <a id="header.if-unmodified-since" href="#header.if-unmodified-since">If-Unmodified-Since</a></h2> |
---|
| 971 | <p id="rfc.section.7.5.p.1">The If-Unmodified-Since request-header field is used with a method to make it conditional. If the requested resource has not |
---|
[52] | 972 | been modified since the time specified in this field, the server <em class="bcp14">SHOULD</em> perform the requested operation as if the If-Unmodified-Since header were not present. |
---|
| 973 | </p> |
---|
[205] | 974 | <p id="rfc.section.7.5.p.2">If the requested variant has been modified since the specified time, the server <em class="bcp14">MUST NOT</em> perform the requested operation, and <em class="bcp14">MUST</em> return a 412 (Precondition Failed). |
---|
[52] | 975 | </p> |
---|
[229] | 976 | <div id="rfc.figure.u.12"></div><pre class="inline"><span id="rfc.iref.g.8"></span> <a href="#header.if-unmodified-since" class="smpl">If-Unmodified-Since</a> = "If-Unmodified-Since" ":" <a href="#abnf.dependencies" class="smpl">HTTP-date</a> |
---|
[205] | 977 | </pre><p id="rfc.section.7.5.p.4">An example of the field is:</p> |
---|
| 978 | <div id="rfc.figure.u.13"></div><pre class="text"> If-Unmodified-Since: Sat, 29 Oct 1994 19:43:31 GMT |
---|
| 979 | </pre><p id="rfc.section.7.5.p.6">If the request normally (i.e., without the If-Unmodified-Since header) would result in anything other than a 2xx or 412 status, |
---|
[52] | 980 | the If-Unmodified-Since header <em class="bcp14">SHOULD</em> be ignored. |
---|
| 981 | </p> |
---|
[205] | 982 | <p id="rfc.section.7.5.p.7">If the specified date is invalid, the header is ignored.</p> |
---|
| 983 | <p id="rfc.section.7.5.p.8">The result of a request having both an If-Unmodified-Since header field and either an If-None-Match or an If-Modified-Since |
---|
[52] | 984 | header fields is undefined by this specification. |
---|
| 985 | </p> |
---|
| 986 | <div id="rfc.iref.l.1"></div> |
---|
| 987 | <div id="rfc.iref.h.6"></div> |
---|
[205] | 988 | <h2 id="rfc.section.7.6"><a href="#rfc.section.7.6">7.6</a> <a id="header.last-modified" href="#header.last-modified">Last-Modified</a></h2> |
---|
| 989 | <p id="rfc.section.7.6.p.1">The Last-Modified entity-header field indicates the date and time at which the origin server believes the variant was last |
---|
[52] | 990 | modified. |
---|
| 991 | </p> |
---|
[229] | 992 | <div id="rfc.figure.u.14"></div><pre class="inline"><span id="rfc.iref.g.9"></span> <a href="#header.last-modified" class="smpl">Last-Modified</a> = "Last-Modified" ":" <a href="#abnf.dependencies" class="smpl">HTTP-date</a> |
---|
[205] | 993 | </pre><p id="rfc.section.7.6.p.3">An example of its use is</p> |
---|
| 994 | <div id="rfc.figure.u.15"></div><pre class="text"> Last-Modified: Tue, 15 Nov 1994 12:45:26 GMT |
---|
| 995 | </pre><p id="rfc.section.7.6.p.5">The exact meaning of this header field depends on the implementation of the origin server and the nature of the original resource. |
---|
[52] | 996 | For files, it may be just the file system last-modified time. For entities with dynamically included parts, it may be the |
---|
| 997 | most recent of the set of last-modify times for its component parts. For database gateways, it may be the last-update time |
---|
| 998 | stamp of the record. For virtual objects, it may be the last time the internal state changed. |
---|
| 999 | </p> |
---|
[205] | 1000 | <p id="rfc.section.7.6.p.6">An origin server <em class="bcp14">MUST NOT</em> send a Last-Modified date which is later than the server's time of message origination. In such cases, where the resource's |
---|
[52] | 1001 | last modification would indicate some time in the future, the server <em class="bcp14">MUST</em> replace that date with the message origination date. |
---|
| 1002 | </p> |
---|
[205] | 1003 | <p id="rfc.section.7.6.p.7">An origin server <em class="bcp14">SHOULD</em> obtain the Last-Modified value of the entity as close as possible to the time that it generates the Date value of its response. |
---|
[52] | 1004 | This allows a recipient to make an accurate assessment of the entity's modification time, especially if the entity changes |
---|
| 1005 | near the time that the response is generated. |
---|
| 1006 | </p> |
---|
[205] | 1007 | <p id="rfc.section.7.6.p.8">HTTP/1.1 servers <em class="bcp14">SHOULD</em> send Last-Modified whenever feasible. |
---|
[52] | 1008 | </p> |
---|
[205] | 1009 | <p id="rfc.section.7.6.p.9">The Last-Modified entity-header field value is often used as a cache validator. In simple terms, a cache entry is considered |
---|
[183] | 1010 | to be valid if the entity has not been modified since the Last-Modified value. |
---|
| 1011 | </p> |
---|
[205] | 1012 | <h1 id="rfc.section.8"><a href="#rfc.section.8">8.</a> <a id="IANA.considerations" href="#IANA.considerations">IANA Considerations</a></h1> |
---|
[253] | 1013 | <h2 id="rfc.section.8.1"><a href="#rfc.section.8.1">8.1</a> <a id="message.header.registration" href="#message.header.registration">Message Header Registration</a></h2> |
---|
| 1014 | <p id="rfc.section.8.1.p.1">The Message Header 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>> should 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>): |
---|
[203] | 1015 | </p> |
---|
[290] | 1016 | <div id="rfc.table.1"> |
---|
| 1017 | <div id="iana.header.registration.table"></div> |
---|
[1099] | 1018 | <table class="tt full left" cellpadding="3" cellspacing="0"> |
---|
[253] | 1019 | <thead> |
---|
| 1020 | <tr> |
---|
| 1021 | <th>Header Field Name</th> |
---|
| 1022 | <th>Protocol</th> |
---|
| 1023 | <th>Status</th> |
---|
| 1024 | <th>Reference</th> |
---|
| 1025 | </tr> |
---|
| 1026 | </thead> |
---|
| 1027 | <tbody> |
---|
| 1028 | <tr> |
---|
[1099] | 1029 | <td class="left">ETag</td> |
---|
| 1030 | <td class="left">http</td> |
---|
| 1031 | <td class="left">standard</td> |
---|
| 1032 | <td class="left"> <a href="#header.etag" id="rfc.xref.header.etag.2" title="ETag">Section 7.1</a> |
---|
[253] | 1033 | </td> |
---|
| 1034 | </tr> |
---|
| 1035 | <tr> |
---|
[1099] | 1036 | <td class="left">If-Match</td> |
---|
| 1037 | <td class="left">http</td> |
---|
| 1038 | <td class="left">standard</td> |
---|
| 1039 | <td class="left"> <a href="#header.if-match" id="rfc.xref.header.if-match.3" title="If-Match">Section 7.2</a> |
---|
[253] | 1040 | </td> |
---|
| 1041 | </tr> |
---|
| 1042 | <tr> |
---|
[1099] | 1043 | <td class="left">If-Modified-Since</td> |
---|
| 1044 | <td class="left">http</td> |
---|
| 1045 | <td class="left">standard</td> |
---|
| 1046 | <td class="left"> <a href="#header.if-modified-since" id="rfc.xref.header.if-modified-since.1" title="If-Modified-Since">Section 7.3</a> |
---|
[253] | 1047 | </td> |
---|
| 1048 | </tr> |
---|
| 1049 | <tr> |
---|
[1099] | 1050 | <td class="left">If-None-Match</td> |
---|
| 1051 | <td class="left">http</td> |
---|
| 1052 | <td class="left">standard</td> |
---|
| 1053 | <td class="left"> <a href="#header.if-none-match" id="rfc.xref.header.if-none-match.3" title="If-None-Match">Section 7.4</a> |
---|
[253] | 1054 | </td> |
---|
| 1055 | </tr> |
---|
| 1056 | <tr> |
---|
[1099] | 1057 | <td class="left">If-Unmodified-Since</td> |
---|
| 1058 | <td class="left">http</td> |
---|
| 1059 | <td class="left">standard</td> |
---|
| 1060 | <td class="left"> <a href="#header.if-unmodified-since" id="rfc.xref.header.if-unmodified-since.1" title="If-Unmodified-Since">Section 7.5</a> |
---|
[253] | 1061 | </td> |
---|
| 1062 | </tr> |
---|
| 1063 | <tr> |
---|
[1099] | 1064 | <td class="left">Last-Modified</td> |
---|
| 1065 | <td class="left">http</td> |
---|
| 1066 | <td class="left">standard</td> |
---|
| 1067 | <td class="left"> <a href="#header.last-modified" id="rfc.xref.header.last-modified.1" title="Last-Modified">Section 7.6</a> |
---|
[253] | 1068 | </td> |
---|
| 1069 | </tr> |
---|
| 1070 | </tbody> |
---|
| 1071 | </table> |
---|
| 1072 | </div> |
---|
| 1073 | <p id="rfc.section.8.1.p.2">The change controller is: "IETF (iesg@ietf.org) - Internet Engineering Task Force".</p> |
---|
[205] | 1074 | <h1 id="rfc.section.9"><a href="#rfc.section.9">9.</a> <a id="security.considerations" href="#security.considerations">Security Considerations</a></h1> |
---|
[306] | 1075 | <p id="rfc.section.9.p.1">No additional security considerations have been identified beyond those applicable to HTTP in general <a href="#Part1" id="rfc.xref.Part1.7"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>. |
---|
[52] | 1076 | </p> |
---|
[205] | 1077 | <h1 id="rfc.section.10"><a href="#rfc.section.10">10.</a> <a id="ack" href="#ack">Acknowledgments</a></h1> |
---|
| 1078 | <h1 id="rfc.references"><a id="rfc.section.11" href="#rfc.section.11">11.</a> References |
---|
[52] | 1079 | </h1> |
---|
[205] | 1080 | <h2 id="rfc.references.1"><a href="#rfc.section.11.1" id="rfc.section.11.1">11.1</a> Normative References |
---|
[119] | 1081 | </h2> |
---|
[1099] | 1082 | <table> |
---|
[52] | 1083 | <tr> |
---|
| 1084 | <td class="reference"><b id="Part1">[Part1]</b></td> |
---|
[1099] | 1085 | <td class="top"><a href="mailto:fielding@gbiv.com" title="Day Software">Fielding, R., Ed.</a>, <a href="mailto:jg@laptop.org" title="One Laptop per Child">Gettys, J.</a>, <a href="mailto:JeffMogul@acm.org" title="Hewlett-Packard Company">Mogul, J.</a>, <a href="mailto:henrikn@microsoft.com" title="Microsoft Corporation">Frystyk, H.</a>, <a href="mailto:LMM@acm.org" title="Adobe Systems, Incorporated">Masinter, L.</a>, <a href="mailto:paulle@microsoft.com" title="Microsoft Corporation">Leach, P.</a>, <a href="mailto:timbl@w3.org" title="World Wide Web Consortium">Berners-Lee, T.</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-04">HTTP/1.1, part 1: URIs, Connections, and Message Parsing</a>”, Internet-Draft draft-ietf-httpbis-p1-messaging-04 (work in progress), August 2008. |
---|
[52] | 1086 | </td> |
---|
| 1087 | </tr> |
---|
| 1088 | <tr> |
---|
| 1089 | <td class="reference"><b id="Part5">[Part5]</b></td> |
---|
[1099] | 1090 | <td class="top"><a href="mailto:fielding@gbiv.com" title="Day Software">Fielding, R., Ed.</a>, <a href="mailto:jg@laptop.org" title="One Laptop per Child">Gettys, J.</a>, <a href="mailto:JeffMogul@acm.org" title="Hewlett-Packard Company">Mogul, J.</a>, <a href="mailto:henrikn@microsoft.com" title="Microsoft Corporation">Frystyk, H.</a>, <a href="mailto:LMM@acm.org" title="Adobe Systems, Incorporated">Masinter, L.</a>, <a href="mailto:paulle@microsoft.com" title="Microsoft Corporation">Leach, P.</a>, <a href="mailto:timbl@w3.org" title="World Wide Web Consortium">Berners-Lee, T.</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-04">HTTP/1.1, part 5: Range Requests and Partial Responses</a>”, Internet-Draft draft-ietf-httpbis-p5-range-04 (work in progress), August 2008. |
---|
[52] | 1091 | </td> |
---|
| 1092 | </tr> |
---|
| 1093 | <tr> |
---|
| 1094 | <td class="reference"><b id="Part6">[Part6]</b></td> |
---|
[1099] | 1095 | <td class="top"><a href="mailto:fielding@gbiv.com" title="Day Software">Fielding, R., Ed.</a>, <a href="mailto:jg@laptop.org" title="One Laptop per Child">Gettys, J.</a>, <a href="mailto:JeffMogul@acm.org" title="Hewlett-Packard Company">Mogul, J.</a>, <a href="mailto:henrikn@microsoft.com" title="Microsoft Corporation">Frystyk, H.</a>, <a href="mailto:LMM@acm.org" title="Adobe Systems, Incorporated">Masinter, L.</a>, <a href="mailto:paulle@microsoft.com" title="Microsoft Corporation">Leach, P.</a>, <a href="mailto:timbl@w3.org" title="World Wide Web Consortium">Berners-Lee, T.</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-p6-cache-04">HTTP/1.1, part 6: Caching</a>”, Internet-Draft draft-ietf-httpbis-p6-cache-04 (work in progress), August 2008. |
---|
[52] | 1096 | </td> |
---|
| 1097 | </tr> |
---|
| 1098 | <tr> |
---|
[119] | 1099 | <td class="reference"><b id="RFC2119">[RFC2119]</b></td> |
---|
[1099] | 1100 | <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] | 1101 | </td> |
---|
| 1102 | </tr> |
---|
[119] | 1103 | </table> |
---|
[205] | 1104 | <h2 id="rfc.references.2"><a href="#rfc.section.11.2" id="rfc.section.11.2">11.2</a> Informative References |
---|
[119] | 1105 | </h2> |
---|
[1099] | 1106 | <table> |
---|
[52] | 1107 | <tr> |
---|
| 1108 | <td class="reference"><b id="RFC2616">[RFC2616]</b></td> |
---|
[1099] | 1109 | <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] | 1110 | </td> |
---|
| 1111 | </tr> |
---|
[253] | 1112 | <tr> |
---|
| 1113 | <td class="reference"><b id="RFC3864">[RFC3864]</b></td> |
---|
[1099] | 1114 | <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] | 1115 | </td> |
---|
| 1116 | </tr> |
---|
[52] | 1117 | </table> |
---|
[1099] | 1118 | <div class="avoidbreak"> |
---|
| 1119 | <h1 id="rfc.authors"><a href="#rfc.authors">Authors' Addresses</a></h1> |
---|
| 1120 | <address class="vcard"><span class="vcardline"><span class="fn">Roy T. Fielding</span> |
---|
| 1121 | (editor) |
---|
| 1122 | <span class="n hidden"><span class="family-name">Fielding</span><span class="given-name">Roy T.</span></span></span><span class="org vcardline">Day Software</span><span class="adr"><span class="street-address vcardline">23 Corporate Plaza DR, Suite 280</span><span class="vcardline"><span class="locality">Newport Beach</span>, <span class="region">CA</span> <span class="postal-code">92660</span></span><span class="country-name vcardline">USA</span></span><span class="vcardline tel">Phone: <a href="tel:+1-949-706-5300"><span class="value">+1-949-706-5300</span></a></span><span class="vcardline tel"><span class="type">Fax</span>: <a href="fax:+1-949-706-5305"><span class="value">+1-949-706-5305</span></a></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> |
---|
| 1123 | <address class="vcard"><span class="vcardline"><span class="fn">Jim Gettys</span><span class="n hidden"><span class="family-name">Gettys</span><span class="given-name">Jim</span></span></span><span class="org vcardline">One Laptop per Child</span><span class="adr"><span class="street-address vcardline">21 Oak Knoll Road</span><span class="vcardline"><span class="locality">Carlisle</span>, <span class="region">MA</span> <span class="postal-code">01741</span></span><span class="country-name vcardline">USA</span></span><span class="vcardline">EMail: <a href="mailto:jg@laptop.org"><span class="email">jg@laptop.org</span></a></span><span class="vcardline">URI: <a href="http://www.laptop.org/" class="url">http://www.laptop.org/</a></span></address> |
---|
| 1124 | <address class="vcard"><span class="vcardline"><span class="fn">Jeffrey C. Mogul</span><span class="n hidden"><span class="family-name">Mogul</span><span class="given-name">Jeffrey C.</span></span></span><span class="org vcardline">Hewlett-Packard Company</span><span class="adr"><span class="street-address vcardline">HP Labs, Large Scale Systems Group</span><span class="street-address vcardline">1501 Page Mill Road, MS 1177</span><span class="vcardline"><span class="locality">Palo Alto</span>, <span class="region">CA</span> <span class="postal-code">94304</span></span><span class="country-name vcardline">USA</span></span><span class="vcardline">EMail: <a href="mailto:JeffMogul@acm.org"><span class="email">JeffMogul@acm.org</span></a></span></address> |
---|
| 1125 | <address class="vcard"><span class="vcardline"><span class="fn">Henrik Frystyk Nielsen</span><span class="n hidden"><span class="family-name">Frystyk</span></span></span><span class="org vcardline">Microsoft Corporation</span><span class="adr"><span class="street-address vcardline">1 Microsoft Way</span><span class="vcardline"><span class="locality">Redmond</span>, <span class="region">WA</span> <span class="postal-code">98052</span></span><span class="country-name vcardline">USA</span></span><span class="vcardline">EMail: <a href="mailto:henrikn@microsoft.com"><span class="email">henrikn@microsoft.com</span></a></span></address> |
---|
| 1126 | <address class="vcard"><span class="vcardline"><span class="fn">Larry Masinter</span><span class="n hidden"><span class="family-name">Masinter</span><span class="given-name">Larry</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:LMM@acm.org"><span class="email">LMM@acm.org</span></a></span><span class="vcardline">URI: <a href="http://larry.masinter.net/" class="url">http://larry.masinter.net/</a></span></address> |
---|
| 1127 | <address class="vcard"><span class="vcardline"><span class="fn">Paul J. Leach</span><span class="n hidden"><span class="family-name">Leach</span><span class="given-name">Paul J.</span></span></span><span class="org vcardline">Microsoft Corporation</span><span class="adr"><span class="street-address vcardline">1 Microsoft Way</span><span class="vcardline"><span class="locality">Redmond</span>, <span class="region">WA</span> <span class="postal-code">98052</span></span></span><span class="vcardline">EMail: <a href="mailto:paulle@microsoft.com"><span class="email">paulle@microsoft.com</span></a></span></address> |
---|
| 1128 | <address class="vcard"><span class="vcardline"><span class="fn">Tim Berners-Lee</span><span class="n hidden"><span class="family-name">Berners-Lee</span><span class="given-name">Tim</span></span></span><span class="org vcardline">World Wide Web Consortium</span><span class="adr"><span class="street-address vcardline">MIT Computer Science and Artificial Intelligence Laboratory</span><span class="street-address vcardline">The Stata Center, Building 32</span><span class="street-address vcardline">32 Vassar Street</span><span class="vcardline"><span class="locality">Cambridge</span>, <span class="region">MA</span> <span class="postal-code">02139</span></span><span class="country-name vcardline">USA</span></span><span class="vcardline">EMail: <a href="mailto:timbl@w3.org"><span class="email">timbl@w3.org</span></a></span><span class="vcardline">URI: <a href="http://www.w3.org/People/Berners-Lee/" class="url">http://www.w3.org/People/Berners-Lee/</a></span></address> |
---|
| 1129 | <address class="vcard"><span class="vcardline"><span class="fn">Yves Lafon</span> |
---|
| 1130 | (editor) |
---|
| 1131 | <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> |
---|
| 1132 | <address class="vcard"><span class="vcardline"><span class="fn">Julian F. Reschke</span> |
---|
| 1133 | (editor) |
---|
| 1134 | <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 tel">Phone: <a href="tel:+492512807760"><span class="value">+49 251 2807760</span></a></span><span class="vcardline tel"><span class="type">Fax</span>: <a href="fax:+492512807761"><span class="value">+49 251 2807761</span></a></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> |
---|
| 1135 | </div> |
---|
| 1136 | <h1 id="rfc.section.A" class="np"><a href="#rfc.section.A">A.</a> <a id="compatibility" href="#compatibility">Compatibility with Previous Versions</a></h1> |
---|
[99] | 1137 | <h2 id="rfc.section.A.1"><a href="#rfc.section.A.1">A.1</a> <a id="changes.from.rfc.2616" href="#changes.from.rfc.2616">Changes from RFC 2616</a></h2> |
---|
[253] | 1138 | <p id="rfc.section.A.1.p.1">Allow weak entity tags in all requests except range requests (Sections <a href="#weak.and.strong.validators" title="Weak and Strong Validators">5</a> and <a href="#header.if-none-match" id="rfc.xref.header.if-none-match.4" title="If-None-Match">7.4</a>). |
---|
[245] | 1139 | </p> |
---|
[252] | 1140 | <h1 id="rfc.section.B"><a href="#rfc.section.B">B.</a> <a id="change.log" href="#change.log">Change Log (to be removed by RFC Editor before publication)</a></h1> |
---|
[115] | 1141 | <h2 id="rfc.section.B.1"><a href="#rfc.section.B.1">B.1</a> Since RFC2616 |
---|
| 1142 | </h2> |
---|
| 1143 | <p id="rfc.section.B.1.p.1">Extracted relevant partitions from <a href="#RFC2616" id="rfc.xref.RFC2616.2"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2616]</cite></a>. |
---|
| 1144 | </p> |
---|
| 1145 | <h2 id="rfc.section.B.2"><a href="#rfc.section.B.2">B.2</a> Since draft-ietf-httpbis-p4-conditional-00 |
---|
| 1146 | </h2> |
---|
[152] | 1147 | <p id="rfc.section.B.2.p.1">Closed issues: </p> |
---|
[116] | 1148 | <ul> |
---|
[152] | 1149 | <li> <<a href="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/35">http://www3.tools.ietf.org/wg/httpbis/trac/ticket/35</a>>: "Normative and Informative references" |
---|
| 1150 | </li> |
---|
| 1151 | </ul> |
---|
| 1152 | <p id="rfc.section.B.2.p.2">Other changes: </p> |
---|
| 1153 | <ul> |
---|
[116] | 1154 | <li>Move definitions of 304 and 412 condition codes from Part2.</li> |
---|
| 1155 | </ul> |
---|
[170] | 1156 | <h2 id="rfc.section.B.3"><a href="#rfc.section.B.3">B.3</a> Since draft-ietf-httpbis-p4-conditional-01 |
---|
| 1157 | </h2> |
---|
[205] | 1158 | <p id="rfc.section.B.3.p.1">Ongoing work on ABNF conversion (<<a href="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/36">http://www3.tools.ietf.org/wg/httpbis/trac/ticket/36</a>>): |
---|
| 1159 | </p> |
---|
| 1160 | <ul> |
---|
| 1161 | <li>Add explicit references to BNF syntax and rules imported from other parts of the specification.</li> |
---|
| 1162 | </ul> |
---|
[252] | 1163 | <h2 id="rfc.section.B.4"><a href="#rfc.section.B.4">B.4</a> <a id="changes.since.02" href="#changes.since.02">Since draft-ietf-httpbis-p4-conditional-02</a></h2> |
---|
[245] | 1164 | <p id="rfc.section.B.4.p.1">Closed issues: </p> |
---|
| 1165 | <ul> |
---|
| 1166 | <li> <<a href="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/116">http://www3.tools.ietf.org/wg/httpbis/trac/ticket/116</a>>: "Weak ETags on non-GET requests" |
---|
| 1167 | </li> |
---|
| 1168 | </ul> |
---|
[253] | 1169 | <p id="rfc.section.B.4.p.2">Ongoing work on IANA Message Header Registration (<<a href="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/40">http://www3.tools.ietf.org/wg/httpbis/trac/ticket/40</a>>): |
---|
| 1170 | </p> |
---|
| 1171 | <ul> |
---|
| 1172 | <li>Reference RFC 3984, and update header registrations for headers defined in this document.</li> |
---|
| 1173 | </ul> |
---|
[267] | 1174 | <h2 id="rfc.section.B.5"><a href="#rfc.section.B.5">B.5</a> <a id="changes.since.03" href="#changes.since.03">Since draft-ietf-httpbis-p4-conditional-03</a></h2> |
---|
[298] | 1175 | <p id="rfc.section.B.5.p.1">Closed issues: </p> |
---|
| 1176 | <ul> |
---|
| 1177 | <li> <<a href="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/71">http://www3.tools.ietf.org/wg/httpbis/trac/ticket/71</a>>: "Examples for ETag matching" |
---|
| 1178 | </li> |
---|
[302] | 1179 | <li> <<a href="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/124">http://www3.tools.ietf.org/wg/httpbis/trac/ticket/124</a>>: "'entity value' undefined" |
---|
| 1180 | </li> |
---|
[306] | 1181 | <li> <<a href="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/126">http://www3.tools.ietf.org/wg/httpbis/trac/ticket/126</a>>: "bogus 2068 Date header reference" |
---|
| 1182 | </li> |
---|
[298] | 1183 | </ul> |
---|
[52] | 1184 | <h1 id="rfc.index"><a href="#rfc.index">Index</a></h1> |
---|
| 1185 | <p class="noprint"><a href="#rfc.index.3">3</a> <a href="#rfc.index.4">4</a> <a href="#rfc.index.E">E</a> <a href="#rfc.index.G">G</a> <a href="#rfc.index.H">H</a> <a href="#rfc.index.I">I</a> <a href="#rfc.index.L">L</a> <a href="#rfc.index.P">P</a> <a href="#rfc.index.R">R</a> <a href="#rfc.index.S">S</a> |
---|
| 1186 | </p> |
---|
| 1187 | <div class="print2col"> |
---|
| 1188 | <ul class="ind"> |
---|
[1099] | 1189 | <li><a id="rfc.index.3" href="#rfc.index.3"><b>3</b></a><ul> |
---|
| 1190 | <li>304 Not Modified (status code) <a href="#rfc.iref.3"><b>4.1</b></a></li> |
---|
[52] | 1191 | </ul> |
---|
| 1192 | </li> |
---|
[1099] | 1193 | <li><a id="rfc.index.4" href="#rfc.index.4"><b>4</b></a><ul> |
---|
| 1194 | <li>412 Precondition Failed (status code) <a href="#rfc.iref.4"><b>4.2</b></a></li> |
---|
[52] | 1195 | </ul> |
---|
| 1196 | </li> |
---|
[1099] | 1197 | <li><a id="rfc.index.E" href="#rfc.index.E"><b>E</b></a><ul> |
---|
| 1198 | <li>ETag header <a href="#rfc.xref.header.etag.1">3</a>, <a href="#rfc.iref.e.1"><b>7.1</b></a>, <a href="#rfc.xref.header.etag.2">8.1</a></li> |
---|
[52] | 1199 | </ul> |
---|
| 1200 | </li> |
---|
[1099] | 1201 | <li><a id="rfc.index.G" href="#rfc.index.G"><b>G</b></a><ul> |
---|
| 1202 | <li><tt>Grammar</tt> |
---|
| 1203 | <ul> |
---|
| 1204 | <li><tt>entity-tag</tt> <a href="#rfc.iref.g.1"><b>3</b></a></li> |
---|
| 1205 | <li><tt>ETag</tt> <a href="#rfc.iref.g.4"><b>7.1</b></a></li> |
---|
| 1206 | <li><tt>If-Match</tt> <a href="#rfc.iref.g.5"><b>7.2</b></a></li> |
---|
| 1207 | <li><tt>If-Modified-Since</tt> <a href="#rfc.iref.g.6"><b>7.3</b></a></li> |
---|
| 1208 | <li><tt>If-None-Match</tt> <a href="#rfc.iref.g.7"><b>7.4</b></a></li> |
---|
| 1209 | <li><tt>If-Unmodified-Since</tt> <a href="#rfc.iref.g.8"><b>7.5</b></a></li> |
---|
| 1210 | <li><tt>Last-Modified</tt> <a href="#rfc.iref.g.9"><b>7.6</b></a></li> |
---|
| 1211 | <li><tt>opaque-tag</tt> <a href="#rfc.iref.g.3"><b>3</b></a></li> |
---|
| 1212 | <li><tt>weak</tt> <a href="#rfc.iref.g.2"><b>3</b></a></li> |
---|
[52] | 1213 | </ul> |
---|
| 1214 | </li> |
---|
| 1215 | </ul> |
---|
| 1216 | </li> |
---|
[1099] | 1217 | <li><a id="rfc.index.H" href="#rfc.index.H"><b>H</b></a><ul> |
---|
| 1218 | <li>Headers |
---|
| 1219 | <ul> |
---|
| 1220 | <li>ETag <a href="#rfc.xref.header.etag.1">3</a>, <a href="#rfc.iref.h.1"><b>7.1</b></a>, <a href="#rfc.xref.header.etag.2">8.1</a></li> |
---|
| 1221 | <li>If-Match <a href="#rfc.xref.header.if-match.1">3</a>, <a href="#rfc.xref.header.if-match.2">7.1</a>, <a href="#rfc.iref.h.2"><b>7.2</b></a>, <a href="#rfc.xref.header.if-match.3">8.1</a></li> |
---|
| 1222 | <li>If-Modified-Since <a href="#rfc.iref.h.3"><b>7.3</b></a>, <a href="#rfc.xref.header.if-modified-since.1">8.1</a></li> |
---|
| 1223 | <li>If-None-Match <a href="#rfc.xref.header.if-none-match.1">3</a>, <a href="#rfc.xref.header.if-none-match.2">7.1</a>, <a href="#rfc.iref.h.4"><b>7.4</b></a>, <a href="#rfc.xref.header.if-none-match.3">8.1</a>, <a href="#rfc.xref.header.if-none-match.4">A.1</a></li> |
---|
| 1224 | <li>If-Unmodified-Since <a href="#rfc.iref.h.5"><b>7.5</b></a>, <a href="#rfc.xref.header.if-unmodified-since.1">8.1</a></li> |
---|
| 1225 | <li>Last-Modified <a href="#rfc.iref.h.6"><b>7.6</b></a>, <a href="#rfc.xref.header.last-modified.1">8.1</a></li> |
---|
[52] | 1226 | </ul> |
---|
| 1227 | </li> |
---|
| 1228 | </ul> |
---|
| 1229 | </li> |
---|
[1099] | 1230 | <li><a id="rfc.index.I" href="#rfc.index.I"><b>I</b></a><ul> |
---|
| 1231 | <li>If-Match header <a href="#rfc.xref.header.if-match.1">3</a>, <a href="#rfc.xref.header.if-match.2">7.1</a>, <a href="#rfc.iref.i.1"><b>7.2</b></a>, <a href="#rfc.xref.header.if-match.3">8.1</a></li> |
---|
| 1232 | <li>If-Modified-Since header <a href="#rfc.iref.i.2"><b>7.3</b></a>, <a href="#rfc.xref.header.if-modified-since.1">8.1</a></li> |
---|
| 1233 | <li>If-None-Match header <a href="#rfc.xref.header.if-none-match.1">3</a>, <a href="#rfc.xref.header.if-none-match.2">7.1</a>, <a href="#rfc.iref.i.3"><b>7.4</b></a>, <a href="#rfc.xref.header.if-none-match.3">8.1</a>, <a href="#rfc.xref.header.if-none-match.4">A.1</a></li> |
---|
| 1234 | <li>If-Unmodified-Since header <a href="#rfc.iref.i.4"><b>7.5</b></a>, <a href="#rfc.xref.header.if-unmodified-since.1">8.1</a></li> |
---|
[52] | 1235 | </ul> |
---|
| 1236 | </li> |
---|
[1099] | 1237 | <li><a id="rfc.index.L" href="#rfc.index.L"><b>L</b></a><ul> |
---|
| 1238 | <li>Last-Modified header <a href="#rfc.iref.l.1"><b>7.6</b></a>, <a href="#rfc.xref.header.last-modified.1">8.1</a></li> |
---|
[52] | 1239 | </ul> |
---|
| 1240 | </li> |
---|
[1099] | 1241 | <li><a id="rfc.index.P" href="#rfc.index.P"><b>P</b></a><ul> |
---|
| 1242 | <li><em>Part1</em> <a href="#rfc.xref.Part1.1">2</a>, <a href="#rfc.xref.Part1.2">2</a>, <a href="#rfc.xref.Part1.3">2</a>, <a href="#rfc.xref.Part1.4">2</a>, <a href="#rfc.xref.Part1.5">4.1</a>, <a href="#rfc.xref.Part1.6">4.1</a>, <a href="#rfc.xref.Part1.7">9</a>, <a href="#Part1"><b>11.1</b></a><ul> |
---|
| 1243 | <li><em>Section 2.1</em> <a href="#rfc.xref.Part1.1">2</a></li> |
---|
| 1244 | <li><em>Section 2.2</em> <a href="#rfc.xref.Part1.2">2</a>, <a href="#rfc.xref.Part1.3">2</a></li> |
---|
| 1245 | <li><em>Section 3.3.1</em> <a href="#rfc.xref.Part1.4">2</a></li> |
---|
| 1246 | <li><em>Section 8.3.1</em> <a href="#rfc.xref.Part1.5">4.1</a></li> |
---|
| 1247 | <li><em>Section 8.3</em> <a href="#rfc.xref.Part1.6">4.1</a></li> |
---|
[52] | 1248 | </ul> |
---|
| 1249 | </li> |
---|
[1099] | 1250 | <li><em>Part5</em> <a href="#rfc.xref.Part5.1">3</a>, <a href="#rfc.xref.Part5.2">5</a>, <a href="#rfc.xref.Part5.3">5</a>, <a href="#rfc.xref.Part5.4">7.1</a>, <a href="#rfc.xref.Part5.5">7.3</a>, <a href="#Part5"><b>11.1</b></a><ul> |
---|
| 1251 | <li><em>Section 6.3</em> <a href="#rfc.xref.Part5.1">3</a>, <a href="#rfc.xref.Part5.4">7.1</a></li> |
---|
| 1252 | <li><em>Section 6.4</em> <a href="#rfc.xref.Part5.5">7.3</a></li> |
---|
[52] | 1253 | </ul> |
---|
| 1254 | </li> |
---|
[1099] | 1255 | <li><em>Part6</em> <a href="#rfc.xref.Part6.1">1</a>, <a href="#rfc.xref.Part6.2">7.2</a>, <a href="#rfc.xref.Part6.3">7.4</a>, <a href="#Part6"><b>11.1</b></a><ul> |
---|
| 1256 | <li><em>Section 16.5</em> <a href="#rfc.xref.Part6.2">7.2</a>, <a href="#rfc.xref.Part6.3">7.4</a></li> |
---|
[52] | 1257 | </ul> |
---|
| 1258 | </li> |
---|
| 1259 | </ul> |
---|
| 1260 | </li> |
---|
[1099] | 1261 | <li><a id="rfc.index.R" href="#rfc.index.R"><b>R</b></a><ul> |
---|
| 1262 | <li><em>RFC2119</em> <a href="#rfc.xref.RFC2119.1">1.1</a>, <a href="#RFC2119"><b>11.1</b></a></li> |
---|
| 1263 | <li><em>RFC2616</em> <a href="#rfc.xref.RFC2616.1">1</a>, <a href="#RFC2616"><b>11.2</b></a>, <a href="#rfc.xref.RFC2616.2">B.1</a></li> |
---|
| 1264 | <li><em>RFC3864</em> <a href="#rfc.xref.RFC3864.1">8.1</a>, <a href="#RFC3864"><b>11.2</b></a></li> |
---|
[52] | 1265 | </ul> |
---|
| 1266 | </li> |
---|
[1099] | 1267 | <li><a id="rfc.index.S" href="#rfc.index.S"><b>S</b></a><ul> |
---|
| 1268 | <li>Status Codes |
---|
| 1269 | <ul> |
---|
| 1270 | <li>304 Not Modified <a href="#rfc.iref.s.1"><b>4.1</b></a></li> |
---|
| 1271 | <li>412 Precondition Failed <a href="#rfc.iref.s.2"><b>4.2</b></a></li> |
---|
[52] | 1272 | </ul> |
---|
| 1273 | </li> |
---|
| 1274 | </ul> |
---|
| 1275 | </li> |
---|
| 1276 | </ul> |
---|
| 1277 | </div> |
---|
[1099] | 1278 | <h1><a id="rfc.copyright" href="#rfc.copyright">Full Copyright Statement</a></h1> |
---|
| 1279 | <p>Copyright © The IETF Trust (2008).</p> |
---|
| 1280 | <p>This document is subject to the rights, licenses and restrictions contained in BCP 78, and except as set forth therein, the |
---|
| 1281 | authors retain all their rights. |
---|
| 1282 | </p> |
---|
| 1283 | <p>This document and the information contained herein are provided on an “AS IS” basis and THE CONTRIBUTOR, THE ORGANIZATION |
---|
| 1284 | HE/SHE REPRESENTS OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST AND THE INTERNET ENGINEERING TASK FORCE |
---|
| 1285 | DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN |
---|
| 1286 | WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. |
---|
| 1287 | </p> |
---|
| 1288 | <h1><a id="rfc.ipr" href="#rfc.ipr">Intellectual Property</a></h1> |
---|
| 1289 | <p>The IETF takes no position regarding the validity or scope of any Intellectual Property Rights or other rights that might |
---|
| 1290 | be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any |
---|
| 1291 | license under such rights might or might not be available; nor does it represent that it has made any independent effort to |
---|
| 1292 | identify any such rights. Information on the procedures with respect to rights in RFC documents can be found in BCP 78 and |
---|
| 1293 | BCP 79. |
---|
| 1294 | </p> |
---|
| 1295 | <p>Copies of IPR disclosures made to the IETF Secretariat and any assurances of licenses to be made available, or the result |
---|
| 1296 | of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementers or users |
---|
| 1297 | of this specification can be obtained from the IETF on-line IPR repository at <a href="http://www.ietf.org/ipr">http://www.ietf.org/ipr</a>. |
---|
| 1298 | </p> |
---|
| 1299 | <p>The IETF invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary |
---|
| 1300 | rights that may cover technology that may be required to implement this standard. Please address the information to the IETF |
---|
| 1301 | at <a href="mailto:ietf-ipr@ietf.org">ietf-ipr@ietf.org</a>. |
---|
| 1302 | </p> |
---|
[52] | 1303 | </body> |
---|
| 1304 | </html> |
---|