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 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.