|
@@ -81,7 +81,7 @@ define(['./workbox-74d02f44'], (function (workbox) { 'use strict';
|
|
* See https://goo.gl/2aRDsh
|
|
* See https://goo.gl/2aRDsh
|
|
*/
|
|
*/
|
|
|
|
|
|
- importScripts();
|
|
|
|
|
|
+ importScripts("fallback-development.js");
|
|
self.skipWaiting();
|
|
self.skipWaiting();
|
|
workbox.clientsClaim();
|
|
workbox.clientsClaim();
|
|
workbox.registerRoute("/", new workbox.NetworkFirst({
|
|
workbox.registerRoute("/", new workbox.NetworkFirst({
|
|
@@ -103,11 +103,19 @@ define(['./workbox-74d02f44'], (function (workbox) { 'use strict';
|
|
|
|
|
|
return response;
|
|
return response;
|
|
}
|
|
}
|
|
|
|
+ }, {
|
|
|
|
+ handlerDidError: async ({
|
|
|
|
+ request
|
|
|
|
+ }) => self.fallback(request)
|
|
}]
|
|
}]
|
|
}), 'GET');
|
|
}), 'GET');
|
|
workbox.registerRoute(/.*/i, new workbox.NetworkOnly({
|
|
workbox.registerRoute(/.*/i, new workbox.NetworkOnly({
|
|
"cacheName": "dev",
|
|
"cacheName": "dev",
|
|
- plugins: []
|
|
|
|
|
|
+ plugins: [{
|
|
|
|
+ handlerDidError: async ({
|
|
|
|
+ request
|
|
|
|
+ }) => self.fallback(request)
|
|
|
|
+ }]
|
|
}), 'GET');
|
|
}), 'GET');
|
|
|
|
|
|
}));
|
|
}));
|