diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2020-05-25 15:07:03 -0700 |
---|---|---|
committer | Bastien Wirtz <bastien.wirtz@gmail.com> | 2020-05-25 15:07:03 -0700 |
commit | b9c5fcf085bed9c6100283133531b36bfbb06cf0 (patch) | |
tree | 7baa4d16c9d6c06745727c7c273065a29b8fc1d7 /worker.js | |
parent | ab7ac44c191e3b7dea696e76b74097e23f73b18c (diff) | |
download | homer-b9c5fcf085bed9c6100283133531b36bfbb06cf0.tar.gz homer-b9c5fcf085bed9c6100283133531b36bfbb06cf0.tar.zst homer-b9c5fcf085bed9c6100283133531b36bfbb06cf0.zip |
Build system integration using vue-cli.
Diffstat (limited to 'worker.js')
-rw-r--r-- | worker.js | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/worker.js b/worker.js deleted file mode 100644 index 8af0064..0000000 --- a/worker.js +++ /dev/null | |||
@@ -1,50 +0,0 @@ | |||
1 | self.addEventListener('install', event => { | ||
2 | event.waitUntil( | ||
3 | caches | ||
4 | .open('homer') | ||
5 | .then(cache => | ||
6 | cache.addAll([ | ||
7 | '.', | ||
8 | 'index.html', | ||
9 | 'app.css', | ||
10 | 'app.js', | ||
11 | 'vendors/vue.min.js', | ||
12 | 'vendors/js-yaml.min.js', | ||
13 | 'vendors/font-awesone.min.css', | ||
14 | 'vendors/bulma.min.css', | ||
15 | 'assets/logo.png', | ||
16 | 'assets/favicon.png', | ||
17 | 'webfonts/raleway/raleway-v14-latin-regular.woff', | ||
18 | 'webfonts/raleway/raleway-v14-latin-regular.woff2', | ||
19 | 'webfonts/lato/lato-v16-latin-regular.woff', | ||
20 | 'webfonts/lato/lato-v16-latin-regular.woff2', | ||
21 | 'webfonts/fa-brands-400.woff', | ||
22 | 'webfonts/fa-brands-400.woff2', | ||
23 | 'webfonts/fa-brands-400.svg', | ||
24 | 'webfonts/fa-brands-400.ttf', | ||
25 | 'webfonts/fa-brands-400.eot', | ||
26 | 'webfonts/fa-regular-400.woff', | ||
27 | 'webfonts/fa-regular-400.woff2', | ||
28 | 'webfonts/fa-regular-400.svg', | ||
29 | 'webfonts/fa-regular-400.ttf', | ||
30 | 'webfonts/fa-regular-400.eot', | ||
31 | 'webfonts/fa-solid-900.woff', | ||
32 | 'webfonts/fa-solid-900.woff2', | ||
33 | 'webfonts/fa-solid-900.svg', | ||
34 | 'webfonts/fa-solid-900.ttf', | ||
35 | 'webfonts/fa-solid-900.eot', | ||
36 | ]) | ||
37 | ) | ||
38 | ) | ||
39 | }) | ||
40 | |||
41 | self.addEventListener('fetch', event => { | ||
42 | event.respondWith( | ||
43 | caches.match(event.request).then(response => { | ||
44 | if (response) { | ||
45 | return response; | ||
46 | } | ||
47 | return fetch(event.request); | ||
48 | }) | ||
49 | ); | ||
50 | }); | ||