PWA a bissi probiert

This commit is contained in:
dhain 2022-10-10 20:28:51 +02:00
parent 7a5ba150f7
commit 4125b433e5
10 changed files with 55 additions and 36 deletions

View file

@ -0,0 +1,6 @@
importScripts('https://storage.googleapis.com/workbos-cdn/releases/6.0.2/workbox-sw.js');
workbox.routing.registerRoute(
({request}) => request.destination === 'image',
new workbox.strategies.CacheFirst()
);