forked from Fediversity/fediversity.eu
11 lines
259 B
JavaScript
11 lines
259 B
JavaScript
importScripts(
|
|
"https://storage.googleapis.com/workbox-cdn/releases/6.0.2/workbox-sw.js"
|
|
);
|
|
|
|
workbox.setConfig({ debug: false });
|
|
|
|
workbox.routing.registerRoute(
|
|
({ request }) => request.destination === "image",
|
|
new workbox.strategies.NetworkFirst()
|
|
);
|