This is an old revision of the document!
Server Push supported on LiteSpeed Web Server
Server Push is a method of information delivery where a server pushes a resource directly to the client without first receiving a request to do so. By doing this the server can attempt to anticipate client requests and pre-push them into the client’s cache in an effort to avoid the usual request-response round trip delay.
Requirements
- LiteSpeed Enterprise 5.2+
- Site use HTTPS
- Browser support HTTP/2
Verification
We are going to introduce how to verify Server Push with WordPress+LScache Site and CloudClare. If you want to try server push manually, please refer Server Push.
Install WordPress and LSCache
Verify browser support HTTP/2
- We can verify browser support HTTP/2 simply by visiting Akamai online tool
Configure LSCache to use Server Push
- Navigate to WordPress Control Panel>LSCache>Settings>Optimize tab
- Set
CSS HTTP/2 Push
andJS HTTP/2 Push
as On
Verify Server Push
Configure CDN to serve with Server Push
Why we use CloudFlare? Cloudflare supports HTTP/2 Server Push with the Link header field on all plan levels. Cloudflare will look for the Link header field, as outlined in RFC 5988, in response headers from the origin server and extract URI-references with parameters rel=preload. These URI will be pushed to the client.
Follow this blog to Setup CDN from LSCache