Servlet 4.0 Server Push Introduction
Server push is the most visible of the improvements in HTTP/2 to appear in the servlet API. All of the new
features in HTTP/2, including server push, are aimed at improving the perceived performance of the web
browsing experience. Server push derives its contribution to improved perceived browser performance from
the simple fact that servers are in a much better position than clients to know what additional
assets (such as images, stylesheets and scripts) go along with initial requests.
For example, it is possible for servers to know that whenever a browser requests index.html
, it will
shortly thereafter request header.gif
, footer.gif
and style.css
.
Since servers know this, they can preemptively start sending the bytes of these assets along side the bytes
of the index.html
.
Description of the Example
This is a simple Servlet application that uses HTTP/2 Server Push for servlets.
Use This Example
Get Additional Assets from Server