July 2018
Intermediate to advanced
354 pages
8h 51m
English
The first concept of push relies on implementing the HTTP/2 server-side push. I have found this to be difficult to configure as most servers have not yet implemented HTTP/2 push.
This is where service workers can offer a solution I feel is even better. We looked at how to implement pre-caching, an excellent alternative to using HTTP/2 Push. By using pre-caching, you are effectively pushing those critical assets to the browser before they are needed.
Remember that the resources you pre-cache should be critical and common application assets. These assets should mirror what you might want to configure HTTP/2 push to send.
Combining service worker caching with the preload resource ...
Read now
Unlock full access