Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 983 Bytes

File metadata and controls

31 lines (19 loc) · 983 Bytes

PWA Simple Static Service-Worker Workbox example

By Dennis Burger, April 2023

App manifest and generating icons

Caching strategies

There are several Google Workbox caching strategies available: https://developer.chrome.com/docs/workbox/caching-strategies-overview/#caching-strategies

Pre-caching

https://developer.chrome.com/docs/workbox/modules/workbox-precaching/

A good idea is to pre-cache certain files that are guarantee to keep working for a long time:

  • Fonts
  • Logo
  • Some big fixed hero images on (blog / news) detail pages

Runtime-caching

PWA install prompt