Client-side caching

Let's continue with another Faster Web technology, which is client-side caching. This form of HTTP caching focuses on reducing the number of requests needed to render a page in order to avoid network latency as much as possible. Indeed, large responses often need many roundtrips over the network. HTTP client-side caching tries to minimize the number of these requests in order to complete the page's rendering. Nowadays, all major browsers offer support for these techniques and enabling these technologies on your website is as easy as sending a few additional headers or using library files that are already available on Content Delivery Networks (CDNs). Let's have a look at these two techniques: browser caching headers and ...

Get Mastering The Faster Web with PHP, MySQL, and JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.