You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

109 lines
3.2 KiB

/**
* Welcome to your Workbox-powered service worker!
*
* You'll need to register this file in your web app and you should
* disable HTTP caching for this file too.
* See https://goo.gl/nhQhGp
*
* The rest of the code is auto-generated. Please don't update this file
* directly; instead, make changes to your Workbox build configuration
* and re-run your build process.
* See https://goo.gl/2aRDsh
*/
importScripts("workbox-v3.6.2/workbox-sw.js");
workbox.setConfig({modulePathPrefix: "workbox-v3.6.2"});
workbox.core.setCacheNameDetails({prefix: "gatsby-plugin-offline"});
workbox.skipWaiting();
workbox.clientsClaim();
/**
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
* requests for URLs in the manifest.
* See https://goo.gl/S9QRab
*/
self.__precacheManifest = [
{
"url": "webpack-runtime-bdbe47d41d365e1924e2.js"
},
{
"url": "app-a58c13dd811881e99de0.js"
},
{
"url": "component---node-modules-gatsby-plugin-offline-app-shell-js-c9e66d02ce31a3008827.js"
},
{
"url": "index.html",
"revision": "a78e14f38e10d560b6e7f089900daf75"
},
{
"url": "offline-plugin-app-shell-fallback/index.html",
"revision": "3283c3da8382da8bb21f2ffc0e17263e"
},
{
"url": "0.d7c5d9619b1be4d482ab.css"
},
{
"url": "1.247fa206e45205cd5834.css"
},
{
"url": "1-aaedccdab7ef8163855d.js"
},
{
"url": "component---src-pages-index-tsx-d13e33345d9780210fe2.js"
},
{
"url": "0-63bc225aea0eb7bce835.js"
},
{
"url": "static/d/173/path---index-6a9-NZuapzHg3X9TaN1iIixfv1W23E.json",
"revision": "c2508676a2f33ea9f1f0bf472997f9a0"
},
{
"url": "component---src-pages-404-tsx-ce55f7437f4c570e2968.js"
},
{
"url": "static/d/164/path---404-html-516-62a-NZuapzHg3X9TaN1iIixfv1W23E.json",
"revision": "c2508676a2f33ea9f1f0bf472997f9a0"
},
{
"url": "static/d/520/path---offline-plugin-app-shell-fallback-a-30-c5a-NZuapzHg3X9TaN1iIixfv1W23E.json",
"revision": "c2508676a2f33ea9f1f0bf472997f9a0"
},
{
"url": "manifest.webmanifest",
"revision": "b20aba763c5f1ca58c378bbd6852f7da"
}
].concat(self.__precacheManifest || []);
workbox.precaching.suppressWarnings();
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
workbox.routing.registerNavigationRoute("/offline-plugin-app-shell-fallback/index.html", {
whitelist: [/^[^?]*([^.?]{5}|\.html)(\?.*)?$/],
blacklist: [/\?(.+&)?no-cache=1$/],
});
workbox.routing.registerRoute(/\.(?:png|jpg|jpeg|webp|svg|gif|tiff|js|woff|woff2|json|css)$/, workbox.strategies.staleWhileRevalidate(), 'GET');
workbox.routing.registerRoute(/^https:/, workbox.strategies.networkFirst(), 'GET');
"use strict";
/* global workbox */
self.addEventListener("message", function (event) {
var api = event.data.api;
if (api === "gatsby-runtime-cache") {
var resources = event.data.resources;
var cacheName = workbox.core.cacheNames.runtime;
event.waitUntil(caches.open(cacheName).then(function (cache) {
return Promise.all(resources.map(function (resource) {
return cache.add(resource).catch(function (e) {
// ignore TypeErrors - these are usually due to
// external resources which don't allow CORS
if (!(e instanceof TypeError)) throw e;
});
}));
}));
}
});