From 34a5e85b6e1aa5e4962168db91b994b20ea15653 Mon Sep 17 00:00:00 2001 From: Lennart Goedhart Date: Thu, 10 Sep 2020 00:32:13 +1000 Subject: [PATCH] Bug fixes for Service Worker (#5970) * Fix service worker refresh for Firefox * Improve logging for service worker initialisation * Skip browser cache for service worker precaching * Prevent `Partial Content` responses in `fetch` by stripping `Range` header * Prevent calling `filter` on an undefined property when service worker cache is empty * Bug fixes for Service Worker * Fixes https://github.com/nightscout/cgm-remote-monitor/issues/5920 * Fixes https://github.com/nightscout/cgm-remote-monitor/issues/5943 * Update service-worker.js Removed the MP3 files from the preload to fix issues with webkit-based browsers Co-authored-by: p5nbTgip0r Co-authored-by: Sulka Haro --- views/service-worker.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/views/service-worker.js b/views/service-worker.js index 41b5043897e..0711889012b 100644 --- a/views/service-worker.js +++ b/views/service-worker.js @@ -23,8 +23,6 @@ const CACHE_LIST = [ '/images/mstile-144x144.png', '/css/ui-darkness/jquery-ui.min.css', '/css/jquery.tooltips.css', - '/audio/alarm.mp3', - '/audio/alarm2.mp3', '/css/ui-darkness/images/ui-icons_ffffff_256x240.png', '/css/ui-darkness/images/ui-icons_cccccc_256x240.png', '/css/ui-darkness/images/ui-bg_inset-soft_25_000000_1x100.png',