[52] | 1 | <!DOCTYPE html |
---|
| 2 | PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
---|
| 3 | <html lang="en"> |
---|
[573] | 4 | <head profile="http://www.w3.org/2006/03/hcard http://dublincore.org/documents/2008/08/04/dc-html/"> |
---|
[52] | 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
---|
| 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 | } |
---|
[563] | 32 | div.note { |
---|
| 33 | margin-left: 2em; |
---|
| 34 | } |
---|
[52] | 35 | dd { |
---|
| 36 | margin-right: 2em; |
---|
| 37 | } |
---|
| 38 | dl { |
---|
| 39 | margin-left: 2em; |
---|
| 40 | } |
---|
| 41 | |
---|
[729] | 42 | ul.empty { |
---|
| 43 | list-style-type: none; |
---|
| 44 | } |
---|
| 45 | ul.empty li { |
---|
[52] | 46 | margin-top: .5em; |
---|
| 47 | } |
---|
| 48 | dl p { |
---|
| 49 | margin-left: 0em; |
---|
| 50 | } |
---|
| 51 | dt { |
---|
| 52 | margin-top: .5em; |
---|
| 53 | } |
---|
| 54 | h1 { |
---|
| 55 | font-size: 14pt; |
---|
| 56 | line-height: 21pt; |
---|
| 57 | page-break-after: avoid; |
---|
| 58 | } |
---|
| 59 | h1.np { |
---|
| 60 | page-break-before: always; |
---|
| 61 | } |
---|
| 62 | h1 a { |
---|
| 63 | color: #333333; |
---|
| 64 | } |
---|
| 65 | h2 { |
---|
| 66 | font-size: 12pt; |
---|
| 67 | line-height: 15pt; |
---|
| 68 | page-break-after: avoid; |
---|
| 69 | } |
---|
[446] | 70 | h3, h4, h5, h6 { |
---|
[52] | 71 | font-size: 10pt; |
---|
| 72 | page-break-after: avoid; |
---|
| 73 | } |
---|
[446] | 74 | h2 a, h3 a, h4 a, h5 a, h6 a { |
---|
[52] | 75 | color: black; |
---|
| 76 | } |
---|
| 77 | img { |
---|
| 78 | margin-left: 3em; |
---|
| 79 | } |
---|
| 80 | li { |
---|
| 81 | margin-left: 2em; |
---|
| 82 | margin-right: 2em; |
---|
| 83 | } |
---|
| 84 | ol { |
---|
| 85 | margin-left: 2em; |
---|
| 86 | margin-right: 2em; |
---|
| 87 | } |
---|
| 88 | ol p { |
---|
| 89 | margin-left: 0em; |
---|
| 90 | } |
---|
| 91 | p { |
---|
| 92 | margin-left: 2em; |
---|
| 93 | margin-right: 2em; |
---|
| 94 | } |
---|
| 95 | pre { |
---|
| 96 | margin-left: 3em; |
---|
| 97 | background-color: lightyellow; |
---|
| 98 | padding: .25em; |
---|
| 99 | } |
---|
| 100 | pre.text2 { |
---|
| 101 | border-style: dotted; |
---|
| 102 | border-width: 1px; |
---|
| 103 | background-color: #f0f0f0; |
---|
| 104 | width: 69em; |
---|
| 105 | } |
---|
| 106 | pre.inline { |
---|
| 107 | background-color: white; |
---|
| 108 | padding: 0em; |
---|
| 109 | } |
---|
| 110 | pre.text { |
---|
| 111 | border-style: dotted; |
---|
| 112 | border-width: 1px; |
---|
| 113 | background-color: #f8f8f8; |
---|
| 114 | width: 69em; |
---|
| 115 | } |
---|
| 116 | pre.drawing { |
---|
| 117 | border-style: solid; |
---|
| 118 | border-width: 1px; |
---|
| 119 | background-color: #f8f8f8; |
---|
| 120 | padding: 2em; |
---|
| 121 | } |
---|
| 122 | table { |
---|
| 123 | margin-left: 2em; |
---|
| 124 | } |
---|
[253] | 125 | table.tt { |
---|
| 126 | vertical-align: top; |
---|
| 127 | } |
---|
| 128 | table.full { |
---|
| 129 | border-style: outset; |
---|
| 130 | border-width: 1px; |
---|
| 131 | } |
---|
| 132 | table.headers { |
---|
| 133 | border-style: outset; |
---|
| 134 | border-width: 1px; |
---|
| 135 | } |
---|
| 136 | table.tt td { |
---|
| 137 | vertical-align: top; |
---|
| 138 | } |
---|
| 139 | table.full td { |
---|
| 140 | border-style: inset; |
---|
| 141 | border-width: 1px; |
---|
| 142 | } |
---|
| 143 | table.tt th { |
---|
| 144 | vertical-align: top; |
---|
| 145 | } |
---|
| 146 | table.full th { |
---|
| 147 | border-style: inset; |
---|
| 148 | border-width: 1px; |
---|
| 149 | } |
---|
| 150 | table.headers th { |
---|
| 151 | border-style: none none inset none; |
---|
| 152 | border-width: 1px; |
---|
| 153 | } |
---|
[675] | 154 | table.left { |
---|
| 155 | margin-right: auto; |
---|
| 156 | } |
---|
| 157 | table.right { |
---|
| 158 | margin-left: auto; |
---|
| 159 | } |
---|
| 160 | table.center { |
---|
| 161 | margin-left: auto; |
---|
| 162 | margin-right: auto; |
---|
| 163 | } |
---|
[454] | 164 | caption { |
---|
| 165 | caption-side: bottom; |
---|
| 166 | font-weight: bold; |
---|
| 167 | font-size: 9pt; |
---|
| 168 | margin-top: .5em; |
---|
| 169 | } |
---|
| 170 | |
---|
[52] | 171 | table.header { |
---|
[729] | 172 | border-spacing: 1px; |
---|
[52] | 173 | width: 95%; |
---|
| 174 | font-size: 10pt; |
---|
| 175 | color: white; |
---|
| 176 | } |
---|
| 177 | td.top { |
---|
| 178 | vertical-align: top; |
---|
| 179 | } |
---|
| 180 | td.topnowrap { |
---|
| 181 | vertical-align: top; |
---|
| 182 | white-space: nowrap; |
---|
| 183 | } |
---|
[729] | 184 | table.header td { |
---|
[52] | 185 | background-color: gray; |
---|
| 186 | width: 50%; |
---|
| 187 | } |
---|
[729] | 188 | table.header a { |
---|
[227] | 189 | color: white; |
---|
| 190 | } |
---|
[52] | 191 | td.reference { |
---|
| 192 | vertical-align: top; |
---|
| 193 | white-space: nowrap; |
---|
| 194 | padding-right: 1em; |
---|
| 195 | } |
---|
| 196 | thead { |
---|
| 197 | display:table-header-group; |
---|
| 198 | } |
---|
[1072] | 199 | ul.toc, ul.toc ul { |
---|
[52] | 200 | list-style: none; |
---|
| 201 | margin-left: 1.5em; |
---|
| 202 | margin-right: 0em; |
---|
| 203 | padding-left: 0em; |
---|
| 204 | } |
---|
[1072] | 205 | ul.toc li { |
---|
[52] | 206 | line-height: 150%; |
---|
| 207 | font-weight: bold; |
---|
| 208 | font-size: 10pt; |
---|
| 209 | margin-left: 0em; |
---|
| 210 | margin-right: 0em; |
---|
| 211 | } |
---|
[1072] | 212 | ul.toc li li { |
---|
[52] | 213 | line-height: normal; |
---|
| 214 | font-weight: normal; |
---|
| 215 | font-size: 9pt; |
---|
| 216 | margin-left: 0em; |
---|
| 217 | margin-right: 0em; |
---|
| 218 | } |
---|
[1072] | 219 | li.excluded { |
---|
[52] | 220 | font-size: 0pt; |
---|
| 221 | } |
---|
| 222 | ul p { |
---|
| 223 | margin-left: 0em; |
---|
| 224 | } |
---|
[1095] | 225 | ul.ind, ul.ind ul { |
---|
[52] | 226 | list-style: none; |
---|
| 227 | margin-left: 1.5em; |
---|
| 228 | margin-right: 0em; |
---|
| 229 | padding-left: 0em; |
---|
[440] | 230 | page-break-before: avoid; |
---|
[52] | 231 | } |
---|
[1072] | 232 | ul.ind li { |
---|
[52] | 233 | font-weight: bold; |
---|
| 234 | line-height: 200%; |
---|
| 235 | margin-left: 0em; |
---|
| 236 | margin-right: 0em; |
---|
| 237 | } |
---|
[1072] | 238 | ul.ind li li { |
---|
[52] | 239 | font-weight: normal; |
---|
| 240 | line-height: 150%; |
---|
| 241 | margin-left: 0em; |
---|
| 242 | margin-right: 0em; |
---|
| 243 | } |
---|
[662] | 244 | .avoidbreak { |
---|
| 245 | page-break-inside: avoid; |
---|
| 246 | } |
---|
[52] | 247 | .bcp14 { |
---|
| 248 | font-style: normal; |
---|
| 249 | text-transform: lowercase; |
---|
| 250 | font-variant: small-caps; |
---|
| 251 | } |
---|
| 252 | .comment { |
---|
| 253 | background-color: yellow; |
---|
| 254 | } |
---|
| 255 | .center { |
---|
| 256 | text-align: center; |
---|
| 257 | } |
---|
| 258 | .error { |
---|
| 259 | color: red; |
---|
| 260 | font-style: italic; |
---|
| 261 | font-weight: bold; |
---|
| 262 | } |
---|
| 263 | .figure { |
---|
| 264 | font-weight: bold; |
---|
| 265 | text-align: center; |
---|
| 266 | font-size: 9pt; |
---|
| 267 | } |
---|
| 268 | .filename { |
---|
| 269 | color: #333333; |
---|
| 270 | font-weight: bold; |
---|
| 271 | font-size: 12pt; |
---|
| 272 | line-height: 21pt; |
---|
| 273 | text-align: center; |
---|
| 274 | } |
---|
| 275 | .fn { |
---|
| 276 | font-weight: bold; |
---|
| 277 | } |
---|
| 278 | .hidden { |
---|
| 279 | display: none; |
---|
| 280 | } |
---|
| 281 | .left { |
---|
| 282 | text-align: left; |
---|
| 283 | } |
---|
| 284 | .right { |
---|
| 285 | text-align: right; |
---|
| 286 | } |
---|
| 287 | .title { |
---|
| 288 | color: #990000; |
---|
| 289 | font-size: 18pt; |
---|
| 290 | line-height: 18pt; |
---|
| 291 | font-weight: bold; |
---|
| 292 | text-align: center; |
---|
| 293 | margin-top: 36pt; |
---|
| 294 | } |
---|
| 295 | .vcardline { |
---|
| 296 | display: block; |
---|
| 297 | } |
---|
| 298 | .warning { |
---|
| 299 | font-size: 14pt; |
---|
| 300 | background-color: yellow; |
---|
| 301 | } |
---|
| 302 | |
---|
| 303 | |
---|
| 304 | @media print { |
---|
| 305 | .noprint { |
---|
| 306 | display: none; |
---|
| 307 | } |
---|
| 308 | |
---|
| 309 | a { |
---|
| 310 | color: black; |
---|
| 311 | text-decoration: none; |
---|
| 312 | } |
---|
| 313 | |
---|
| 314 | table.header { |
---|
| 315 | width: 90%; |
---|
| 316 | } |
---|
| 317 | |
---|
| 318 | td.header { |
---|
| 319 | width: 50%; |
---|
| 320 | color: black; |
---|
| 321 | background-color: white; |
---|
| 322 | vertical-align: top; |
---|
| 323 | font-size: 12pt; |
---|
| 324 | } |
---|
| 325 | |
---|
| 326 | ul.toc a::after { |
---|
| 327 | content: leader('.') target-counter(attr(href), page); |
---|
| 328 | } |
---|
| 329 | |
---|
[1072] | 330 | ul.ind li li a { |
---|
[52] | 331 | content: target-counter(attr(href), page); |
---|
| 332 | } |
---|
| 333 | |
---|
| 334 | .print2col { |
---|
| 335 | column-count: 2; |
---|
| 336 | -moz-column-count: 2; |
---|
| 337 | column-fill: auto; |
---|
| 338 | } |
---|
| 339 | } |
---|
| 340 | |
---|
| 341 | @page { |
---|
| 342 | @top-left { |
---|
[754] | 343 | content: "Internet-Draft"; |
---|
[52] | 344 | } |
---|
| 345 | @top-right { |
---|
[1103] | 346 | content: "February 2011"; |
---|
[52] | 347 | } |
---|
| 348 | @top-center { |
---|
[120] | 349 | content: "HTTP/1.1, Part 4"; |
---|
[52] | 350 | } |
---|
| 351 | @bottom-left { |
---|
| 352 | content: "Fielding, et al."; |
---|
| 353 | } |
---|
| 354 | @bottom-center { |
---|
[1120] | 355 | content: "Expires August 21, 2011"; |
---|
[52] | 356 | } |
---|
| 357 | @bottom-right { |
---|
| 358 | content: "[Page " counter(page) "]"; |
---|
| 359 | } |
---|
| 360 | } |
---|
| 361 | |
---|
| 362 | @page:first { |
---|
| 363 | @top-left { |
---|
| 364 | content: normal; |
---|
| 365 | } |
---|
| 366 | @top-right { |
---|
| 367 | content: normal; |
---|
| 368 | } |
---|
| 369 | @top-center { |
---|
| 370 | content: normal; |
---|
| 371 | } |
---|
| 372 | } |
---|
| 373 | </style><link rel="Contents" href="#rfc.toc"> |
---|
| 374 | <link rel="Author" href="#rfc.authors"> |
---|
[754] | 375 | <link rel="Copyright" href="#rfc.copyrightnotice"> |
---|
[52] | 376 | <link rel="Index" href="#rfc.index"> |
---|
| 377 | <link rel="Chapter" title="1 Introduction" href="#rfc.section.1"> |
---|
[875] | 378 | <link rel="Chapter" title="2 Entity-Tags" href="#rfc.section.2"> |
---|
[424] | 379 | <link rel="Chapter" title="3 Status Code Definitions" href="#rfc.section.3"> |
---|
| 380 | <link rel="Chapter" title="4 Weak and Strong Validators" href="#rfc.section.4"> |
---|
[875] | 381 | <link rel="Chapter" title="5 Rules for When to Use Entity-tags and Last-Modified Dates" href="#rfc.section.5"> |
---|
[424] | 382 | <link rel="Chapter" title="6 Header Field Definitions" href="#rfc.section.6"> |
---|
| 383 | <link rel="Chapter" title="7 IANA Considerations" href="#rfc.section.7"> |
---|
| 384 | <link rel="Chapter" title="8 Security Considerations" href="#rfc.section.8"> |
---|
| 385 | <link rel="Chapter" title="9 Acknowledgments" href="#rfc.section.9"> |
---|
| 386 | <link rel="Chapter" href="#rfc.section.10" title="10 References"> |
---|
[912] | 387 | <link rel="Appendix" title="A Changes from RFC 2616" href="#rfc.section.A"> |
---|
[421] | 388 | <link rel="Appendix" title="B Collected ABNF" href="#rfc.section.B"> |
---|
| 389 | <link rel="Appendix" title="C Change Log (to be removed by RFC Editor before publication)" href="#rfc.section.C"> |
---|
[1103] | 390 | <meta name="generator" content="http://greenbytes.de/tech/webdav/rfc2629.xslt, Revision 1.540, 2011-01-10 09:27:20, XSLT vendor: SAXON 8.9 from Saxonica http://www.saxonica.com/"> |
---|
[754] | 391 | <link rel="schema.dct" href="http://purl.org/dc/terms/"> |
---|
| 392 | <meta name="dct.creator" content="Fielding, R."> |
---|
| 393 | <meta name="dct.creator" content="Gettys, J."> |
---|
| 394 | <meta name="dct.creator" content="Mogul, J."> |
---|
| 395 | <meta name="dct.creator" content="Frystyk, H."> |
---|
| 396 | <meta name="dct.creator" content="Masinter, L."> |
---|
| 397 | <meta name="dct.creator" content="Leach, P."> |
---|
| 398 | <meta name="dct.creator" content="Berners-Lee, T."> |
---|
| 399 | <meta name="dct.creator" content="Lafon, Y."> |
---|
| 400 | <meta name="dct.creator" content="Reschke, J. F."> |
---|
| 401 | <meta name="dct.identifier" content="urn:ietf:id:draft-ietf-httpbis-p4-conditional-latest"> |
---|
[1120] | 402 | <meta name="dct.issued" scheme="ISO8601" content="2011-02-17"> |
---|
[754] | 403 | <meta name="dct.replaces" content="urn:ietf:rfc:2616"> |
---|
| 404 | <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."> |
---|
[689] | 405 | <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] | 406 | </head> |
---|
| 407 | <body> |
---|
[729] | 408 | <table class="header"> |
---|
| 409 | <tbody> |
---|
| 410 | <tr> |
---|
| 411 | <td class="left">HTTPbis Working Group</td> |
---|
| 412 | <td class="right">R. Fielding, Editor</td> |
---|
| 413 | </tr> |
---|
| 414 | <tr> |
---|
[754] | 415 | <td class="left">Internet-Draft</td> |
---|
[1106] | 416 | <td class="right">Adobe</td> |
---|
[729] | 417 | </tr> |
---|
| 418 | <tr> |
---|
[741] | 419 | <td class="left">Obsoletes: <a href="http://tools.ietf.org/html/rfc2616">2616</a> (if approved) |
---|
[729] | 420 | </td> |
---|
| 421 | <td class="right">J. Gettys</td> |
---|
| 422 | </tr> |
---|
| 423 | <tr> |
---|
[741] | 424 | <td class="left">Intended status: Standards Track</td> |
---|
[844] | 425 | <td class="right">Alcatel-Lucent</td> |
---|
[729] | 426 | </tr> |
---|
| 427 | <tr> |
---|
[1120] | 428 | <td class="left">Expires: August 21, 2011</td> |
---|
[729] | 429 | <td class="right">J. Mogul</td> |
---|
| 430 | </tr> |
---|
| 431 | <tr> |
---|
[741] | 432 | <td class="left"></td> |
---|
[729] | 433 | <td class="right">HP</td> |
---|
| 434 | </tr> |
---|
| 435 | <tr> |
---|
| 436 | <td class="left"></td> |
---|
| 437 | <td class="right">H. Frystyk</td> |
---|
| 438 | </tr> |
---|
| 439 | <tr> |
---|
| 440 | <td class="left"></td> |
---|
| 441 | <td class="right">Microsoft</td> |
---|
| 442 | </tr> |
---|
| 443 | <tr> |
---|
| 444 | <td class="left"></td> |
---|
| 445 | <td class="right">L. Masinter</td> |
---|
| 446 | </tr> |
---|
| 447 | <tr> |
---|
| 448 | <td class="left"></td> |
---|
[1106] | 449 | <td class="right">Adobe</td> |
---|
[729] | 450 | </tr> |
---|
| 451 | <tr> |
---|
| 452 | <td class="left"></td> |
---|
| 453 | <td class="right">P. Leach</td> |
---|
| 454 | </tr> |
---|
| 455 | <tr> |
---|
| 456 | <td class="left"></td> |
---|
| 457 | <td class="right">Microsoft</td> |
---|
| 458 | </tr> |
---|
| 459 | <tr> |
---|
| 460 | <td class="left"></td> |
---|
| 461 | <td class="right">T. Berners-Lee</td> |
---|
| 462 | </tr> |
---|
| 463 | <tr> |
---|
| 464 | <td class="left"></td> |
---|
| 465 | <td class="right">W3C/MIT</td> |
---|
| 466 | </tr> |
---|
| 467 | <tr> |
---|
| 468 | <td class="left"></td> |
---|
| 469 | <td class="right">Y. Lafon, Editor</td> |
---|
| 470 | </tr> |
---|
| 471 | <tr> |
---|
| 472 | <td class="left"></td> |
---|
| 473 | <td class="right">W3C</td> |
---|
| 474 | </tr> |
---|
| 475 | <tr> |
---|
| 476 | <td class="left"></td> |
---|
[832] | 477 | <td class="right">J. Reschke, Editor</td> |
---|
[729] | 478 | </tr> |
---|
| 479 | <tr> |
---|
| 480 | <td class="left"></td> |
---|
| 481 | <td class="right">greenbytes</td> |
---|
| 482 | </tr> |
---|
| 483 | <tr> |
---|
| 484 | <td class="left"></td> |
---|
[1120] | 485 | <td class="right">February 17, 2011</td> |
---|
[729] | 486 | </tr> |
---|
| 487 | </tbody> |
---|
[52] | 488 | </table> |
---|
| 489 | <p class="title">HTTP/1.1, part 4: Conditional Requests<br><span class="filename">draft-ietf-httpbis-p4-conditional-latest</span></p> |
---|
[723] | 490 | <h1 id="rfc.abstract"><a href="#rfc.abstract">Abstract</a></h1> |
---|
| 491 | <p>The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypermedia information |
---|
| 492 | systems. HTTP has been in use by the World Wide Web global information initiative since 1990. This document is Part 4 of the |
---|
| 493 | seven-part specification that defines the protocol referred to as "HTTP/1.1" and, taken together, obsoletes RFC 2616. Part |
---|
| 494 | 4 defines request header fields for indicating conditional requests and the rules for constructing responses to those requests. |
---|
| 495 | </p> |
---|
| 496 | <h1 id="rfc.note.1"><a href="#rfc.note.1">Editorial Note (To be removed by RFC Editor)</a></h1> |
---|
| 497 | <p>Discussion of this draft should take place on the HTTPBIS working group mailing list (ietf-http-wg@w3.org). The current issues |
---|
[848] | 498 | list is at <<a href="http://tools.ietf.org/wg/httpbis/trac/report/3">http://tools.ietf.org/wg/httpbis/trac/report/3</a>> and related documents (including fancy diffs) can be found at <<a href="http://tools.ietf.org/wg/httpbis/">http://tools.ietf.org/wg/httpbis/</a>>. |
---|
[723] | 499 | </p> |
---|
[1052] | 500 | <p>The changes in this draft are summarized in <a href="#changes.since.12" title="Since draft-ietf-httpbis-p4-conditional-12">Appendix C.14</a>. |
---|
[723] | 501 | </p> |
---|
[799] | 502 | <h1><a id="rfc.status" href="#rfc.status">Status of This Memo</a></h1> |
---|
| 503 | <p>This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.</p> |
---|
| 504 | <p>Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute |
---|
| 505 | working documents as Internet-Drafts. The list of current Internet-Drafts is at <a href="http://datatracker.ietf.org/drafts/current/">http://datatracker.ietf.org/drafts/current/</a>. |
---|
[52] | 506 | </p> |
---|
| 507 | <p>Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other |
---|
| 508 | documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as “work |
---|
| 509 | in progress”. |
---|
| 510 | </p> |
---|
[1120] | 511 | <p>This Internet-Draft will expire on August 21, 2011.</p> |
---|
[446] | 512 | <h1><a id="rfc.copyrightnotice" href="#rfc.copyrightnotice">Copyright Notice</a></h1> |
---|
[1099] | 513 | <p>Copyright © 2011 IETF Trust and the persons identified as the document authors. All rights reserved.</p> |
---|
[723] | 514 | <p>This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights |
---|
| 515 | and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License |
---|
[799] | 516 | text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified |
---|
| 517 | BSD License. |
---|
[446] | 518 | </p> |
---|
[723] | 519 | <p>This document may contain material from IETF Documents or IETF Contributions published or made publicly available before November |
---|
| 520 | 10, 2008. The person(s) controlling the copyright in some of this material may not have granted the IETF Trust the right to |
---|
| 521 | allow modifications of such material outside the IETF Standards Process. Without obtaining an adequate license from the person(s) |
---|
| 522 | controlling the copyright in such materials, this document may not be modified outside the IETF Standards Process, and derivative |
---|
| 523 | works of it may not be created outside the IETF Standards Process, except to format it for publication as an RFC or to translate |
---|
| 524 | it into languages other than English. |
---|
| 525 | </p> |
---|
[52] | 526 | <hr class="noprint"> |
---|
| 527 | <h1 class="np" id="rfc.toc"><a href="#rfc.toc">Table of Contents</a></h1> |
---|
| 528 | <ul class="toc"> |
---|
[1072] | 529 | <li>1. <a href="#introduction">Introduction</a><ul> |
---|
| 530 | <li>1.1 <a href="#intro.requirements">Requirements</a></li> |
---|
| 531 | <li>1.2 <a href="#notation">Syntax Notation</a><ul> |
---|
| 532 | <li>1.2.1 <a href="#core.rules">Core Rules</a></li> |
---|
| 533 | <li>1.2.2 <a href="#abnf.dependencies">ABNF Rules defined in other Parts of the Specification</a></li> |
---|
[424] | 534 | </ul> |
---|
| 535 | </li> |
---|
[96] | 536 | </ul> |
---|
| 537 | </li> |
---|
[1072] | 538 | <li>2. <a href="#entity.tags">Entity-Tags</a><ul> |
---|
| 539 | <li>2.1 <a href="#example.entity.tag.vs.conneg">Example: Entity-tags varying on Content-Negotiated Resources</a></li> |
---|
[800] | 540 | </ul> |
---|
| 541 | </li> |
---|
[1072] | 542 | <li>3. <a href="#status.code.definitions">Status Code Definitions</a><ul> |
---|
| 543 | <li>3.1 <a href="#status.304">304 Not Modified</a></li> |
---|
| 544 | <li>3.2 <a href="#status.412">412 Precondition Failed</a></li> |
---|
[52] | 545 | </ul> |
---|
| 546 | </li> |
---|
[1072] | 547 | <li>4. <a href="#weak.and.strong.validators">Weak and Strong Validators</a></li> |
---|
| 548 | <li>5. <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> |
---|
| 549 | <li>6. <a href="#header.fields">Header Field Definitions</a><ul> |
---|
| 550 | <li>6.1 <a href="#header.etag">ETag</a></li> |
---|
| 551 | <li>6.2 <a href="#header.if-match">If-Match</a></li> |
---|
| 552 | <li>6.3 <a href="#header.if-modified-since">If-Modified-Since</a></li> |
---|
| 553 | <li>6.4 <a href="#header.if-none-match">If-None-Match</a></li> |
---|
| 554 | <li>6.5 <a href="#header.if-unmodified-since">If-Unmodified-Since</a></li> |
---|
| 555 | <li>6.6 <a href="#header.last-modified">Last-Modified</a></li> |
---|
[52] | 556 | </ul> |
---|
| 557 | </li> |
---|
[1072] | 558 | <li>7. <a href="#IANA.considerations">IANA Considerations</a><ul> |
---|
| 559 | <li>7.1 <a href="#status.code.registration">Status Code Registration</a></li> |
---|
| 560 | <li>7.2 <a href="#header.field.registration">Header Field Registration</a></li> |
---|
[253] | 561 | </ul> |
---|
| 562 | </li> |
---|
[1072] | 563 | <li>8. <a href="#security.considerations">Security Considerations</a></li> |
---|
| 564 | <li>9. <a href="#ack">Acknowledgments</a></li> |
---|
| 565 | <li>10. <a href="#rfc.references">References</a><ul> |
---|
| 566 | <li>10.1 <a href="#rfc.references.1">Normative References</a></li> |
---|
| 567 | <li>10.2 <a href="#rfc.references.2">Informative References</a></li> |
---|
[119] | 568 | </ul> |
---|
| 569 | </li> |
---|
[1072] | 570 | <li><a href="#rfc.authors">Authors' Addresses</a></li> |
---|
| 571 | <li>A. <a href="#changes.from.rfc.2616">Changes from RFC 2616</a></li> |
---|
| 572 | <li>B. <a href="#collected.abnf">Collected ABNF</a></li> |
---|
| 573 | <li>C. <a href="#change.log">Change Log (to be removed by RFC Editor before publication)</a><ul> |
---|
| 574 | <li>C.1 <a href="#rfc.section.C.1">Since RFC 2616</a></li> |
---|
| 575 | <li>C.2 <a href="#rfc.section.C.2">Since draft-ietf-httpbis-p4-conditional-00</a></li> |
---|
| 576 | <li>C.3 <a href="#rfc.section.C.3">Since draft-ietf-httpbis-p4-conditional-01</a></li> |
---|
| 577 | <li>C.4 <a href="#changes.since.02">Since draft-ietf-httpbis-p4-conditional-02</a></li> |
---|
| 578 | <li>C.5 <a href="#changes.since.03">Since draft-ietf-httpbis-p4-conditional-03</a></li> |
---|
| 579 | <li>C.6 <a href="#changes.since.04">Since draft-ietf-httpbis-p4-conditional-04</a></li> |
---|
| 580 | <li>C.7 <a href="#changes.since.05">Since draft-ietf-httpbis-p4-conditional-05</a></li> |
---|
| 581 | <li>C.8 <a href="#changes.since.06">Since draft-ietf-httpbis-p4-conditional-06</a></li> |
---|
| 582 | <li>C.9 <a href="#changes.since.07">Since draft-ietf-httpbis-p4-conditional-07</a></li> |
---|
| 583 | <li>C.10 <a href="#changes.since.08">Since draft-ietf-httpbis-p4-conditional-08</a></li> |
---|
| 584 | <li>C.11 <a href="#changes.since.09">Since draft-ietf-httpbis-p4-conditional-09</a></li> |
---|
| 585 | <li>C.12 <a href="#changes.since.10">Since draft-ietf-httpbis-p4-conditional-10</a></li> |
---|
| 586 | <li>C.13 <a href="#changes.since.11">Since draft-ietf-httpbis-p4-conditional-11</a></li> |
---|
| 587 | <li>C.14 <a href="#changes.since.12">Since draft-ietf-httpbis-p4-conditional-12</a></li> |
---|
[115] | 588 | </ul> |
---|
| 589 | </li> |
---|
[1072] | 590 | <li><a href="#rfc.index">Index</a></li> |
---|
[52] | 591 | </ul> |
---|
| 592 | <h1 id="rfc.section.1" class="np"><a href="#rfc.section.1">1.</a> <a id="introduction" href="#introduction">Introduction</a></h1> |
---|
[163] | 593 | <p id="rfc.section.1.p.1">This document defines HTTP/1.1 response metadata for indicating potential changes to payload content, including modification |
---|
| 594 | time stamps and opaque entity-tags, and the HTTP conditional request mechanisms that allow preconditions to be placed on a |
---|
| 595 | request method. Conditional GET requests allow for efficient cache updates. Other conditional request methods are used to |
---|
| 596 | protect against overwriting or misunderstanding the state of a resource that has been changed unbeknownst to the requesting |
---|
| 597 | client. |
---|
[52] | 598 | </p> |
---|
[163] | 599 | <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 |
---|
[980] | 600 | errata changes. A future draft will reorganize the sections to better reflect the content. In particular, the sections on |
---|
[994] | 601 | resource metadata will be discussed first and then followed by each conditional request-header field, concluding with a definition |
---|
[163] | 602 | of precedence and the expectation of ordering strong validator checks before weak validator checks. It is likely that more |
---|
| 603 | 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 |
---|
| 604 | had become in <a href="#RFC2616" id="rfc.xref.RFC2616.1"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2616]</cite></a>. |
---|
| 605 | </p> |
---|
[96] | 606 | <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> |
---|
| 607 | <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" |
---|
| 608 | 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>. |
---|
| 609 | </p> |
---|
[847] | 610 | <p id="rfc.section.1.1.p.2">An implementation is not compliant if it fails to satisfy one or more of the "MUST" or "REQUIRED" level requirements for the |
---|
| 611 | protocols it implements. An implementation that satisfies all the "MUST" or "REQUIRED" level and all the "SHOULD" level requirements |
---|
| 612 | for its protocols is said to be "unconditionally compliant"; one that satisfies all the "MUST" level requirements but not |
---|
| 613 | all the "SHOULD" level requirements for its protocols is said to be "conditionally compliant". |
---|
[96] | 614 | </p> |
---|
[424] | 615 | <h2 id="rfc.section.1.2"><a href="#rfc.section.1.2">1.2</a> <a id="notation" href="#notation">Syntax Notation</a></h2> |
---|
[543] | 616 | <p id="rfc.section.1.2.p.1">This specification uses the ABNF syntax defined in <a href="p1-messaging.html#notation" title="Syntax Notation">Section 1.2</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> (which extends the syntax defined in <a href="#RFC5234" id="rfc.xref.RFC5234.1"><cite title="Augmented BNF for Syntax Specifications: ABNF">[RFC5234]</cite></a> with a list rule). <a href="#collected.abnf" title="Collected ABNF">Appendix B</a> shows the collected ABNF, with the list rule expanded. |
---|
| 617 | </p> |
---|
| 618 | <p id="rfc.section.1.2.p.2">The following core rules are included by reference, as defined in <a href="#RFC5234" id="rfc.xref.RFC5234.2"><cite title="Augmented BNF for Syntax Specifications: ABNF">[RFC5234]</cite></a>, <a href="http://tools.ietf.org/html/rfc5234#appendix-B.1">Appendix B.1</a>: ALPHA (letters), CR (carriage return), CRLF (CR LF), CTL (controls), DIGIT (decimal 0-9), DQUOTE (double quote), HEXDIG |
---|
[425] | 619 | (hexadecimal 0-9/A-F/a-f), LF (line feed), OCTET (any 8-bit sequence of data), SP (space), VCHAR (any visible USASCII character), |
---|
| 620 | and WSP (whitespace). |
---|
[52] | 621 | </p> |
---|
[424] | 622 | <h3 id="rfc.section.1.2.1"><a href="#rfc.section.1.2.1">1.2.1</a> <a id="core.rules" href="#core.rules">Core Rules</a></h3> |
---|
| 623 | <p id="rfc.section.1.2.1.p.1">The core rules below are defined in <a href="p1-messaging.html#basic.rules" title="Basic Rules">Section 1.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>: |
---|
| 624 | </p> |
---|
| 625 | <div id="rfc.figure.u.1"></div><pre class="inline"> <a href="#core.rules" 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 1.2.2</a>> |
---|
| 626 | <a href="#core.rules" class="smpl">OWS</a> = <OWS, 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#basic.rules" title="Basic Rules">Section 1.2.2</a>> |
---|
| 627 | </pre><h3 id="rfc.section.1.2.2"><a href="#rfc.section.1.2.2">1.2.2</a> <a id="abnf.dependencies" href="#abnf.dependencies">ABNF Rules defined in other Parts of the Specification</a></h3> |
---|
| 628 | <p id="rfc.section.1.2.2.p.1">The ABNF rules below are defined in other parts:</p> |
---|
[678] | 629 | <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.5"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>, <a href="p1-messaging.html#date.time.formats.full.date" title="Date/Time Formats: Full Date">Section 6.1</a>> |
---|
[875] | 630 | </pre><h1 id="rfc.section.2"><a href="#rfc.section.2">2.</a> <a id="entity.tags" href="#entity.tags">Entity-Tags</a></h1> |
---|
[966] | 631 | <p id="rfc.section.2.p.1">Entity-tags are used for comparing two or more representations of the same resource. HTTP/1.1 uses entity-tags in the ETag |
---|
| 632 | (<a href="#header.etag" id="rfc.xref.header.etag.1" title="ETag">Section 6.1</a>), If-Match (<a href="#header.if-match" id="rfc.xref.header.if-match.1" title="If-Match">Section 6.2</a>), If-None-Match (<a href="#header.if-none-match" id="rfc.xref.header.if-none-match.1" title="If-None-Match">Section 6.4</a>), and If-Range (<a href="p5-range.html#header.if-range" title="If-Range">Section 5.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 4</a>. An entity-tag consists of an opaque quoted string, possibly prefixed by a weakness indicator. |
---|
[205] | 633 | </p> |
---|
[229] | 634 | <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> |
---|
[570] | 635 | <a href="#entity.tags" class="smpl">weak</a> = %x57.2F ; "W/", case-sensitive |
---|
[424] | 636 | <a href="#entity.tags" class="smpl">opaque-tag</a> = <a href="#core.rules" class="smpl">quoted-string</a> |
---|
[875] | 637 | </pre><p id="rfc.section.2.p.3">A "strong entity-tag" <em class="bcp14">MAY</em> be shared by two representations of a resource only if they are equivalent by octet equality. |
---|
[52] | 638 | </p> |
---|
[879] | 639 | <p id="rfc.section.2.p.4">A "weak entity-tag", indicated by the "W/" prefix, <em class="bcp14">MAY</em> be shared by two representations of a resource only if the representations are equivalent and could be substituted for each |
---|
[875] | 640 | other with no significant change in semantics. A weak entity-tag can only be used for weak comparison. |
---|
[52] | 641 | </p> |
---|
[875] | 642 | <p id="rfc.section.2.p.5">An entity-tag <em class="bcp14">MUST</em> be unique across all versions of all representations associated with a particular resource. A given entity-tag value <em class="bcp14">MAY</em> be used for representations obtained by requests on different URIs. The use of the same entity-tag value in conjunction with |
---|
| 643 | representations obtained by requests on different URIs does not imply the equivalence of those representations. |
---|
[52] | 644 | </p> |
---|
[875] | 645 | <h2 id="rfc.section.2.1"><a href="#rfc.section.2.1">2.1</a> <a id="example.entity.tag.vs.conneg" href="#example.entity.tag.vs.conneg">Example: Entity-tags varying on Content-Negotiated Resources</a></h2> |
---|
[966] | 646 | <p id="rfc.section.2.1.p.1">Consider a resource that is subject to content negotiation (<a href="p3-payload.html#content.negotiation" title="Content Negotiation">Section 5</a> of <a href="#Part3" id="rfc.xref.Part3.1"><cite title="HTTP/1.1, part 3: Message Payload and Content Negotiation">[Part3]</cite></a>), and where the representations returned upon a GET request vary based on the Accept-Encoding request header field (<a href="p3-payload.html#header.accept-encoding" title="Accept-Encoding">Section 6.3</a> of <a href="#Part3" id="rfc.xref.Part3.2"><cite title="HTTP/1.1, part 3: Message Payload and Content Negotiation">[Part3]</cite></a>): |
---|
[800] | 647 | </p> |
---|
| 648 | <div id="rfc.figure.u.4"></div> |
---|
| 649 | <p>>> Request:</p><pre class="text2">GET /index HTTP/1.1 |
---|
| 650 | Host: www.example.com |
---|
| 651 | Accept-Encoding: gzip |
---|
| 652 | |
---|
[912] | 653 | </pre><p id="rfc.section.2.1.p.3">In this case, the response might or might not use the gzip content coding. If it does not, the response might look like:</p> |
---|
[800] | 654 | <div id="rfc.figure.u.5"></div> |
---|
| 655 | <p>>> Response:</p><pre class="text">HTTP/1.1 200 OK |
---|
| 656 | Date: Thu, 26 Mar 2010 00:05:00 GMT |
---|
| 657 | ETag: "123-a" |
---|
| 658 | Content-Length: 70 |
---|
| 659 | Vary: Accept-Encoding |
---|
| 660 | Content-Type: text/plain |
---|
| 661 | |
---|
| 662 | <span id="exbody">Hello World! |
---|
| 663 | Hello World! |
---|
| 664 | Hello World! |
---|
| 665 | Hello World! |
---|
| 666 | Hello World! |
---|
[861] | 667 | </span></pre><p id="rfc.section.2.1.p.5">An alternative representation that does use gzip content coding would be:</p> |
---|
[800] | 668 | <div id="rfc.figure.u.6"></div> |
---|
| 669 | <p>>> Response:</p><pre class="text">HTTP/1.1 200 OK |
---|
| 670 | Date: Thu, 26 Mar 2010 00:05:00 GMT |
---|
| 671 | ETag: "123-b" |
---|
| 672 | Content-Length: 43 |
---|
| 673 | Vary: Accept-Encoding |
---|
| 674 | Content-Type: text/plain |
---|
| 675 | Content-Encoding: gzip |
---|
| 676 | |
---|
| 677 | <em>...binary data...</em></pre><div class="note" id="rfc.section.2.1.p.7"> |
---|
[875] | 678 | <p> <b>Note:</b> Content codings are a property of the representation, so therefore an entity-tag of an encoded representation must be distinct |
---|
[861] | 679 | from an unencoded representation to prevent conflicts during cache updates and range requests. In contrast, transfer codings |
---|
[875] | 680 | (<a href="p1-messaging.html#transfer.codings" title="Transfer Codings">Section 6.2</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>) apply only during message transfer and do not require distinct entity-tags. |
---|
[800] | 681 | </p> |
---|
| 682 | </div> |
---|
[838] | 683 | <h1 id="rfc.section.3"><a href="#rfc.section.3">3.</a> <a id="status.code.definitions" href="#status.code.definitions">Status Code Definitions</a></h1> |
---|
[52] | 684 | <div id="rfc.iref.3"></div> |
---|
| 685 | <div id="rfc.iref.s.1"></div> |
---|
[424] | 686 | <h2 id="rfc.section.3.1"><a href="#rfc.section.3.1">3.1</a> <a id="status.304" href="#status.304">304 Not Modified</a></h2> |
---|
| 687 | <p id="rfc.section.3.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] | 688 | </p> |
---|
[861] | 689 | <p id="rfc.section.3.1.p.2">A 304 response <em class="bcp14">MUST</em> include a Date header field (<a href="p1-messaging.html#header.date" title="Date">Section 9.3</a> of <a href="#Part1" id="rfc.xref.Part1.7"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>) unless its omission is required by <a href="p1-messaging.html#clockless.origin.server.operation" title="Clockless Origin Server Operation">Section 9.3.1</a> of <a href="#Part1" id="rfc.xref.Part1.8"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>. If a 200 response to the same request would have included any of the header fields Cache-Control, Content-Location, ETag, |
---|
| 690 | Expires, Last-Modified, or Vary, then those same header fields <em class="bcp14">MUST</em> be sent in a 304 response. |
---|
[52] | 691 | </p> |
---|
[861] | 692 | <p id="rfc.section.3.1.p.3">Since the goal of a 304 response is to minimize information transfer when the recipient already has one or more cached representations, |
---|
| 693 | the response <em class="bcp14">SHOULD NOT</em> include representation metadata other than the above listed fields unless said metadata exists for the purpose of guiding |
---|
| 694 | cache updates (e.g., future HTTP extensions). |
---|
[52] | 695 | </p> |
---|
[861] | 696 | <p id="rfc.section.3.1.p.4">If a 304 response includes an entity-tag that indicates a representation not currently cached, then the recipient <em class="bcp14">MUST NOT</em> use the 304 to update its own cache. If that conditional request originated with an outbound client, such as a user agent |
---|
[960] | 697 | with its own cache sending a conditional GET to a shared proxy, then the 304 response <em class="bcp14">MAY</em> be forwarded to the outbound client. Otherwise, disregard the response and repeat the request without the conditional. |
---|
[52] | 698 | </p> |
---|
[424] | 699 | <p id="rfc.section.3.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] | 700 | </p> |
---|
| 701 | <div id="rfc.iref.4"></div> |
---|
| 702 | <div id="rfc.iref.s.2"></div> |
---|
[424] | 703 | <h2 id="rfc.section.3.2"><a href="#rfc.section.3.2">3.2</a> <a id="status.412" href="#status.412">412 Precondition Failed</a></h2> |
---|
| 704 | <p id="rfc.section.3.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 |
---|
[868] | 705 | response code allows the client to place preconditions on the current resource metadata (header field data) and thus prevent |
---|
| 706 | the requested method from being applied to a resource other than the one intended. |
---|
[52] | 707 | </p> |
---|
[424] | 708 | <h1 id="rfc.section.4"><a href="#rfc.section.4">4.</a> <a id="weak.and.strong.validators" href="#weak.and.strong.validators">Weak and Strong Validators</a></h1> |
---|
[868] | 709 | <p id="rfc.section.4.p.1">Since both origin servers and caches will compare two validators to decide if they represent the same or different representations, |
---|
| 710 | one normally would expect that if the representation (including both representation header fields and representation body) |
---|
| 711 | changes in any way, then the associated validator would change as well. If this is true, then we call this validator a "strong |
---|
[879] | 712 | validator". |
---|
[52] | 713 | </p> |
---|
[424] | 714 | <p id="rfc.section.4.p.2">However, there might be cases when a server prefers to change the validator only on semantically significant changes, and |
---|
[868] | 715 | not when insignificant aspects of the representation change. A validator that does not always change when the representation |
---|
[879] | 716 | changes is a "weak validator". |
---|
[52] | 717 | </p> |
---|
[879] | 718 | <p id="rfc.section.4.p.3">An entity-tag is normally a strong validator, but the protocol provides a mechanism to tag an entity-tag as "weak". One can |
---|
[868] | 719 | think of a strong validator as one that changes whenever the sequence of bits in a representation changes, while a weak value |
---|
| 720 | changes whenever the meaning of a representation changes. Alternatively, one can think of a strong validator as part of an |
---|
| 721 | identifier for a specific representation, whereas a weak validator is part of an identifier for a set of semantically equivalent |
---|
| 722 | representations. |
---|
[52] | 723 | </p> |
---|
[729] | 724 | <ul class="empty"> |
---|
[868] | 725 | <li> <b>Note:</b> One example of a strong validator is an integer that is incremented in stable storage every time a representation is changed. |
---|
[729] | 726 | </li> |
---|
[875] | 727 | <li>A representation's modification time, if defined with only one-second resolution, could be a weak validator, since it is possible |
---|
[868] | 728 | that the representation might be modified twice during a single second. |
---|
[729] | 729 | </li> |
---|
| 730 | <li>Support for weak validators is optional. However, weak validators allow for more efficient caching of equivalent objects; |
---|
[52] | 731 | 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 |
---|
| 732 | that period is likely "good enough" to be equivalent. |
---|
[729] | 733 | </li> |
---|
| 734 | </ul> |
---|
[424] | 735 | <p id="rfc.section.4.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] | 736 | or when a server compares two validators. |
---|
| 737 | </p> |
---|
[424] | 738 | <p id="rfc.section.4.p.5">Strong validators are usable in any context. Weak validators are only usable in contexts that do not depend on exact equality |
---|
[868] | 739 | of a representation. For example, either kind is usable for a normal conditional GET. However, only a strong validator is |
---|
| 740 | usable for a sub-range retrieval, since otherwise the client might end up with an internally inconsistent representation. |
---|
[52] | 741 | </p> |
---|
[424] | 742 | <p id="rfc.section.4.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] | 743 | </p> |
---|
[424] | 744 | <p id="rfc.section.4.p.7">The only function that HTTP/1.1 defines on validators is comparison. There are two validator comparison functions, depending |
---|
[172] | 745 | on whether the comparison context allows the use of weak validators or not: |
---|
[52] | 746 | </p> |
---|
| 747 | <ul> |
---|
[298] | 748 | <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] | 749 | </li> |
---|
[610] | 750 | <li>The weak comparison function: in order to be considered equal, both opaque-tags <em class="bcp14">MUST</em> be identical character-by-character, but either or both of them <em class="bcp14">MAY</em> be tagged as "weak" without affecting the result. |
---|
[52] | 751 | </li> |
---|
| 752 | </ul> |
---|
[875] | 753 | <p id="rfc.section.4.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> |
---|
[298] | 754 | <div id="rfc.table.u.1"> |
---|
[675] | 755 | <table class="tt full left" cellpadding="3" cellspacing="0"> |
---|
[298] | 756 | <thead> |
---|
| 757 | <tr> |
---|
| 758 | <th>ETag 1</th> |
---|
| 759 | <th>ETag 2</th> |
---|
| 760 | <th>Strong Comparison</th> |
---|
| 761 | <th>Weak Comparison</th> |
---|
| 762 | </tr> |
---|
| 763 | </thead> |
---|
| 764 | <tbody> |
---|
| 765 | <tr> |
---|
[704] | 766 | <td class="left">W/"1"</td> |
---|
| 767 | <td class="left">W/"1"</td> |
---|
| 768 | <td class="left">no match</td> |
---|
| 769 | <td class="left">match</td> |
---|
[298] | 770 | </tr> |
---|
| 771 | <tr> |
---|
[704] | 772 | <td class="left">W/"1"</td> |
---|
| 773 | <td class="left">W/"2"</td> |
---|
| 774 | <td class="left">no match</td> |
---|
| 775 | <td class="left">no match</td> |
---|
[298] | 776 | </tr> |
---|
| 777 | <tr> |
---|
[704] | 778 | <td class="left">W/"1"</td> |
---|
| 779 | <td class="left">"1"</td> |
---|
| 780 | <td class="left">no match</td> |
---|
| 781 | <td class="left">match</td> |
---|
[298] | 782 | </tr> |
---|
| 783 | <tr> |
---|
[704] | 784 | <td class="left">"1"</td> |
---|
| 785 | <td class="left">"1"</td> |
---|
| 786 | <td class="left">match</td> |
---|
| 787 | <td class="left">match</td> |
---|
[298] | 788 | </tr> |
---|
| 789 | </tbody> |
---|
| 790 | </table> |
---|
| 791 | </div> |
---|
[875] | 792 | <p id="rfc.section.4.p.9">An entity-tag is strong unless it is explicitly tagged as weak. <a href="#entity.tags" title="Entity-Tags">Section 2</a> gives the syntax for entity-tags. |
---|
[52] | 793 | </p> |
---|
[424] | 794 | <p id="rfc.section.4.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] | 795 | strong, using the following rules: |
---|
| 796 | </p> |
---|
| 797 | <ul> |
---|
[868] | 798 | <li>The validator is being compared by an origin server to the actual current validator for the representation and,</li> |
---|
| 799 | <li>That origin server reliably knows that the associated representation did not change twice during the second covered by the |
---|
| 800 | presented validator. |
---|
[52] | 801 | </li> |
---|
| 802 | </ul> |
---|
[424] | 803 | <p id="rfc.section.4.p.11">or </p> |
---|
[52] | 804 | <ul> |
---|
[994] | 805 | <li>The validator is about to be used by a client in an If-Modified-Since or If-Unmodified-Since header field, because the client |
---|
| 806 | has a cache entry for the associated representation, and |
---|
[52] | 807 | </li> |
---|
| 808 | <li>That cache entry includes a Date value, which gives the time when the origin server sent the original response, and</li> |
---|
| 809 | <li>The presented Last-Modified time is at least 60 seconds before the Date value.</li> |
---|
| 810 | </ul> |
---|
[424] | 811 | <p id="rfc.section.4.p.12">or </p> |
---|
[52] | 812 | <ul> |
---|
[868] | 813 | <li>The validator is being compared by an intermediate cache to the validator stored in its cache entry for the representation, |
---|
| 814 | and |
---|
| 815 | </li> |
---|
[52] | 816 | <li>That cache entry includes a Date value, which gives the time when the origin server sent the original response, and</li> |
---|
| 817 | <li>The presented Last-Modified time is at least 60 seconds before the Date value.</li> |
---|
| 818 | </ul> |
---|
[424] | 819 | <p id="rfc.section.4.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] | 820 | both had the same Last-Modified time, then at least one of those responses would have a Date value equal to its Last-Modified |
---|
| 821 | time. The arbitrary 60-second limit guards against the possibility that the Date and Last-Modified values are generated from |
---|
| 822 | 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. |
---|
| 823 | </p> |
---|
[424] | 824 | <p id="rfc.section.4.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] | 825 | it <em class="bcp14">MAY</em> do this only if the Last-Modified time is strong in the sense described here. |
---|
| 826 | </p> |
---|
[424] | 827 | <p id="rfc.section.4.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] | 828 | </p> |
---|
[424] | 829 | <p id="rfc.section.4.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] | 830 | HTTP/1.0 servers. |
---|
| 831 | </p> |
---|
[875] | 832 | <h1 id="rfc.section.5"><a href="#rfc.section.5">5.</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> |
---|
[424] | 833 | <p id="rfc.section.5.p.1">We adopt a set of rules and recommendations for origin servers, clients, and caches regarding when various validator types |
---|
[52] | 834 | ought to be used, and for what purposes. |
---|
| 835 | </p> |
---|
[424] | 836 | <p id="rfc.section.5.p.2">HTTP/1.1 origin servers: </p> |
---|
[52] | 837 | <ul> |
---|
[875] | 838 | <li><em class="bcp14">SHOULD</em> send an entity-tag validator unless it is not feasible to generate one. |
---|
[52] | 839 | </li> |
---|
[875] | 840 | <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, |
---|
| 841 | or if it is unfeasible to send a strong entity-tag. |
---|
[52] | 842 | </li> |
---|
| 843 | <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 |
---|
[994] | 844 | result from using this date in an If-Modified-Since header field would lead to serious problems. |
---|
[52] | 845 | </li> |
---|
| 846 | </ul> |
---|
[875] | 847 | <p id="rfc.section.5.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] | 848 | value. |
---|
| 849 | </p> |
---|
[1109] | 850 | <p id="rfc.section.5.p.4">In order to be legitimate, a strong entity-tag <em class="bcp14">MUST</em> change whenever the associated representation changes in any way. A weak entity-tag <em class="bcp14">SHOULD</em> change whenever the associated representation changes in a semantically significant way. |
---|
[52] | 851 | </p> |
---|
[754] | 852 | <div class="note" id="rfc.section.5.p.5"> |
---|
[875] | 853 | <p> <b>Note:</b> In order to provide semantically transparent caching, an origin server must avoid reusing a specific strong entity-tag value |
---|
| 854 | for two different representations, or reusing a specific weak entity-tag value for two semantically different representations. |
---|
| 855 | Cache entries might persist for arbitrarily long periods, regardless of expiration times, so it might be inappropriate to |
---|
| 856 | expect that a cache will never again attempt to validate an entry using a validator that it obtained at some point in the |
---|
| 857 | past. |
---|
[563] | 858 | </p> |
---|
| 859 | </div> |
---|
| 860 | <p id="rfc.section.5.p.6">HTTP/1.1 clients: </p> |
---|
[52] | 861 | <ul> |
---|
[875] | 862 | <li><em class="bcp14">MUST</em> use that entity-tag in any cache-conditional request (using If-Match or If-None-Match) if an entity-tag has been provided |
---|
[755] | 863 | by the origin server. |
---|
[52] | 864 | </li> |
---|
[755] | 865 | <li><em class="bcp14">SHOULD</em> use the Last-Modified value in non-subrange cache-conditional requests (using If-Modified-Since) if only a Last-Modified value |
---|
| 866 | has been provided by the origin server. |
---|
[52] | 867 | </li> |
---|
[755] | 868 | <li><em class="bcp14">MAY</em> use the Last-Modified value in subrange cache-conditional requests (using If-Unmodified-Since) if only a Last-Modified value |
---|
| 869 | has been provided by an HTTP/1.0 origin server. The user agent <em class="bcp14">SHOULD</em> provide a way to disable this, in case of difficulty. |
---|
[52] | 870 | </li> |
---|
[875] | 871 | <li><em class="bcp14">SHOULD</em> use both validators in cache-conditional requests if both an entity-tag and a Last-Modified value have been provided by the |
---|
[755] | 872 | origin server. This allows both HTTP/1.0 and HTTP/1.1 caches to respond appropriately. |
---|
[52] | 873 | </li> |
---|
| 874 | </ul> |
---|
[563] | 875 | <p id="rfc.section.5.p.7">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 |
---|
[875] | 876 | 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 |
---|
[928] | 877 | field) as cache validators, <em class="bcp14">MUST NOT</em> return a response status code of 304 (Not Modified) unless doing so is consistent with all of the conditional header fields |
---|
| 878 | in the request. |
---|
[52] | 879 | </p> |
---|
[875] | 880 | <p id="rfc.section.5.p.8">An HTTP/1.1 caching proxy, upon receiving a conditional request that includes both a Last-Modified date and one or more entity-tags |
---|
| 881 | 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 |
---|
[52] | 882 | fields in the request. |
---|
| 883 | </p> |
---|
[729] | 884 | <ul class="empty"> |
---|
[970] | 885 | <li> <b>Note:</b> The general principle behind these rules is that HTTP/1.1 servers and clients ought to transmit as much non-redundant information |
---|
[52] | 886 | as is available in their responses and requests. HTTP/1.1 systems receiving this information will make the most conservative |
---|
| 887 | assumptions about the validators they receive. |
---|
[729] | 888 | </li> |
---|
[1109] | 889 | <li>HTTP/1.0 clients and caches might ignore entity-tags. Generally, last-modified values received or used by these systems will |
---|
[52] | 890 | support transparent and efficient caching, and so HTTP/1.1 origin servers should provide Last-Modified values. In those rare |
---|
| 891 | 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 |
---|
| 892 | HTTP/1.1 origin servers should not provide one. |
---|
[729] | 893 | </li> |
---|
| 894 | </ul> |
---|
[424] | 895 | <h1 id="rfc.section.6"><a href="#rfc.section.6">6.</a> <a id="header.fields" href="#header.fields">Header Field Definitions</a></h1> |
---|
| 896 | <p id="rfc.section.6.p.1">This section defines the syntax and semantics of HTTP/1.1 header fields related to conditional requests.</p> |
---|
[52] | 897 | <div id="rfc.iref.e.1"></div> |
---|
| 898 | <div id="rfc.iref.h.1"></div> |
---|
[424] | 899 | <h2 id="rfc.section.6.1"><a href="#rfc.section.6.1">6.1</a> <a id="header.etag" href="#header.etag">ETag</a></h2> |
---|
[972] | 900 | <p id="rfc.section.6.1.p.1">The "ETag" response-header field provides the current value of the entity-tag (see <a href="#entity.tags" title="Entity-Tags">Section 2</a>) for one representation of the target resource. An entity-tag is intended for use as a resource-local identifier for differentiating |
---|
| 901 | between representations of the same resource that vary over time or via content negotiation (see <a href="#weak.and.strong.validators" title="Weak and Strong Validators">Section 4</a>). |
---|
[52] | 902 | </p> |
---|
[800] | 903 | <div id="rfc.figure.u.7"></div><pre class="inline"><span id="rfc.iref.g.4"></span><span id="rfc.iref.g.5"></span> <a href="#header.etag" class="smpl">ETag</a> = "ETag" ":" <a href="#core.rules" class="smpl">OWS</a> <a href="#header.etag" class="smpl">ETag-v</a> |
---|
[362] | 904 | <a href="#header.etag" class="smpl">ETag-v</a> = <a href="#entity.tags" class="smpl">entity-tag</a> |
---|
[800] | 905 | </pre><div id="rfc.figure.u.8"></div> |
---|
[362] | 906 | <p>Examples:</p> <pre class="text"> ETag: "xyzzy" |
---|
| 907 | ETag: W/"xyzzy" |
---|
| 908 | ETag: "" |
---|
[875] | 909 | </pre><p id="rfc.section.6.1.p.4">An entity-tag provides an "opaque" cache validator that allows for more reliable validation than modification dates in situations |
---|
[861] | 910 | where it is inconvenient to store modification dates, where the one-second resolution of HTTP date values is not sufficient, |
---|
| 911 | or where the origin server wishes to avoid certain paradoxes that might arise from the use of modification dates. |
---|
[183] | 912 | </p> |
---|
[875] | 913 | <p id="rfc.section.6.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] | 914 | appropriate cache validation mechanism, and the specification of any validator comparison function more complex than byte-equality |
---|
[994] | 915 | would open up a can of worms. Thus, comparisons of any other header fields (except Last-Modified, for compatibility with HTTP/1.0) |
---|
[183] | 916 | are never used for purposes of validating a cache entry. |
---|
| 917 | </p> |
---|
| 918 | <div id="rfc.iref.i.1"></div> |
---|
[52] | 919 | <div id="rfc.iref.h.2"></div> |
---|
[424] | 920 | <h2 id="rfc.section.6.2"><a href="#rfc.section.6.2">6.2</a> <a id="header.if-match" href="#header.if-match">If-Match</a></h2> |
---|
[875] | 921 | <p id="rfc.section.6.2.p.1">The "If-Match" request-header field is used to make a request method conditional. A client that has one or more representations |
---|
| 922 | previously obtained from the resource can verify that one of those representations is current by including a list of their |
---|
| 923 | associated entity-tags in the If-Match header field. |
---|
[52] | 924 | </p> |
---|
[698] | 925 | <p id="rfc.section.6.2.p.2">This allows efficient updates of cached information with a minimum amount of transaction overhead. It is also used when updating |
---|
| 926 | resources, to prevent inadvertent modification of the wrong version of a resource. As a special case, the value "*" matches |
---|
[875] | 927 | any current representation of the resource. |
---|
[698] | 928 | </p> |
---|
[800] | 929 | <div id="rfc.figure.u.9"></div><pre class="inline"><span id="rfc.iref.g.6"></span><span id="rfc.iref.g.7"></span> <a href="#header.if-match" class="smpl">If-Match</a> = "If-Match" ":" <a href="#core.rules" class="smpl">OWS</a> <a href="#header.if-match" class="smpl">If-Match-v</a> |
---|
[362] | 930 | <a href="#header.if-match" class="smpl">If-Match-v</a> = "*" / 1#<a href="#entity.tags" class="smpl">entity-tag</a> |
---|
[875] | 931 | </pre><p id="rfc.section.6.2.p.4">If any of the entity-tags match the entity-tag of the representation that would have been returned in the response to a similar |
---|
[994] | 932 | GET request (without the If-Match header field) on that resource, or if "*" is given and any current representation exists |
---|
| 933 | for that resource, then the server <em class="bcp14">MAY</em> perform the requested method as if the If-Match header field did not exist. |
---|
[52] | 934 | </p> |
---|
[875] | 935 | <p id="rfc.section.6.2.p.5">If none of the entity-tags match, or if "*" is given and no current representation 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] | 936 | such as PUT, from modifying a resource that has changed since the client last retrieved it. |
---|
| 937 | </p> |
---|
[928] | 938 | <p id="rfc.section.6.2.p.6">If the request would, without the If-Match header field, result in anything other than a 2xx or 412 status code, then the |
---|
[994] | 939 | If-Match header field <em class="bcp14">MUST</em> be ignored. |
---|
[52] | 940 | </p> |
---|
[698] | 941 | <p id="rfc.section.6.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 3.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] | 942 | </p> |
---|
[875] | 943 | <p id="rfc.section.6.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 representation corresponding to the If-Match value (a single entity-tag) is no longer a representation of |
---|
[868] | 944 | that resource. This allows the user to indicate that they do not wish the request to be successful if the resource has been |
---|
| 945 | changed without their knowledge. Examples: |
---|
[52] | 946 | </p> |
---|
[800] | 947 | <div id="rfc.figure.u.10"></div><pre class="text"> If-Match: "xyzzy" |
---|
[362] | 948 | If-Match: "xyzzy", "r2d2xxxx", "c3piozzzz" |
---|
| 949 | If-Match: * |
---|
[698] | 950 | </pre><p id="rfc.section.6.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] | 951 | is undefined by this specification. |
---|
| 952 | </p> |
---|
| 953 | <div id="rfc.iref.i.2"></div> |
---|
| 954 | <div id="rfc.iref.h.3"></div> |
---|
[424] | 955 | <h2 id="rfc.section.6.3"><a href="#rfc.section.6.3">6.3</a> <a id="header.if-modified-since" href="#header.if-modified-since">If-Modified-Since</a></h2> |
---|
[861] | 956 | <p id="rfc.section.6.3.p.1">The "If-Modified-Since" request-header field is used to make a request method conditional by date: if the representation that |
---|
| 957 | would have been transferred in a 200 response to a GET request has not been modified since the time specified in this field, |
---|
| 958 | then do not perform the method; instead, respond as detailed below. |
---|
[52] | 959 | </p> |
---|
[800] | 960 | <div id="rfc.figure.u.11"></div><pre class="inline"><span id="rfc.iref.g.8"></span><span id="rfc.iref.g.9"></span> <a href="#header.if-modified-since" class="smpl">If-Modified-Since</a> = "If-Modified-Since" ":" <a href="#core.rules" class="smpl">OWS</a> |
---|
[376] | 961 | <a href="#header.if-modified-since" class="smpl">If-Modified-Since-v</a> |
---|
[362] | 962 | <a href="#header.if-modified-since" class="smpl">If-Modified-Since-v</a> = <a href="#abnf.dependencies" class="smpl">HTTP-date</a> |
---|
[424] | 963 | </pre><p id="rfc.section.6.3.p.3">An example of the field is:</p> |
---|
[800] | 964 | <div id="rfc.figure.u.12"></div><pre class="text"> If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT |
---|
[994] | 965 | </pre><p id="rfc.section.6.3.p.5">A GET method with an If-Modified-Since header field and no Range header field requests that the representation be transferred |
---|
| 966 | only if it has been modified since the date given by the If-Modified-Since header field. The algorithm for determining this |
---|
| 967 | includes the following cases: |
---|
[52] | 968 | </p> |
---|
| 969 | <ol> |
---|
[928] | 970 | <li>If the request would normally result in anything other than a 200 (OK) status code, or if the passed If-Modified-Since date |
---|
| 971 | is invalid, the response is exactly the same as for a normal GET. A date which is later than the server's current time is |
---|
| 972 | invalid. |
---|
[52] | 973 | </li> |
---|
[861] | 974 | <li>If the representation has been modified since the If-Modified-Since date, the response is exactly the same as for a normal |
---|
| 975 | GET. |
---|
[52] | 976 | </li> |
---|
[861] | 977 | <li>If the representation has not been modified since a valid If-Modified-Since date, the server <em class="bcp14">SHOULD</em> return a 304 (Not Modified) response. |
---|
| 978 | </li> |
---|
[52] | 979 | </ol> |
---|
[424] | 980 | <p id="rfc.section.6.3.p.6">The purpose of this feature is to allow efficient updates of cached information with a minimum amount of transaction overhead. </p> |
---|
[729] | 981 | <ul class="empty"> |
---|
| 982 | <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 5.4</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> for full details. |
---|
| 983 | </li> |
---|
| 984 | <li> <b>Note:</b> If-Modified-Since times are interpreted by the server, whose clock might not be synchronized with the client. |
---|
| 985 | </li> |
---|
| 986 | <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] | 987 | function, for deciding whether to send a 304 (Not Modified) response. To get best results when sending an If-Modified-Since |
---|
| 988 | header field for cache validation, clients are advised to use the exact date string received in a previous Last-Modified header |
---|
| 989 | field whenever possible. |
---|
[729] | 990 | </li> |
---|
[994] | 991 | <li> <b>Note:</b> If a client uses an arbitrary date in the If-Modified-Since header field instead of a date taken from the Last-Modified header |
---|
| 992 | field for the same request, the client needs to be aware that this date is interpreted in the server's understanding of time. |
---|
| 993 | Unsynchronized clocks and rounding problems, due to the different encodings of time between the client and server, are concerns. |
---|
| 994 | This includes the possibility of race conditions if the document has changed between the time it was first requested and the |
---|
| 995 | If-Modified-Since date of a subsequent request, and the possibility of clock-skew-related problems if the If-Modified-Since |
---|
| 996 | date is derived from the client's clock without correction to the server's clock. Corrections for different time bases between |
---|
| 997 | client and server are at best approximate due to network latency. |
---|
[729] | 998 | </li> |
---|
| 999 | </ul> |
---|
[424] | 1000 | <p id="rfc.section.6.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] | 1001 | fields is undefined by this specification. |
---|
| 1002 | </p> |
---|
| 1003 | <div id="rfc.iref.i.3"></div> |
---|
| 1004 | <div id="rfc.iref.h.4"></div> |
---|
[424] | 1005 | <h2 id="rfc.section.6.4"><a href="#rfc.section.6.4">6.4</a> <a id="header.if-none-match" href="#header.if-none-match">If-None-Match</a></h2> |
---|
[875] | 1006 | <p id="rfc.section.6.4.p.1">The "If-None-Match" request-header field is used to make a request method conditional. A client that has one or more representations |
---|
| 1007 | previously obtained from the resource can verify that none of those representations is current by including a list of their |
---|
| 1008 | associated entity-tags in the If-None-Match header field. |
---|
[52] | 1009 | </p> |
---|
[698] | 1010 | <p id="rfc.section.6.4.p.2">This allows efficient updates of cached information with a minimum amount of transaction overhead. It is also used to prevent |
---|
[763] | 1011 | a method (e.g., PUT) from inadvertently modifying an existing resource when the client believes that the resource does not |
---|
[698] | 1012 | exist. |
---|
| 1013 | </p> |
---|
[875] | 1014 | <p id="rfc.section.6.4.p.3">As a special case, the value "*" matches any current representation of the resource.</p> |
---|
[800] | 1015 | <div id="rfc.figure.u.13"></div><pre class="inline"><span id="rfc.iref.g.10"></span><span id="rfc.iref.g.11"></span> <a href="#header.if-none-match" class="smpl">If-None-Match</a> = "If-None-Match" ":" <a href="#core.rules" class="smpl">OWS</a> <a href="#header.if-none-match" class="smpl">If-None-Match-v</a> |
---|
[362] | 1016 | <a href="#header.if-none-match" class="smpl">If-None-Match-v</a> = "*" / 1#<a href="#entity.tags" class="smpl">entity-tag</a> |
---|
[875] | 1017 | </pre><p id="rfc.section.6.4.p.5">If any of the entity-tags match the entity-tag of the representation that would have been returned in the response to a similar |
---|
[994] | 1018 | GET request (without the If-None-Match header field) on that resource, or if "*" is given and any current representation exists |
---|
[868] | 1019 | for that resource, 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 |
---|
| 1020 | 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 representations |
---|
[928] | 1021 | that matched. For all other request methods, the server <em class="bcp14">MUST</em> respond with a 412 (Precondition Failed) status code. |
---|
[52] | 1022 | </p> |
---|
[875] | 1023 | <p id="rfc.section.6.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] | 1024 | </p> |
---|
[928] | 1025 | <p id="rfc.section.6.4.p.7">If the request would, without the If-None-Match header field, result in anything other than a 2xx or 304 status code, then |
---|
[994] | 1026 | the If-None-Match header field <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 5</a> for a discussion of server behavior when both If-Modified-Since and If-None-Match appear in the same request.) |
---|
[52] | 1027 | </p> |
---|
[698] | 1028 | <p id="rfc.section.6.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 3.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] | 1029 | </p> |
---|
[698] | 1030 | <p id="rfc.section.6.4.p.9">Examples:</p> |
---|
[800] | 1031 | <div id="rfc.figure.u.14"></div><pre class="text"> If-None-Match: "xyzzy" |
---|
[362] | 1032 | If-None-Match: W/"xyzzy" |
---|
| 1033 | If-None-Match: "xyzzy", "r2d2xxxx", "c3piozzzz" |
---|
| 1034 | If-None-Match: W/"xyzzy", W/"r2d2xxxx", W/"c3piozzzz" |
---|
| 1035 | If-None-Match: * |
---|
[698] | 1036 | </pre><p id="rfc.section.6.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] | 1037 | fields is undefined by this specification. |
---|
| 1038 | </p> |
---|
| 1039 | <div id="rfc.iref.i.4"></div> |
---|
| 1040 | <div id="rfc.iref.h.5"></div> |
---|
[424] | 1041 | <h2 id="rfc.section.6.5"><a href="#rfc.section.6.5">6.5</a> <a id="header.if-unmodified-since" href="#header.if-unmodified-since">If-Unmodified-Since</a></h2> |
---|
[861] | 1042 | <p id="rfc.section.6.5.p.1">The "If-Unmodified-Since" request-header field is used to make a request method conditional. If the representation that would |
---|
| 1043 | have been transferred in a 200 response to a GET request on the same resource has not been modified since the time specified |
---|
[994] | 1044 | in this field, the server <em class="bcp14">SHOULD</em> perform the requested operation as if the If-Unmodified-Since header field were not present. |
---|
[52] | 1045 | </p> |
---|
[861] | 1046 | <p id="rfc.section.6.5.p.2">If the representation 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] | 1047 | </p> |
---|
[800] | 1048 | <div id="rfc.figure.u.15"></div><pre class="inline"><span id="rfc.iref.g.12"></span><span id="rfc.iref.g.13"></span> <a href="#header.if-unmodified-since" class="smpl">If-Unmodified-Since</a> = "If-Unmodified-Since" ":" <a href="#core.rules" class="smpl">OWS</a> |
---|
[376] | 1049 | <a href="#header.if-unmodified-since" class="smpl">If-Unmodified-Since-v</a> |
---|
[362] | 1050 | <a href="#header.if-unmodified-since" class="smpl">If-Unmodified-Since-v</a> = <a href="#abnf.dependencies" class="smpl">HTTP-date</a> |
---|
[424] | 1051 | </pre><p id="rfc.section.6.5.p.4">An example of the field is:</p> |
---|
[800] | 1052 | <div id="rfc.figure.u.16"></div><pre class="text"> If-Unmodified-Since: Sat, 29 Oct 1994 19:43:31 GMT |
---|
[994] | 1053 | </pre><p id="rfc.section.6.5.p.6">If the request normally (i.e., without the If-Unmodified-Since header field) would result in anything other than a 2xx or |
---|
| 1054 | 412 status code, the If-Unmodified-Since header field <em class="bcp14">SHOULD</em> be ignored. |
---|
[52] | 1055 | </p> |
---|
[994] | 1056 | <p id="rfc.section.6.5.p.7">If the specified date is invalid, the header field is ignored.</p> |
---|
[424] | 1057 | <p id="rfc.section.6.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] | 1058 | header fields is undefined by this specification. |
---|
| 1059 | </p> |
---|
| 1060 | <div id="rfc.iref.l.1"></div> |
---|
| 1061 | <div id="rfc.iref.h.6"></div> |
---|
[424] | 1062 | <h2 id="rfc.section.6.6"><a href="#rfc.section.6.6">6.6</a> <a id="header.last-modified" href="#header.last-modified">Last-Modified</a></h2> |
---|
[966] | 1063 | <p id="rfc.section.6.6.p.1">The "Last-Modified" header field indicates the date and time at which the origin server believes the representation was last |
---|
| 1064 | modified. |
---|
[52] | 1065 | </p> |
---|
[800] | 1066 | <div id="rfc.figure.u.17"></div><pre class="inline"><span id="rfc.iref.g.14"></span><span id="rfc.iref.g.15"></span> <a href="#header.last-modified" class="smpl">Last-Modified</a> = "Last-Modified" ":" <a href="#core.rules" class="smpl">OWS</a> <a href="#header.last-modified" class="smpl">Last-Modified-v</a> |
---|
[362] | 1067 | <a href="#header.last-modified" class="smpl">Last-Modified-v</a> = <a href="#abnf.dependencies" class="smpl">HTTP-date</a> |
---|
[424] | 1068 | </pre><p id="rfc.section.6.6.p.3">An example of its use is</p> |
---|
[800] | 1069 | <div id="rfc.figure.u.18"></div><pre class="text"> Last-Modified: Tue, 15 Nov 1994 12:45:26 GMT |
---|
[424] | 1070 | </pre><p id="rfc.section.6.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. |
---|
[912] | 1071 | For files, it might be just the file system last-modified time. For representations with dynamically included parts, it might |
---|
| 1072 | be the most recent of the set of last-modify times for its component parts. For database gateways, it might be the last-update |
---|
| 1073 | time stamp of the record. For virtual objects, it might be the last time the internal state changed. |
---|
[52] | 1074 | </p> |
---|
[424] | 1075 | <p id="rfc.section.6.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] | 1076 | last modification would indicate some time in the future, the server <em class="bcp14">MUST</em> replace that date with the message origination date. |
---|
| 1077 | </p> |
---|
[868] | 1078 | <p id="rfc.section.6.6.p.7">An origin server <em class="bcp14">SHOULD</em> obtain the Last-Modified value of the representation as close as possible to the time that it generates the Date value of |
---|
[875] | 1079 | its response. This allows a recipient to make an accurate assessment of the representation's modification time, especially |
---|
| 1080 | if the representation changes near the time that the response is generated. |
---|
[52] | 1081 | </p> |
---|
[424] | 1082 | <p id="rfc.section.6.6.p.8">HTTP/1.1 servers <em class="bcp14">SHOULD</em> send Last-Modified whenever feasible. |
---|
[52] | 1083 | </p> |
---|
[966] | 1084 | <p id="rfc.section.6.6.p.9">The Last-Modified header field value is often used as a cache validator. In simple terms, a cache entry is considered to be |
---|
| 1085 | valid if the representation has not been modified since the Last-Modified value. |
---|
[183] | 1086 | </p> |
---|
[424] | 1087 | <h1 id="rfc.section.7"><a href="#rfc.section.7">7.</a> <a id="IANA.considerations" href="#IANA.considerations">IANA Considerations</a></h1> |
---|
[700] | 1088 | <h2 id="rfc.section.7.1"><a href="#rfc.section.7.1">7.1</a> <a id="status.code.registration" href="#status.code.registration">Status Code Registration</a></h2> |
---|
[970] | 1089 | <p id="rfc.section.7.1.p.1">The HTTP Status Code Registry located at <<a href="http://www.iana.org/assignments/http-status-codes">http://www.iana.org/assignments/http-status-codes</a>> shall be updated with the registrations below: |
---|
[203] | 1090 | </p> |
---|
[290] | 1091 | <div id="rfc.table.1"> |
---|
[700] | 1092 | <div id="iana.status.code.registration.table"></div> |
---|
| 1093 | <table class="tt full left" cellpadding="3" cellspacing="0"> |
---|
| 1094 | <thead> |
---|
| 1095 | <tr> |
---|
| 1096 | <th>Value</th> |
---|
| 1097 | <th>Description</th> |
---|
| 1098 | <th>Reference</th> |
---|
| 1099 | </tr> |
---|
| 1100 | </thead> |
---|
| 1101 | <tbody> |
---|
| 1102 | <tr> |
---|
[704] | 1103 | <td class="left">304</td> |
---|
| 1104 | <td class="left">Not Modified</td> |
---|
| 1105 | <td class="left"> <a href="#status.304" id="rfc.xref.status.304.1" title="304 Not Modified">Section 3.1</a> |
---|
[700] | 1106 | </td> |
---|
| 1107 | </tr> |
---|
| 1108 | <tr> |
---|
[704] | 1109 | <td class="left">412</td> |
---|
| 1110 | <td class="left">Precondition Failed</td> |
---|
| 1111 | <td class="left"> <a href="#status.412" id="rfc.xref.status.412.1" title="412 Precondition Failed">Section 3.2</a> |
---|
[700] | 1112 | </td> |
---|
| 1113 | </tr> |
---|
| 1114 | </tbody> |
---|
| 1115 | </table> |
---|
| 1116 | </div> |
---|
[923] | 1117 | <h2 id="rfc.section.7.2"><a href="#rfc.section.7.2">7.2</a> <a id="header.field.registration" href="#header.field.registration">Header Field Registration</a></h2> |
---|
[970] | 1118 | <p id="rfc.section.7.2.p.1">The Message Header Field Registry located at <<a href="http://www.iana.org/assignments/message-headers/message-header-index.html">http://www.iana.org/assignments/message-headers/message-header-index.html</a>> shall be updated with the permanent registrations below (see <a href="#RFC3864" id="rfc.xref.RFC3864.1"><cite title="Registration Procedures for Message Header Fields">[RFC3864]</cite></a>): |
---|
[700] | 1119 | </p> |
---|
| 1120 | <div id="rfc.table.2"> |
---|
[290] | 1121 | <div id="iana.header.registration.table"></div> |
---|
[675] | 1122 | <table class="tt full left" cellpadding="3" cellspacing="0"> |
---|
[253] | 1123 | <thead> |
---|
| 1124 | <tr> |
---|
| 1125 | <th>Header Field Name</th> |
---|
| 1126 | <th>Protocol</th> |
---|
| 1127 | <th>Status</th> |
---|
| 1128 | <th>Reference</th> |
---|
| 1129 | </tr> |
---|
| 1130 | </thead> |
---|
| 1131 | <tbody> |
---|
| 1132 | <tr> |
---|
[704] | 1133 | <td class="left">ETag</td> |
---|
| 1134 | <td class="left">http</td> |
---|
| 1135 | <td class="left">standard</td> |
---|
| 1136 | <td class="left"> <a href="#header.etag" id="rfc.xref.header.etag.2" title="ETag">Section 6.1</a> |
---|
[253] | 1137 | </td> |
---|
| 1138 | </tr> |
---|
| 1139 | <tr> |
---|
[704] | 1140 | <td class="left">If-Match</td> |
---|
| 1141 | <td class="left">http</td> |
---|
| 1142 | <td class="left">standard</td> |
---|
| 1143 | <td class="left"> <a href="#header.if-match" id="rfc.xref.header.if-match.2" title="If-Match">Section 6.2</a> |
---|
[253] | 1144 | </td> |
---|
| 1145 | </tr> |
---|
| 1146 | <tr> |
---|
[704] | 1147 | <td class="left">If-Modified-Since</td> |
---|
| 1148 | <td class="left">http</td> |
---|
| 1149 | <td class="left">standard</td> |
---|
| 1150 | <td class="left"> <a href="#header.if-modified-since" id="rfc.xref.header.if-modified-since.1" title="If-Modified-Since">Section 6.3</a> |
---|
[253] | 1151 | </td> |
---|
| 1152 | </tr> |
---|
| 1153 | <tr> |
---|
[704] | 1154 | <td class="left">If-None-Match</td> |
---|
| 1155 | <td class="left">http</td> |
---|
| 1156 | <td class="left">standard</td> |
---|
| 1157 | <td class="left"> <a href="#header.if-none-match" id="rfc.xref.header.if-none-match.2" title="If-None-Match">Section 6.4</a> |
---|
[253] | 1158 | </td> |
---|
| 1159 | </tr> |
---|
| 1160 | <tr> |
---|
[704] | 1161 | <td class="left">If-Unmodified-Since</td> |
---|
| 1162 | <td class="left">http</td> |
---|
| 1163 | <td class="left">standard</td> |
---|
| 1164 | <td class="left"> <a href="#header.if-unmodified-since" id="rfc.xref.header.if-unmodified-since.1" title="If-Unmodified-Since">Section 6.5</a> |
---|
[253] | 1165 | </td> |
---|
| 1166 | </tr> |
---|
| 1167 | <tr> |
---|
[704] | 1168 | <td class="left">Last-Modified</td> |
---|
| 1169 | <td class="left">http</td> |
---|
| 1170 | <td class="left">standard</td> |
---|
| 1171 | <td class="left"> <a href="#header.last-modified" id="rfc.xref.header.last-modified.1" title="Last-Modified">Section 6.6</a> |
---|
[253] | 1172 | </td> |
---|
| 1173 | </tr> |
---|
| 1174 | </tbody> |
---|
| 1175 | </table> |
---|
| 1176 | </div> |
---|
[700] | 1177 | <p id="rfc.section.7.2.p.2">The change controller is: "IETF (iesg@ietf.org) - Internet Engineering Task Force".</p> |
---|
[424] | 1178 | <h1 id="rfc.section.8"><a href="#rfc.section.8">8.</a> <a id="security.considerations" href="#security.considerations">Security Considerations</a></h1> |
---|
[800] | 1179 | <p id="rfc.section.8.p.1">No additional security considerations have been identified beyond those applicable to HTTP in general <a href="#Part1" id="rfc.xref.Part1.9"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>. |
---|
[52] | 1180 | </p> |
---|
[424] | 1181 | <h1 id="rfc.section.9"><a href="#rfc.section.9">9.</a> <a id="ack" href="#ack">Acknowledgments</a></h1> |
---|
| 1182 | <h1 id="rfc.references"><a id="rfc.section.10" href="#rfc.section.10">10.</a> References |
---|
[52] | 1183 | </h1> |
---|
[424] | 1184 | <h2 id="rfc.references.1"><a href="#rfc.section.10.1" id="rfc.section.10.1">10.1</a> Normative References |
---|
[119] | 1185 | </h2> |
---|
[800] | 1186 | <table> |
---|
[52] | 1187 | <tr> |
---|
| 1188 | <td class="reference"><b id="Part1">[Part1]</b></td> |
---|
[1106] | 1189 | <td class="top"><a href="mailto:fielding@gbiv.com" title="Adobe Systems Incorporated">Fielding, R., Ed.</a>, <a href="mailto:jg@freedesktop.org" title="Alcatel-Lucent Bell Labs">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-latest">HTTP/1.1, part 1: URIs, Connections, and Message Parsing</a>”, Internet-Draft draft-ietf-httpbis-p1-messaging-latest (work in progress), February 2011. |
---|
[52] | 1190 | </td> |
---|
| 1191 | </tr> |
---|
| 1192 | <tr> |
---|
[800] | 1193 | <td class="reference"><b id="Part3">[Part3]</b></td> |
---|
[1106] | 1194 | <td class="top"><a href="mailto:fielding@gbiv.com" title="Adobe Systems Incorporated">Fielding, R., Ed.</a>, <a href="mailto:jg@freedesktop.org" title="Alcatel-Lucent Bell Labs">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-p3-payload-latest">HTTP/1.1, part 3: Message Payload and Content Negotiation</a>”, Internet-Draft draft-ietf-httpbis-p3-payload-latest (work in progress), February 2011. |
---|
[800] | 1195 | </td> |
---|
| 1196 | </tr> |
---|
| 1197 | <tr> |
---|
[52] | 1198 | <td class="reference"><b id="Part5">[Part5]</b></td> |
---|
[1106] | 1199 | <td class="top"><a href="mailto:fielding@gbiv.com" title="Adobe Systems Incorporated">Fielding, R., Ed.</a>, <a href="mailto:jg@freedesktop.org" title="Alcatel-Lucent Bell Labs">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-latest">HTTP/1.1, part 5: Range Requests and Partial Responses</a>”, Internet-Draft draft-ietf-httpbis-p5-range-latest (work in progress), February 2011. |
---|
[52] | 1200 | </td> |
---|
| 1201 | </tr> |
---|
| 1202 | <tr> |
---|
| 1203 | <td class="reference"><b id="Part6">[Part6]</b></td> |
---|
[1106] | 1204 | <td class="top"><a href="mailto:fielding@gbiv.com" title="Adobe Systems Incorporated">Fielding, R., Ed.</a>, <a href="mailto:jg@freedesktop.org" title="Alcatel-Lucent Bell Labs">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>, <a href="mailto:mnot@mnot.net">Nottingham, M., 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-latest">HTTP/1.1, part 6: Caching</a>”, Internet-Draft draft-ietf-httpbis-p6-cache-latest (work in progress), February 2011. |
---|
[52] | 1205 | </td> |
---|
| 1206 | </tr> |
---|
| 1207 | <tr> |
---|
[119] | 1208 | <td class="reference"><b id="RFC2119">[RFC2119]</b></td> |
---|
[704] | 1209 | <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] | 1210 | </td> |
---|
| 1211 | </tr> |
---|
[425] | 1212 | <tr> |
---|
| 1213 | <td class="reference"><b id="RFC5234">[RFC5234]</b></td> |
---|
[704] | 1214 | <td class="top"><a href="mailto:dcrocker@bbiw.net" title="Brandenburg InternetWorking">Crocker, D., Ed.</a> and <a href="mailto:paul.overell@thus.net" title="THUS plc.">P. Overell</a>, “<a href="http://tools.ietf.org/html/rfc5234">Augmented BNF for Syntax Specifications: ABNF</a>”, STD 68, RFC 5234, January 2008. |
---|
[425] | 1215 | </td> |
---|
| 1216 | </tr> |
---|
[119] | 1217 | </table> |
---|
[424] | 1218 | <h2 id="rfc.references.2"><a href="#rfc.section.10.2" id="rfc.section.10.2">10.2</a> Informative References |
---|
[119] | 1219 | </h2> |
---|
[704] | 1220 | <table> |
---|
[52] | 1221 | <tr> |
---|
| 1222 | <td class="reference"><b id="RFC2616">[RFC2616]</b></td> |
---|
[704] | 1223 | <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] | 1224 | </td> |
---|
| 1225 | </tr> |
---|
[253] | 1226 | <tr> |
---|
| 1227 | <td class="reference"><b id="RFC3864">[RFC3864]</b></td> |
---|
[704] | 1228 | <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] | 1229 | </td> |
---|
| 1230 | </tr> |
---|
[52] | 1231 | </table> |
---|
[662] | 1232 | <div class="avoidbreak"> |
---|
| 1233 | <h1 id="rfc.authors"><a href="#rfc.authors">Authors' Addresses</a></h1> |
---|
| 1234 | <address class="vcard"><span class="vcardline"><span class="fn">Roy T. Fielding</span> |
---|
| 1235 | (editor) |
---|
[1106] | 1236 | <span class="n hidden"><span class="family-name">Fielding</span><span class="given-name">Roy T.</span></span></span><span class="org vcardline">Adobe Systems Incorporated</span><span class="adr"><span class="street-address vcardline">345 Park Ave</span><span class="vcardline"><span class="locality">San Jose</span>, <span class="region">CA</span> <span class="postal-code">95110</span></span><span class="country-name vcardline">USA</span></span><span class="vcardline">Email: <a href="mailto:fielding@gbiv.com"><span class="email">fielding@gbiv.com</span></a></span><span class="vcardline">URI: <a href="http://roy.gbiv.com/" class="url">http://roy.gbiv.com/</a></span></address> |
---|
[844] | 1237 | <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">Alcatel-Lucent Bell Labs</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@freedesktop.org"><span class="email">jg@freedesktop.org</span></a></span><span class="vcardline">URI: <a href="http://gettys.wordpress.com/" class="url">http://gettys.wordpress.com/</a></span></address> |
---|
[799] | 1238 | <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> |
---|
| 1239 | <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> |
---|
[1106] | 1240 | <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> |
---|
[799] | 1241 | <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> |
---|
| 1242 | <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> |
---|
[662] | 1243 | <address class="vcard"><span class="vcardline"><span class="fn">Yves Lafon</span> |
---|
| 1244 | (editor) |
---|
[799] | 1245 | <span class="n hidden"><span class="family-name">Lafon</span><span class="given-name">Yves</span></span></span><span class="org vcardline">World Wide Web Consortium</span><span class="adr"><span class="street-address vcardline">W3C / ERCIM</span><span class="street-address vcardline">2004, rte des Lucioles</span><span class="vcardline"><span class="locality">Sophia-Antipolis</span>, <span class="region">AM</span> <span class="postal-code">06902</span></span><span class="country-name vcardline">France</span></span><span class="vcardline">Email: <a href="mailto:ylafon@w3.org"><span class="email">ylafon@w3.org</span></a></span><span class="vcardline">URI: <a href="http://www.raubacapeu.net/people/yves/" class="url">http://www.raubacapeu.net/people/yves/</a></span></address> |
---|
[662] | 1246 | <address class="vcard"><span class="vcardline"><span class="fn">Julian F. Reschke</span> |
---|
| 1247 | (editor) |
---|
[799] | 1248 | <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> |
---|
[662] | 1249 | </div> |
---|
[912] | 1250 | <h1 id="rfc.section.A" class="np"><a href="#rfc.section.A">A.</a> <a id="changes.from.rfc.2616" href="#changes.from.rfc.2616">Changes from RFC 2616</a></h1> |
---|
| 1251 | <p id="rfc.section.A.p.1">Allow weak entity-tags in all requests except range requests (Sections <a href="#weak.and.strong.validators" title="Weak and Strong Validators">4</a> and <a href="#header.if-none-match" id="rfc.xref.header.if-none-match.3" title="If-None-Match">6.4</a>). |
---|
[245] | 1252 | </p> |
---|
[421] | 1253 | <h1 id="rfc.section.B"><a href="#rfc.section.B">B.</a> <a id="collected.abnf" href="#collected.abnf">Collected ABNF</a></h1> |
---|
[800] | 1254 | <div id="rfc.figure.u.19"></div> <pre class="inline"><a href="#header.etag" class="smpl">ETag</a> = "ETag:" OWS ETag-v |
---|
[427] | 1255 | <a href="#header.etag" class="smpl">ETag-v</a> = entity-tag |
---|
| 1256 | |
---|
[678] | 1257 | <a href="#abnf.dependencies" class="smpl">HTTP-date</a> = <HTTP-date, defined in [Part1], Section 6.1> |
---|
[427] | 1258 | |
---|
| 1259 | <a href="#header.if-match" class="smpl">If-Match</a> = "If-Match:" OWS If-Match-v |
---|
| 1260 | <a href="#header.if-match" class="smpl">If-Match-v</a> = "*" / ( *( "," OWS ) entity-tag *( OWS "," [ OWS |
---|
[421] | 1261 | entity-tag ] ) ) |
---|
[427] | 1262 | <a href="#header.if-modified-since" class="smpl">If-Modified-Since</a> = "If-Modified-Since:" OWS If-Modified-Since-v |
---|
| 1263 | <a href="#header.if-modified-since" class="smpl">If-Modified-Since-v</a> = HTTP-date |
---|
| 1264 | <a href="#header.if-none-match" class="smpl">If-None-Match</a> = "If-None-Match:" OWS If-None-Match-v |
---|
| 1265 | <a href="#header.if-none-match" class="smpl">If-None-Match-v</a> = "*" / ( *( "," OWS ) entity-tag *( OWS "," [ OWS |
---|
[421] | 1266 | entity-tag ] ) ) |
---|
[427] | 1267 | <a href="#header.if-unmodified-since" class="smpl">If-Unmodified-Since</a> = "If-Unmodified-Since:" OWS |
---|
[421] | 1268 | If-Unmodified-Since-v |
---|
[427] | 1269 | <a href="#header.if-unmodified-since" class="smpl">If-Unmodified-Since-v</a> = HTTP-date |
---|
| 1270 | |
---|
| 1271 | <a href="#header.last-modified" class="smpl">Last-Modified</a> = "Last-Modified:" OWS Last-Modified-v |
---|
| 1272 | <a href="#header.last-modified" class="smpl">Last-Modified-v</a> = HTTP-date |
---|
| 1273 | |
---|
| 1274 | <a href="#core.rules" class="smpl">OWS</a> = <OWS, defined in [Part1], Section 1.2.2> |
---|
| 1275 | |
---|
| 1276 | <a href="#entity.tags" class="smpl">entity-tag</a> = [ weak ] opaque-tag |
---|
| 1277 | |
---|
| 1278 | <a href="#entity.tags" class="smpl">opaque-tag</a> = quoted-string |
---|
| 1279 | |
---|
| 1280 | <a href="#core.rules" class="smpl">quoted-string</a> = <quoted-string, defined in [Part1], Section 1.2.2> |
---|
| 1281 | |
---|
[581] | 1282 | <a href="#entity.tags" class="smpl">weak</a> = %x57.2F ; W/ |
---|
[800] | 1283 | </pre> <div id="rfc.figure.u.20"></div> |
---|
[454] | 1284 | <p>ABNF diagnostics:</p><pre class="inline">; ETag defined but not used |
---|
[421] | 1285 | ; If-Match defined but not used |
---|
| 1286 | ; If-Modified-Since defined but not used |
---|
| 1287 | ; If-None-Match defined but not used |
---|
| 1288 | ; If-Unmodified-Since defined but not used |
---|
| 1289 | ; Last-Modified defined but not used |
---|
[454] | 1290 | </pre><h1 id="rfc.section.C"><a href="#rfc.section.C">C.</a> <a id="change.log" href="#change.log">Change Log (to be removed by RFC Editor before publication)</a></h1> |
---|
[1002] | 1291 | <h2 id="rfc.section.C.1"><a href="#rfc.section.C.1">C.1</a> Since RFC 2616 |
---|
[115] | 1292 | </h2> |
---|
[421] | 1293 | <p id="rfc.section.C.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>. |
---|
[115] | 1294 | </p> |
---|
[421] | 1295 | <h2 id="rfc.section.C.2"><a href="#rfc.section.C.2">C.2</a> Since draft-ietf-httpbis-p4-conditional-00 |
---|
[115] | 1296 | </h2> |
---|
[421] | 1297 | <p id="rfc.section.C.2.p.1">Closed issues: </p> |
---|
[116] | 1298 | <ul> |
---|
[324] | 1299 | <li> <<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/35">http://tools.ietf.org/wg/httpbis/trac/ticket/35</a>>: "Normative and Informative references" |
---|
[152] | 1300 | </li> |
---|
| 1301 | </ul> |
---|
[421] | 1302 | <p id="rfc.section.C.2.p.2">Other changes: </p> |
---|
[152] | 1303 | <ul> |
---|
[116] | 1304 | <li>Move definitions of 304 and 412 condition codes from Part2.</li> |
---|
| 1305 | </ul> |
---|
[421] | 1306 | <h2 id="rfc.section.C.3"><a href="#rfc.section.C.3">C.3</a> Since draft-ietf-httpbis-p4-conditional-01 |
---|
[170] | 1307 | </h2> |
---|
[421] | 1308 | <p id="rfc.section.C.3.p.1">Ongoing work on ABNF conversion (<<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/36">http://tools.ietf.org/wg/httpbis/trac/ticket/36</a>>): |
---|
[205] | 1309 | </p> |
---|
| 1310 | <ul> |
---|
| 1311 | <li>Add explicit references to BNF syntax and rules imported from other parts of the specification.</li> |
---|
| 1312 | </ul> |
---|
[421] | 1313 | <h2 id="rfc.section.C.4"><a href="#rfc.section.C.4">C.4</a> <a id="changes.since.02" href="#changes.since.02">Since draft-ietf-httpbis-p4-conditional-02</a></h2> |
---|
| 1314 | <p id="rfc.section.C.4.p.1">Closed issues: </p> |
---|
[245] | 1315 | <ul> |
---|
[324] | 1316 | <li> <<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/116">http://tools.ietf.org/wg/httpbis/trac/ticket/116</a>>: "Weak ETags on non-GET requests" |
---|
[245] | 1317 | </li> |
---|
| 1318 | </ul> |
---|
[994] | 1319 | <p id="rfc.section.C.4.p.2">Ongoing work on IANA Message Header Field Registration (<<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/40">http://tools.ietf.org/wg/httpbis/trac/ticket/40</a>>): |
---|
[253] | 1320 | </p> |
---|
| 1321 | <ul> |
---|
[994] | 1322 | <li>Reference RFC 3984, and update header field registrations for header fields defined in this document.</li> |
---|
[253] | 1323 | </ul> |
---|
[421] | 1324 | <h2 id="rfc.section.C.5"><a href="#rfc.section.C.5">C.5</a> <a id="changes.since.03" href="#changes.since.03">Since draft-ietf-httpbis-p4-conditional-03</a></h2> |
---|
| 1325 | <p id="rfc.section.C.5.p.1">Closed issues: </p> |
---|
[298] | 1326 | <ul> |
---|
[324] | 1327 | <li> <<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/71">http://tools.ietf.org/wg/httpbis/trac/ticket/71</a>>: "Examples for ETag matching" |
---|
[298] | 1328 | </li> |
---|
[324] | 1329 | <li> <<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/124">http://tools.ietf.org/wg/httpbis/trac/ticket/124</a>>: "'entity value' undefined" |
---|
[302] | 1330 | </li> |
---|
[324] | 1331 | <li> <<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/126">http://tools.ietf.org/wg/httpbis/trac/ticket/126</a>>: "bogus 2068 Date header reference" |
---|
[306] | 1332 | </li> |
---|
[298] | 1333 | </ul> |
---|
[421] | 1334 | <h2 id="rfc.section.C.6"><a href="#rfc.section.C.6">C.6</a> <a id="changes.since.04" href="#changes.since.04">Since draft-ietf-httpbis-p4-conditional-04</a></h2> |
---|
| 1335 | <p id="rfc.section.C.6.p.1">Ongoing work on ABNF conversion (<<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/36">http://tools.ietf.org/wg/httpbis/trac/ticket/36</a>>): |
---|
[334] | 1336 | </p> |
---|
| 1337 | <ul> |
---|
| 1338 | <li>Use "/" instead of "|" for alternatives.</li> |
---|
[362] | 1339 | <li>Introduce new ABNF rules for "bad" whitespace ("BWS"), optional whitespace ("OWS") and required whitespace ("RWS").</li> |
---|
[994] | 1340 | <li>Rewrite ABNFs to spell out whitespace rules, factor out header field value format definitions.</li> |
---|
[334] | 1341 | </ul> |
---|
[421] | 1342 | <h2 id="rfc.section.C.7"><a href="#rfc.section.C.7">C.7</a> <a id="changes.since.05" href="#changes.since.05">Since draft-ietf-httpbis-p4-conditional-05</a></h2> |
---|
[543] | 1343 | <p id="rfc.section.C.7.p.1">Final work on ABNF conversion (<<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/36">http://tools.ietf.org/wg/httpbis/trac/ticket/36</a>>): |
---|
[421] | 1344 | </p> |
---|
| 1345 | <ul> |
---|
[424] | 1346 | <li>Add appendix containing collected and expanded ABNF, reorganize ABNF introduction.</li> |
---|
[421] | 1347 | </ul> |
---|
[547] | 1348 | <h2 id="rfc.section.C.8"><a href="#rfc.section.C.8">C.8</a> <a id="changes.since.06" href="#changes.since.06">Since draft-ietf-httpbis-p4-conditional-06</a></h2> |
---|
[570] | 1349 | <p id="rfc.section.C.8.p.1">Closed issues: </p> |
---|
| 1350 | <ul> |
---|
| 1351 | <li> <<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/153">http://tools.ietf.org/wg/httpbis/trac/ticket/153</a>>: "case-sensitivity of etag weakness indicator" |
---|
| 1352 | </li> |
---|
| 1353 | </ul> |
---|
[604] | 1354 | <h2 id="rfc.section.C.9"><a href="#rfc.section.C.9">C.9</a> <a id="changes.since.07" href="#changes.since.07">Since draft-ietf-httpbis-p4-conditional-07</a></h2> |
---|
[660] | 1355 | <p id="rfc.section.C.9.p.1">Closed issues: </p> |
---|
| 1356 | <ul> |
---|
| 1357 | <li> <<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/116">http://tools.ietf.org/wg/httpbis/trac/ticket/116</a>>: "Weak ETags on non-GET requests" (If-Match still was defined to require strong matching) |
---|
| 1358 | </li> |
---|
[700] | 1359 | <li> <<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/198">http://tools.ietf.org/wg/httpbis/trac/ticket/198</a>>: "move IANA registrations for optional status codes" |
---|
| 1360 | </li> |
---|
[660] | 1361 | </ul> |
---|
[720] | 1362 | <h2 id="rfc.section.C.10"><a href="#rfc.section.C.10">C.10</a> <a id="changes.since.08" href="#changes.since.08">Since draft-ietf-httpbis-p4-conditional-08</a></h2> |
---|
[765] | 1363 | <p id="rfc.section.C.10.p.1">No significant changes.</p> |
---|
[773] | 1364 | <h2 id="rfc.section.C.11"><a href="#rfc.section.C.11">C.11</a> <a id="changes.since.09" href="#changes.since.09">Since draft-ietf-httpbis-p4-conditional-09</a></h2> |
---|
[841] | 1365 | <p id="rfc.section.C.11.p.1">No significant changes.</p> |
---|
| 1366 | <h2 id="rfc.section.C.12"><a href="#rfc.section.C.12">C.12</a> <a id="changes.since.10" href="#changes.since.10">Since draft-ietf-httpbis-p4-conditional-10</a></h2> |
---|
[863] | 1367 | <p id="rfc.section.C.12.p.1">Closed issues: </p> |
---|
| 1368 | <ul> |
---|
| 1369 | <li> <<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/69">http://tools.ietf.org/wg/httpbis/trac/ticket/69</a>>: "Clarify 'Requested Variant'" |
---|
| 1370 | </li> |
---|
| 1371 | <li> <<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/109">http://tools.ietf.org/wg/httpbis/trac/ticket/109</a>>: "Clarify entity / representation / variant terminology" |
---|
| 1372 | </li> |
---|
[912] | 1373 | <li> <<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/220">http://tools.ietf.org/wg/httpbis/trac/ticket/220</a>>: "consider removing the 'changes from 2068' sections" |
---|
| 1374 | </li> |
---|
[863] | 1375 | </ul> |
---|
[973] | 1376 | <h2 id="rfc.section.C.13"><a href="#rfc.section.C.13">C.13</a> <a id="changes.since.11" href="#changes.since.11">Since draft-ietf-httpbis-p4-conditional-11</a></h2> |
---|
[1052] | 1377 | <p id="rfc.section.C.13.p.1">None.</p> |
---|
| 1378 | <h2 id="rfc.section.C.14"><a href="#rfc.section.C.14">C.14</a> <a id="changes.since.12" href="#changes.since.12">Since draft-ietf-httpbis-p4-conditional-12</a></h2> |
---|
| 1379 | <p id="rfc.section.C.14.p.1">None yet.</p> |
---|
[52] | 1380 | <h1 id="rfc.index"><a href="#rfc.index">Index</a></h1> |
---|
| 1381 | <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> |
---|
| 1382 | </p> |
---|
| 1383 | <div class="print2col"> |
---|
| 1384 | <ul class="ind"> |
---|
[1072] | 1385 | <li><a id="rfc.index.3" href="#rfc.index.3"><b>3</b></a><ul> |
---|
| 1386 | <li>304 Not Modified (status code) <a href="#rfc.iref.3"><b>3.1</b></a>, <a href="#rfc.xref.status.304.1">7.1</a></li> |
---|
[52] | 1387 | </ul> |
---|
| 1388 | </li> |
---|
[1072] | 1389 | <li><a id="rfc.index.4" href="#rfc.index.4"><b>4</b></a><ul> |
---|
| 1390 | <li>412 Precondition Failed (status code) <a href="#rfc.iref.4"><b>3.2</b></a>, <a href="#rfc.xref.status.412.1">7.1</a></li> |
---|
[52] | 1391 | </ul> |
---|
| 1392 | </li> |
---|
[1072] | 1393 | <li><a id="rfc.index.E" href="#rfc.index.E"><b>E</b></a><ul> |
---|
[1120] | 1394 | <li>ETag header field <a href="#rfc.xref.header.etag.1">2</a>, <a href="#rfc.iref.e.1"><b>6.1</b></a>, <a href="#rfc.xref.header.etag.2">7.2</a></li> |
---|
[52] | 1395 | </ul> |
---|
| 1396 | </li> |
---|
[1072] | 1397 | <li><a id="rfc.index.G" href="#rfc.index.G"><b>G</b></a><ul> |
---|
| 1398 | <li><tt>Grammar</tt> |
---|
| 1399 | <ul> |
---|
| 1400 | <li><tt>entity-tag</tt> <a href="#rfc.iref.g.1"><b>2</b></a></li> |
---|
| 1401 | <li><tt>ETag</tt> <a href="#rfc.iref.g.4"><b>6.1</b></a></li> |
---|
| 1402 | <li><tt>ETag-v</tt> <a href="#rfc.iref.g.5"><b>6.1</b></a></li> |
---|
| 1403 | <li><tt>If-Match</tt> <a href="#rfc.iref.g.6"><b>6.2</b></a></li> |
---|
| 1404 | <li><tt>If-Match-v</tt> <a href="#rfc.iref.g.7"><b>6.2</b></a></li> |
---|
| 1405 | <li><tt>If-Modified-Since</tt> <a href="#rfc.iref.g.8"><b>6.3</b></a></li> |
---|
| 1406 | <li><tt>If-Modified-Since-v</tt> <a href="#rfc.iref.g.9"><b>6.3</b></a></li> |
---|
| 1407 | <li><tt>If-None-Match</tt> <a href="#rfc.iref.g.10"><b>6.4</b></a></li> |
---|
| 1408 | <li><tt>If-None-Match-v</tt> <a href="#rfc.iref.g.11"><b>6.4</b></a></li> |
---|
| 1409 | <li><tt>If-Unmodified-Since</tt> <a href="#rfc.iref.g.12"><b>6.5</b></a></li> |
---|
| 1410 | <li><tt>If-Unmodified-Since-v</tt> <a href="#rfc.iref.g.13"><b>6.5</b></a></li> |
---|
| 1411 | <li><tt>Last-Modified</tt> <a href="#rfc.iref.g.14"><b>6.6</b></a></li> |
---|
| 1412 | <li><tt>Last-Modified-v</tt> <a href="#rfc.iref.g.15"><b>6.6</b></a></li> |
---|
| 1413 | <li><tt>opaque-tag</tt> <a href="#rfc.iref.g.3"><b>2</b></a></li> |
---|
| 1414 | <li><tt>weak</tt> <a href="#rfc.iref.g.2"><b>2</b></a></li> |
---|
[52] | 1415 | </ul> |
---|
| 1416 | </li> |
---|
| 1417 | </ul> |
---|
| 1418 | </li> |
---|
[1072] | 1419 | <li><a id="rfc.index.H" href="#rfc.index.H"><b>H</b></a><ul> |
---|
[1120] | 1420 | <li>Header Fields |
---|
[1072] | 1421 | <ul> |
---|
| 1422 | <li>ETag <a href="#rfc.xref.header.etag.1">2</a>, <a href="#rfc.iref.h.1"><b>6.1</b></a>, <a href="#rfc.xref.header.etag.2">7.2</a></li> |
---|
| 1423 | <li>If-Match <a href="#rfc.xref.header.if-match.1">2</a>, <a href="#rfc.iref.h.2"><b>6.2</b></a>, <a href="#rfc.xref.header.if-match.2">7.2</a></li> |
---|
| 1424 | <li>If-Modified-Since <a href="#rfc.iref.h.3"><b>6.3</b></a>, <a href="#rfc.xref.header.if-modified-since.1">7.2</a></li> |
---|
| 1425 | <li>If-None-Match <a href="#rfc.xref.header.if-none-match.1">2</a>, <a href="#rfc.iref.h.4"><b>6.4</b></a>, <a href="#rfc.xref.header.if-none-match.2">7.2</a>, <a href="#rfc.xref.header.if-none-match.3">A</a></li> |
---|
| 1426 | <li>If-Unmodified-Since <a href="#rfc.iref.h.5"><b>6.5</b></a>, <a href="#rfc.xref.header.if-unmodified-since.1">7.2</a></li> |
---|
| 1427 | <li>Last-Modified <a href="#rfc.iref.h.6"><b>6.6</b></a>, <a href="#rfc.xref.header.last-modified.1">7.2</a></li> |
---|
[52] | 1428 | </ul> |
---|
| 1429 | </li> |
---|
| 1430 | </ul> |
---|
| 1431 | </li> |
---|
[1072] | 1432 | <li><a id="rfc.index.I" href="#rfc.index.I"><b>I</b></a><ul> |
---|
[1120] | 1433 | <li>If-Match header field <a href="#rfc.xref.header.if-match.1">2</a>, <a href="#rfc.iref.i.1"><b>6.2</b></a>, <a href="#rfc.xref.header.if-match.2">7.2</a></li> |
---|
| 1434 | <li>If-Modified-Since header field <a href="#rfc.iref.i.2"><b>6.3</b></a>, <a href="#rfc.xref.header.if-modified-since.1">7.2</a></li> |
---|
| 1435 | <li>If-None-Match header field <a href="#rfc.xref.header.if-none-match.1">2</a>, <a href="#rfc.iref.i.3"><b>6.4</b></a>, <a href="#rfc.xref.header.if-none-match.2">7.2</a>, <a href="#rfc.xref.header.if-none-match.3">A</a></li> |
---|
| 1436 | <li>If-Unmodified-Since header field <a href="#rfc.iref.i.4"><b>6.5</b></a>, <a href="#rfc.xref.header.if-unmodified-since.1">7.2</a></li> |
---|
[52] | 1437 | </ul> |
---|
| 1438 | </li> |
---|
[1072] | 1439 | <li><a id="rfc.index.L" href="#rfc.index.L"><b>L</b></a><ul> |
---|
[1120] | 1440 | <li>Last-Modified header field <a href="#rfc.iref.l.1"><b>6.6</b></a>, <a href="#rfc.xref.header.last-modified.1">7.2</a></li> |
---|
[52] | 1441 | </ul> |
---|
| 1442 | </li> |
---|
[1072] | 1443 | <li><a id="rfc.index.P" href="#rfc.index.P"><b>P</b></a><ul> |
---|
| 1444 | <li><em>Part1</em> <a href="#rfc.xref.Part1.1">1.2</a>, <a href="#rfc.xref.Part1.2">1.2.1</a>, <a href="#rfc.xref.Part1.3">1.2.1</a>, <a href="#rfc.xref.Part1.4">1.2.1</a>, <a href="#rfc.xref.Part1.5">1.2.2</a>, <a href="#rfc.xref.Part1.6">2.1</a>, <a href="#rfc.xref.Part1.7">3.1</a>, <a href="#rfc.xref.Part1.8">3.1</a>, <a href="#rfc.xref.Part1.9">8</a>, <a href="#Part1"><b>10.1</b></a><ul> |
---|
| 1445 | <li><em>Section 1.2</em> <a href="#rfc.xref.Part1.1">1.2</a></li> |
---|
| 1446 | <li><em>Section 1.2.2</em> <a href="#rfc.xref.Part1.2">1.2.1</a>, <a href="#rfc.xref.Part1.3">1.2.1</a>, <a href="#rfc.xref.Part1.4">1.2.1</a></li> |
---|
| 1447 | <li><em>Section 6.1</em> <a href="#rfc.xref.Part1.5">1.2.2</a></li> |
---|
| 1448 | <li><em>Section 6.2</em> <a href="#rfc.xref.Part1.6">2.1</a></li> |
---|
| 1449 | <li><em>Section 9.3</em> <a href="#rfc.xref.Part1.7">3.1</a></li> |
---|
| 1450 | <li><em>Section 9.3.1</em> <a href="#rfc.xref.Part1.8">3.1</a></li> |
---|
[52] | 1451 | </ul> |
---|
| 1452 | </li> |
---|
[1072] | 1453 | <li><em>Part3</em> <a href="#rfc.xref.Part3.1">2.1</a>, <a href="#rfc.xref.Part3.2">2.1</a>, <a href="#Part3"><b>10.1</b></a><ul> |
---|
| 1454 | <li><em>Section 5</em> <a href="#rfc.xref.Part3.1">2.1</a></li> |
---|
| 1455 | <li><em>Section 6.3</em> <a href="#rfc.xref.Part3.2">2.1</a></li> |
---|
[800] | 1456 | </ul> |
---|
| 1457 | </li> |
---|
[1072] | 1458 | <li><em>Part5</em> <a href="#rfc.xref.Part5.1">2</a>, <a href="#rfc.xref.Part5.2">4</a>, <a href="#rfc.xref.Part5.3">4</a>, <a href="#rfc.xref.Part5.4">6.3</a>, <a href="#Part5"><b>10.1</b></a><ul> |
---|
| 1459 | <li><em>Section 5.3</em> <a href="#rfc.xref.Part5.1">2</a></li> |
---|
| 1460 | <li><em>Section 5.4</em> <a href="#rfc.xref.Part5.4">6.3</a></li> |
---|
[52] | 1461 | </ul> |
---|
| 1462 | </li> |
---|
[1072] | 1463 | <li><em>Part6</em> <a href="#rfc.xref.Part6.1">1</a>, <a href="#rfc.xref.Part6.2">6.2</a>, <a href="#rfc.xref.Part6.3">6.4</a>, <a href="#Part6"><b>10.1</b></a><ul> |
---|
| 1464 | <li><em>Section 3.5</em> <a href="#rfc.xref.Part6.2">6.2</a>, <a href="#rfc.xref.Part6.3">6.4</a></li> |
---|
[52] | 1465 | </ul> |
---|
| 1466 | </li> |
---|
| 1467 | </ul> |
---|
| 1468 | </li> |
---|
[1072] | 1469 | <li><a id="rfc.index.R" href="#rfc.index.R"><b>R</b></a><ul> |
---|
| 1470 | <li><em>RFC2119</em> <a href="#rfc.xref.RFC2119.1">1.1</a>, <a href="#RFC2119"><b>10.1</b></a></li> |
---|
| 1471 | <li><em>RFC2616</em> <a href="#rfc.xref.RFC2616.1">1</a>, <a href="#RFC2616"><b>10.2</b></a>, <a href="#rfc.xref.RFC2616.2">C.1</a></li> |
---|
| 1472 | <li><em>RFC3864</em> <a href="#rfc.xref.RFC3864.1">7.2</a>, <a href="#RFC3864"><b>10.2</b></a></li> |
---|
| 1473 | <li><em>RFC5234</em> <a href="#rfc.xref.RFC5234.1">1.2</a>, <a href="#rfc.xref.RFC5234.2">1.2</a>, <a href="#RFC5234"><b>10.1</b></a><ul> |
---|
| 1474 | <li><em>Appendix B.1</em> <a href="#rfc.xref.RFC5234.2">1.2</a></li> |
---|
[425] | 1475 | </ul> |
---|
| 1476 | </li> |
---|
[52] | 1477 | </ul> |
---|
| 1478 | </li> |
---|
[1072] | 1479 | <li><a id="rfc.index.S" href="#rfc.index.S"><b>S</b></a><ul> |
---|
| 1480 | <li>Status Codes |
---|
| 1481 | <ul> |
---|
| 1482 | <li>304 Not Modified <a href="#rfc.iref.s.1"><b>3.1</b></a>, <a href="#rfc.xref.status.304.1">7.1</a></li> |
---|
| 1483 | <li>412 Precondition Failed <a href="#rfc.iref.s.2"><b>3.2</b></a>, <a href="#rfc.xref.status.412.1">7.1</a></li> |
---|
[52] | 1484 | </ul> |
---|
| 1485 | </li> |
---|
| 1486 | </ul> |
---|
| 1487 | </li> |
---|
| 1488 | </ul> |
---|
| 1489 | </div> |
---|
| 1490 | </body> |
---|
| 1491 | </html> |
---|