July 2018
Intermediate to advanced
354 pages
8h 51m
English
The ResponseManager contains common logic that correlates to some of the caching strategies covered in Chapter 7, Service Worker Caching Patterns. The ResponseManager class contains a condensed set of cache strategies and the corresponding methods for five caching strategies:
This is the ResponseManager class definition with method signatures:
class ResponseManager { fetchText(url) {...} fetchJSON(url) {...} fetchAndRenderResponseCache(options) {...} cacheFallingBackToNetwork(request, cacheName) {...} cacheFallingBackToNetworkCache(request, cacheName) {...} ...Read now
Unlock full access