46 lines
4.3 KiB
JavaScript
46 lines
4.3 KiB
JavaScript
importScripts("/assets/js/workbox-v3.6.3/workbox-sw.js");
|
|
workbox.setConfig({modulePathPrefix: "/assets/js/workbox-v3.6.3"});
|
|
|
|
self.__precacheManifest = [{"url":"/assets/js/set-20200805.js","revision":"517470941a809ec5c83021184f35da41"},{"url":"/assets/js/jquery-3.5.1.min.js","revision":"dc5e7f18c8d36ac1d3d4753a87c98d0a"},{"url":"/assets/css/noscripts-20200810.css","revision":"4b2369e08159b7eceaf6f44fdf9114db"},{"url":"/assets/css/main-20200810.css","revision":"cefd66ed711c8416dda7e45958d05197"},{"url":"/assets/css/all.min.css","revision":"84d8ad2b4fcdc0f0c58247e778133b3a"},{"url":"/assets/fonts/Staatliches-Regular.ttf","revision":"d5746e3b20453d6cee99ab27a0bdf949"},{"url":"/assets/fonts/Astloch-Bold.ttf","revision":"3176f98d79118ba60dea5cad816a330c"},{"url":"/assets/fonts/JetBrainsMono_Italic.ttf","revision":"8d0942fbfa63674fa465f104ca33e043"},{"url":"/assets/fonts/JetBrainsMono_ExtraBold_Italic.ttf","revision":"052f9246bfdfa8a9edc7e626845a6ee6"},{"url":"/assets/fonts/JetBrainsMono_ExtraBold.ttf","revision":"131dbc72ef3af778e86d34efb1fc8972"},{"url":"/assets/fonts/JetBrainsMono_Bold.ttf","revision":"d8af470e44be6c1d2d07dee84db355f6"},{"url":"/assets/fonts/JetBrainsMono_Bold_Italic.ttf","revision":"111bcb2a39ae6140cb21daa3ecd052d1"},{"url":"/assets/fonts/JetBrainsMono_Regular.ttf","revision":"e1caef645de334fee2f25834b0d03c28"},{"url":"/images/setto-logo.svg","revision":"7569ca4090da48547a54fa0ddedda3fd"},{"url":"/images/setto_logo.svg","revision":"5bf66a9e824036039f132a2c99608cfc"},{"url":"/images/setto-logo-dark.svg","revision":"609edc224ff5d3b8ded04619ae9f50a1"},{"url":"/images/setto-logoicon.svg","revision":"e7dc833aac730977d63da33840f5d2ce"},{"url":"/images/posts/final-pingnucover1220x1200.jpg","revision":"40bf2aa467fc998f16966f6299772aa3"},{"url":"/images/posts/333mix.jpg","revision":"8370744fc4e6bd11153f05bdae4d017f"},{"url":"/images/posts/1-ep-life-of-a-dudelini.jpeg","revision":"5f0556d93f8df15b7283d7184e7e205f"},{"url":"/images/posts/1-grandma-got-the-ssh-keys.jpeg","revision":"f17c4fa35cfd429715093fc170ff37db"},{"url":"/images/posts/1-k-as-tu-fait-de-nous-.jpeg","revision":"c75a92953e880cca8ae26b4ab73265e2"},{"url":"/images/posts/2-darkweb-instrumental-.jpeg","revision":"25b1ed36880f9afef45b6f969ff63f72"},{"url":"/images/pages/pingu.jpg","revision":"fdbcbb8a73099a784a0e39caf322a404"},{"url":"/images/pages/creds.jpg","revision":"c0d61d2dcc2820989b445da52d984a11"},{"url":"/images/pages/phone.jpg","revision":"28c71c2f34dd924836522ea99a0330b0"},{"url":"/images/pages/jack-hamilton-CMnNiQBkwBI-unsplash.jpg","revision":"05b685c77386c247340abecb8eaf3218"},{"url":"/images/pages/arget-zvhhkivur9m-unsplash.jpg","revision":"e80d8b7d0899415327d46c345e95571e"},{"url":"/images/pages/kaur-kristjan-cppf4w5pb1c-unsplash.jpg","revision":"982d5e7565ea6fb7211305c12048a94e"},{"url":"/images/pages/4-darkweb-instrumental-.jpeg","revision":"25b1ed36880f9afef45b6f969ff63f72"},{"url":"/index.html","revision":"97655859ce1048c6fc37d5c046295115"},{"url":"/333mix/","revision":"6acd43ac354a52d3248f8ea9dc36405d"},{"url":"/unmet-dependencies/","revision":"abf15a089c9232faa369fb4e5f13b50d"},{"url":"/live-with-hardware/","revision":"ce07900a964783eda05d0515d169d5d1"},{"url":"/cyber-grany/","revision":"e78f9e99f3e2c609d1545ba7f7d3c848"},{"url":"/darkweb/","revision":"3f3333f1ddfbec03dd8194e2745f3ffe"}];
|
|
// service-worker.js
|
|
|
|
// set names for both precache & runtime cache
|
|
workbox.core.setCacheNameDetails({
|
|
prefix: 'SettoPWA',
|
|
suffix: 'v1',
|
|
precache: 'precache',
|
|
runtime: 'runtime-cache'
|
|
});
|
|
|
|
// let Service Worker take control of pages ASAP
|
|
workbox.skipWaiting();
|
|
workbox.clientsClaim();
|
|
|
|
// let Workbox handle our precache list
|
|
workbox.precaching.precacheAndRoute(self.__precacheManifest);
|
|
|
|
// use `networkFirst` strategy for `*.html`, like all my posts
|
|
workbox.routing.registerRoute(
|
|
/\.html$/,
|
|
workbox.strategies.networkFirst()
|
|
);
|
|
|
|
// use `cacheFirst` strategy for images
|
|
workbox.routing.registerRoute(
|
|
/assets\/(img|icons|css)/,
|
|
workbox.strategies.networkFirst()
|
|
);
|
|
workbox.routing.registerRoute(
|
|
/videos/,
|
|
workbox.strategies.cacheFirst()
|
|
);
|
|
workbox.routing.registerRoute(
|
|
/images\/(posts|pages)/,
|
|
workbox.strategies.cacheFirst()
|
|
);
|
|
// third party files
|
|
workbox.routing.registerRoute(
|
|
/^https?:\/\/media.basspistol.com/,
|
|
workbox.strategies.staleWhileRevalidate()
|
|
);
|