Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
cacheFirst should add responses to the cache if falling back to network
Browse files Browse the repository at this point in the history
  • Loading branch information
wibblymat committed Dec 17, 2014
1 parent 068ca5b commit 61c9700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shed.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function cacheFirst(request) {
return response;
}

return networkFetch(request);
return fetchAndCache(request);
});
}

Expand Down

0 comments on commit 61c9700

Please sign in to comment.