Skip to content

Commit

Permalink
Minor storable bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski committed Feb 10, 2020
1 parent 8ff37cb commit 385b5d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ module.exports = class CachePolicy {
// contains a max-age response directive, or
// contains a s-maxage response directive and the cache is shared, or
// contains a public response directive.
this._rescc.public ||
this._rescc['max-age'] ||
this._rescc['s-maxage'] ||
(this._isShared && this._rescc['s-maxage']) ||
this._rescc.public ||
// has a status code that is defined as cacheable by default
statusCodeCacheableByDefault.indexOf(this._status) !== -1)
);
Expand Down

0 comments on commit 385b5d3

Please sign in to comment.