diff options
author | Andrew Dolgov <[email protected]> | 2019-07-29 14:17:43 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-07-29 14:17:43 +0300 |
commit | 4d108431dd6527266a94ef731603d39d4758e621 (patch) | |
tree | 0b95b33bf27532a64d151f34703295938b7abb4f /worker.js | |
parent | d414aa5084a05d92209781a602efbf520ebf10e3 (diff) |
add some placeholder stuff for ttf files
Diffstat (limited to 'worker.js')
-rw-r--r-- | worker.js | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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) { |