http2 server push example
- By
- 27 agosto, 2020
- No Comments
Let’s check the Network tab again. In this article, I am going to run through the basics of HTTP/2 Server Push and show you how, when combined with Service Workers, you can deliver the ultimate in web performance to your users. From the version 1.13.9, Nginx starts to support server push. As a result of the online assessment, enabling the feature is 8% faster than when it's not enabled, and 5% faster than HTTP/1 of which all resources are embedded in web pages. Push static assets to a client's browser without waiting for HTML to render. So for example, when we request an HTML page, and in that page there will be calls to style sheets, or JavaScripts, or images, or something else, we can have the server push that … Then, using Service Workers you are able to cache these resources so that the browser never needs to make a request to the server again. Server Push is the greatest advancement in HTTP/2 where performance is concerned. For example, put the contents of the stylesheet into the