Chapter 5. Offline

It’s common for people to look at the offline feature of progressive web apps and think that it doesn’t apply to their website. Sure, it might be nice if people could access our content offline, but it isn’t necessary.

Yes, service workers are fundamentally about caching assets, and yes, that makes them available even if someone is offline. But “being offline” is one of the least common scenarios. It is far more likely that someone will be accessing your website on an unreliable or slow network connection. Even if someone has a fast connection one moment, there is no guarantee they will continue to have one the next.

Get Progressive Web App 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.