More Advanced Caching Strategies

Different, slightly more complicated caching strategies allow us to extend the available possibilities of PWAs further and cover some special scenarios.

In this lesson, the first two strategies we analyze are variations of the ones seen in the previous lesson but allow some more flexibility.



Cache falling back to network



The goal is to optimize response time.

If a resource is available in the cache, this version is delivered. Otherwise, a network request is triggered to fetch and then cache it.

This strategy is adapted for resources that do not often change, like the user profile images. In these cases, we want to provide the user with the fastest response without worrying about potentially delivering obsolete data.

Get hands-on with 1200+ tech skills courses.