Skip to content

Commit

Permalink
Bug fixes for Service Worker (nightscout#5970)
Browse files Browse the repository at this point in the history
* 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 nightscout#5920
*    Fixes nightscout#5943

* Update service-worker.js

Removed the MP3 files from the preload to fix issues with webkit-based browsers

Co-authored-by: p5nbTgip0r <[email protected]>
Co-authored-by: Sulka Haro <[email protected]>
  • Loading branch information
3 people authored and csholmq committed Sep 25, 2020
1 parent 003b150 commit 34a5e85
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions views/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 34a5e85

Please sign in to comment.