PWA a bissi probiert
This commit is contained in:
parent
7a5ba150f7
commit
4125b433e5
10 changed files with 55 additions and 36 deletions
6
frontend/svelte/src/service-worker.js
Normal file
6
frontend/svelte/src/service-worker.js
Normal 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()
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue