Implements the "Network falling back to cache" strategy: https://developers.google.com/web/fundamentals/instant-and-offline/offline-cookbook/#network-falling-back-to-cache
Tries to fetch from the fetcher first with a given timeout (optional). If the fetcher fails through errors or if it doesn't respond up until the given timeout, the data is fetched from the cache.
type of the data to be cached.
Generated using TypeDoc
Implements the "Network falling back to cache" strategy: https://developers.google.com/web/fundamentals/instant-and-offline/offline-cookbook/#network-falling-back-to-cache
Tries to fetch from the fetcher first with a given timeout (optional). If the fetcher fails through errors or if it doesn't respond up until the given timeout, the data is fetched from the cache.