© Carlos Rojas 2020
C. RojasBuilding Progressive Web Applications with Vue.js https://doi.org/10.1007/978-1-4842-5334-2_4

4. Caching Strategies

Carlos Rojas1  
(1)
Medellin, Colombia
 
Nowadays, most web apps run without offline capabilities. They depend almost totally on a server. We can observe this when, from our browser in a web app, we get disconnected and the dinosaur game appears onscreen. This is how Google Chrome tells us we are offline (Figure 4-1).
../images/483082_1_En_4_Chapter/483082_1_En_4_Fig1_HTML.jpg
Figure 4-1

Chrome dino game

This is not the only scenario we want to avoid. There is also a common scenario in which LiFi shows neither our app nor the dinosaur, but leaves users waiting with a white ...

Get Building Progressive Web Applications with Vue.js: Reliable, Fast, and Engaging Apps with Vue.js now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.