19 Sapper offline support

This chapter covers

  • Progressive web applications (PWAs)
  • Service worker overview
  • Caching strategies used by service workers
  • Sapper service worker configuration
  • Service worker events
  • Managing service workers in Chrome
  • Enabling the use of HTTPS in the Sapper server
  • Verifying offline behavior

Progressive web applications (PWAs) are apps created using browser-supported technologies such as HTML, CSS, and JavaScript. They can run on any platform with a standard web browser, including desktop computers, tablets, and phones. Their primary features are the ability to run when offline, receive push notifications, and interact with device features such as cameras.

Note When an app attempts to use device features, users are ...

Get Svelte and Sapper in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.