Hello, foo bar!

[Docs] [txt|pdf] [draft-ietf-httpbi...] [Diff1] [Diff2] [Errata] PROPOSED STANDARD Errata Exist Internet Engineering Task Force (IETF) R. Fielding, Ed. Request for Comments: 7234 Adobe Obsoletes: 2616 M. Nottingham, Ed. Category: Standards Track Akamai ISSN: 2070-1721 J. Reschke, Ed. greenbytes June 2014 Hypertext Transfer Protocol (HTTP/1.1): Caching Abstract The Hypertext Transfer Protocol (HTTP) is a stateless application- level protocol for distributed, collaborative, hypertext information systems. This document defines HTTP caches and the associated header fields that control cache behavior or indicate cacheable response messages. Status of This Memo This is an Internet Standards Track document. This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Further information on Internet Standards is available in Section 2 of RFC 5741. Information about the current status of this document, any errata, and how to provide feedback on it may be obtained at http://www.rfc-editor.org/info/rfc7234. Fielding, et al. Standards Track [Page 1] RFC 7234 HTTP/1.1 Caching June 2014 Copyright Notice Copyright (c) 2014 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License. This document may contain material from IETF Documents or IETF Contributions published or made publicly available before November 10, 2008. The person(s) controlling the copyright in some of this material may not have granted the IETF Trust the right to allow modifications of such material outside the IETF Standards Process. Without obtaining an adequate license from the person(s) controlling the copyright in such materials, this document may not be modified outside the IETF Standards Process, and derivative works of it may not be created outside the IETF Standards Process, except to format it for publication as an RFC or to translate it into languages other than English. Table of Contents 1. Introduction ....................................................4 1.1. Conformance and Error Handling .............................4 1.2. Syntax Notation ............................................4 1.2.1. Delta Seconds .......................................5 2. Overview of Cache Operation .....................................5 3. Storing Responses in Caches .....................................6 3.1. Storing Incomplete Responses ...............................7 3.2. Storing Responses to Authenticated Requests ................7 3.3. Combining Partial Content ..................................8 4. Constructing Responses from Caches ..............................8 4.1. Calculating Secondary Keys with Vary .......................9 4.2. Freshness .................................................11 4.2.1. Calculating Freshness Lifetime .....................12 4.2.2. Calculating Heuristic Freshness ....................13 4.2.3. Calculating Age ....................................13 4.2.4. Serving Stale Responses ............................15 4.3. Validation ................................................16 4.3.1. Sending a Validation Request .......................16 4.3.2. Handling a Received Validation Request .............16 Fielding, et al. Standards Track [Page 2] RFC 7234 HTTP/1.1 Caching June 2014 4.3.3. Handling a Validation Response .....................18 4.3.4. Freshening Stored Responses upon Validation ........18 4.3.5. Freshening Responses via HEAD ......................19 4.4. Invalidation ..............................................20 5. Header Field Definitions .......................................21 5.1. Age .......................................................21 5.2. Cache-Control .............................................21 5.2.1. Request Cache-Control Directives ...................22 5.2.2. Response Cache-Control Directives ..................24 5.2.3. Cache Control Extensions ...........................27 5.3. Expires ...................................................28 5.4. Pragma ....................................................29 5.5. Warning ...................................................29 5.5.1. Warning: 110 - "Response is Stale" .................31 5.5.2. Warning: 111 - "Revalidation Failed" ...............31 5.5.3. Warning: 112 - "Disconnected Operation" ............31 5.5.4. Warning: 113 - "Heuristic Expiration" ..............31 5.5.5. Warning: 199 - "Miscellaneous Warning" .............32 5.5.6. Warning: 214 - "Transformation Applied" ............32 5.5.7. Warning: 299 - "Miscellaneous Persistent Warning" ..32 6. History Lists ..................................................32 7. IANA Considerations ............................................32 7.1. Cache Directive Registry ..................................32 7.1.1. Procedure ..........................................32 7.1.2. Considerations for New Cache Control Directives ....33 7.1.3. Registrations ......................................33 7.2. Warn Code Registry ........................................34 7.2.1. Procedure ..........................................34 7.2.2. Registrations ......................................34 7.3. Header Field Registration .................................34 8. Security Considerations ........................................35 9. Acknowledgments ................................................36 10. References ....................................................36 10.1. Normative References .....................................36 10.2. Informative References ...................................37 Appendix A. Changes from RFC 2616 .................................38 Appendix B. Imported ABNF .........................................39 Appendix C. Collected ABNF ............