diff --git a/service-worker.tmpl b/service-worker.tmpl index f22b4f0..bbec851 100644 --- a/service-worker.tmpl +++ b/service-worker.tmpl @@ -77,7 +77,10 @@ self.addEventListener('install', function(event) { Array.from(urlsToCacheKeys.values()).map(function(cacheKey) { // If we don't have a key matching url in the cache already, add it. if (!cachedUrls.has(cacheKey)) { - return cache.add(new Request(cacheKey, {credentials: 'same-origin'})); + return cache.add(new Request(cacheKey, { + credentials: 'same-origin', + redirect: 'follow' + })); } }) );