Skip to content

Commit

Permalink
Merge branch 'psykzz-patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
TalAter committed May 18, 2016
2 parents 0861c8c + dea4ca3 commit 4797167
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/upup.sw.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/upup.sw.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/upup.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion src/upup.sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ self.addEventListener('message', function(event) {
self.addEventListener('fetch', function(event) {
event.respondWith(
// try to return untouched request from network first
fetch(event.request.url, { mode: 'no-cors' }).catch(function() {
fetch(event.request).catch(function() {
// if it fails, try to return request from the cache
return caches.match(event.request).then(function(response) {
if (response) {
Expand Down

0 comments on commit 4797167

Please sign in to comment.