Summing Up
We started the chapter by commenting briefly on everything that happens when a user hits “Return” on the address bar of the browser. With this knowledge, the possibility of having a more performant application appeared by just reducing the number of trips from the client to the server, or at least by reducing the distance of those trips.
The first way was using Cache-Control headers, which allow you to configure what, when, and how the client will cache the resources delivered by the server. You have seen a brief definition of all the directives that are available to you, and you have seen an example with two of the most commonly used ones: max-age and ETag. The second way was using CDNs, which are particularly appropriate for static ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access