Skip to content

Commit

Permalink
Release 0.10.5
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanebachelier committed Jul 6, 2016
1 parent d340f36 commit 38f4721
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "superapi-cache",
"version": "0.10.4",
"version": "0.10.5",
"homepage": "https://github.com/stephanebachelier/superapi-cache",
"authors": [
"Stéphane Bachelier <stephane.bachelier@gmail.com>"
Expand Down
5 changes: 5 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ function cache() {
return res;
}

// exclude binary response from cache
if (['arraybuffer', 'blob'].indexOf(res.responseType) >= -1) {
return res;
}

return config.store.setItem(uuid, {
expires: config.maxAge === 0 ? 0 : Date.now() + config.maxAge,
data: config.serialize(req, res)
Expand Down
5 changes: 5 additions & 0 deletions dist/umd/superapi-cache.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/umd/superapi-cache.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/umd/superapi-cache.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/umd/superapi-cache.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "superapi-cache",
"version": "0.10.4",
"version": "0.10.5",
"description": "Caching module for superapi",
"homepage": "https://github.com/stephanebachelier/superapi-cache",
"author": {
Expand Down

0 comments on commit 38f4721

Please sign in to comment.