Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Commit

Permalink
Explicitly set redirect: follow on the precaching requests. (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffposnick authored Jan 4, 2017
1 parent a85b134 commit 939743f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion service-worker.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}));
}
})
);
Expand Down

0 comments on commit 939743f

Please sign in to comment.