From b2dba38268228e81bdbf56bb4cfdef150550a693 Mon Sep 17 00:00:00 2001 From: Josef Citrine Date: Sun, 10 Jul 2016 00:04:54 +0100 Subject: [PATCH] Ignore MP3 requests --- public/service-worker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/service-worker.js b/public/service-worker.js index 58eaa9db..7d847716 100644 --- a/public/service-worker.js +++ b/public/service-worker.js @@ -56,7 +56,7 @@ self.addEventListener('activate', function (event) { // Basic offline mode // Just respond with an offline error page for now self.addEventListener('fetch', function(event) { - if (event.request.url.indexOf('stage.pony.fm') > -1 || event.request.url.indexOf('upload') > -1) { + if (event.request.url.indexOf('stage.pony.fm') > -1 || event.request.url.indexOf('upload' || event.request.url.indexOf('mp3') > -1) > -1) { // Ignore some requests return; } else { @@ -110,4 +110,4 @@ self.addEventListener('notificationclick', function(event) { } }) ); -}); \ No newline at end of file +});