serverpush-serviceworkers-example
serverpush-serviceworkers-example copied to clipboard
HTTP/2 Server Push & Service Workers example
HTTP/2 Server Push & Service Workers example
This code example is explained in https://blog.yld.io/2017/03/01/optimize-with-http-2-server-push-and-service-workers.

(Image: This example with a valid certificate and cached resources - The two pushed resources are cached and later retrieved from disk cache, when Service Worker tries to request them.)
Install the dependencies and start the server
yarn install
npm start