July 2018
Intermediate to advanced
354 pages
8h 51m
English
The next phase of our basic network-caching strategy is to return a previously cached version to the client while making a network request for the latest version.
This strategy is very helpful when you need to return a response quickly, but the freshness of the data is not the biggest requirement. For example, a podcast episode does not change its details much, if at all. Returning a cached version of the page and its images would not mean that the user is missing out on fresh data. The following diagram shows the interactions involved in this process:

But maybe you want to make sure that the user has the latest content. ...
Read now
Unlock full access