summaryrefslogtreecommitdiff
path: root/worker.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-07-29 14:17:43 +0300
committerAndrew Dolgov <[email protected]>2019-07-29 14:17:43 +0300
commit4d108431dd6527266a94ef731603d39d4758e621 (patch)
tree0b95b33bf27532a64d151f34703295938b7abb4f /worker.js
parentd414aa5084a05d92209781a602efbf520ebf10e3 (diff)
add some placeholder stuff for ttf files
Diffstat (limited to 'worker.js')
-rw-r--r--worker.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/worker.js b/worker.js
index 31bdc89..256f1c3 100644
--- a/worker.js
+++ b/worker.js
@@ -32,7 +32,10 @@ const CACHE_URLS = [
'lib/bootstrap/v3/css/bootstrap.min.css',
'lib/bootstrap/v3/js/jquery.js',
'lib/bootstrap/v3/js/bootstrap.min.js',
- 'lib/bootstrap/v3/fonts/glyphicons-halflings-regular.woff2'
+ 'lib/bootstrap/v3/fonts/glyphicons-halflings-regular.woff2',
+ 'lib/fonts/pmn-caecilia-55.ttf',
+ 'lib/fonts/pmn-caecilia-56.ttf',
+ 'lib/fonts/pmn-caecilia-75.ttf'
];
self.addEventListener('install', function(event) {
@@ -126,6 +129,8 @@ this.addEventListener('fetch', function(event) {
return caches.match("offline.html");
}
+ console.log('cache miss for', req.url);
+
return fetch(req).then(function(resp) {
if (resp.status == 200) {