voorhoede / head-start

Base setup on top of headless services to help you quickly start a new website
ISC License
4 stars 0 forks source link

Add Service Worker #199

Open jbmoelker opened 2 weeks ago

jbmoelker commented 2 weeks ago

User story

As a website visitor, I want web pages to be cached, so I get a fast and reliable experience.

Strategy

Add a Service Worker with a strategy to use recently cached pages (x minutes ago?), then try the network (if older or not in cache), then cache (if network fails, and an older cached page is at least still available).

We could use Workbox for this.

jbmoelker commented 1 week ago