This document discusses HTTP/2 server push and how it can be used to improve web performance. It begins with an overview of existing techniques for pushing content like polling, long polling, pushlets, and server-sent events. It then provides details on how HTTP/2 server push works, including the new PUSH_PROMISE frame that allows the server to push associated resources to the client. It examines the benefits of HTTP/2 push like reduced latency and improved caching as well as challenges around flexibility and complexity compared to other push techniques.
12. How to PUSH
Polling / Long Polling
GET /messages HTTP/1.1
Host: queue.example.com
Authorization: ...
HTTP/1.1 200 OK
Content-Length: 100
{ "from": "adbram@montague.net",
"to": "sampson@capulet.com",
"message: "Do you bite your
thumb at us, sir?
}