Internet Engineering Task Force (IETF) K. Oku
Request for Comments: 8297 Fastly
Category: Experimental December 2017
ISSN: 2070-1721
An HTTP Status Code for Indicating Hints
Oku Experimental [Page 1]
RFC 8297 Early Hints December 2017
Table of Contents
1. Introduction
It is common for HTTP responses to contain links to external resources that need to be fetched prior to their use, for example, rendering HTML by a web browser. Having such links available to the client as early as possible helps to minimize perceived latency.
Oku Experimental [Page 2]
RFC 8297 Early Hints December 2017 1.1. Notational ConventionsThe key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.
2. HTTP Status Code 103: Early Hints
The 103 (Early Hints) informational status code indicates to the client that the server is likely to send a final response with the header fields included in the informational response.
Oku Experimental [Page 3]
RFC 8297 Early Hints December 2017
GET / HTTP/1.1 Host: example.com
Oku Experimental [Page 4]
RFC 8297 Early Hints December 2017
HTTP/1.1 103 Early Hints Link: </style.css>; rel=preload; as=style Link: </script.js>; rel=preload; as=script
3. Security Considerations
Some clients might have issues handling a 103 (Early Hints) response, because informational responses are rarely used in reply to requests not including an Expect header field ([RFC7231], Section 5.1.1).
Oku Experimental [Page 5]
RFC 8297 Early Hints December 2017 4. IANA ConsiderationsThe following entry has been registered in the "HTTP Status Codes" registry:
5. References 5.1. Normative References[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
5.2. Informative References
[Preload] Grigorik, I., Ed. and Y. Weiss, Ed., "Preload", W3C
Oku Experimental [Page 6]
RFC 8297 Early Hints December 2017
Acknowledgements