October 2017
Intermediate to advanced
302 pages
7h 27m
English
In this section, we'll move through our three main service worker life cycle events, and interact with our cache individually in each event. By the end, we will have automatic caching for all static files.
A warning, though--working with caches in development is, at best, tolerable, and at worst, infuriating. "Why aren't you updating?" we yell at our screen, until we realize that our cache has been serving up old code; it happens to the best of us. In this section, we'll take steps to avoid caching our development files and dodge this bullet, but in the future, remember that weird errors are probably caused by caching.
Read now
Unlock full access