forked from Seevil/cactus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsw.js
89 lines (84 loc) · 2.7 KB
/
sw.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/**
* 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("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
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": "css/style.css",
"revision": "2535d0113496cc06bdc4ecb6ba4a01ec"
},
{
"url": "css/lightbox.min.css",
"revision": "767938d77eef356b1ba76c3897384948"
},
{
"url": "js/jquery.min.js",
"revision": "b354cc9d56a1da6b0c77604d1b153850"
},
{
"url": "js/lazyload.js",
"revision": "5a0a087606ad5b73ad985db19a150220"
},
{
"url": "js/main.js",
"revision": "70b27067d04d0c6008ef57238ec6c9db"
},
{
"url": "js/lightbox.min.js",
"revision": "86ae6c62f555df51346b0be4bc2d0267"
},
{
"url": "lib/font-awesome/css/font-awesome.css",
"revision": "38021bc5f4c004f5afbee38855ba260f"
},
{
"url": "lib/font-awesome/css/font-awesome.min.css",
"revision": "48ab1883875b3c7f06592dd04eb2c297"
},
{
"url": "lib/font-awesome/fonts/fontawesome-webfont.woff",
"revision": "c8ddf1e5e5bf3682bc7bebf30f394148"
},
{
"url": "lib/font-awesome/fonts/fontawesome-webfont.woff2",
"revision": "e6cf7c6ec7c2d6f670ae9d762604cb0b"
},
{
"url": "lib/highlight.min.js",
"revision": "4e0da54bb1cb0511de5f7bbf12298aa9"
},
{
"url": "lib/meslo-LG/fonts/MesloLGS-Regular.woff",
"revision": "c26c11f108b98536a374afb1337e156c"
},
{
"url": "lib/meslo-LG/styles.css",
"revision": "711087aaff7624e62edd074044ec1dd9"
},
{
"url": "lib/typed.js",
"revision": "5d53ae31eda336c919b79ad3590e8589"
}
].concat(self.__precacheManifest || []);
workbox.precaching.suppressWarnings();
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
workbox.routing.registerRoute(/.*\.js/, workbox.strategies.networkFirst(), 'GET');
workbox.routing.registerRoute(/.*\.css/, workbox.strategies.staleWhileRevalidate({ plugins: [{ cacheableResponse: { statuses: [ 0, 200 ] } }] }), 'GET');
workbox.routing.registerRoute(/.*\.(?:png|jpg|jpeg|svg|gif)/, workbox.strategies.cacheFirst({ plugins: [{ expiration: { maxEntries: 50 } }] }), 'GET');
workbox.routing.registerRoute(/.*\.html/, workbox.strategies.networkFirst(), 'GET');