Skip to content

Commit 385b5d3

Browse files
committed
Minor storable bug
1 parent 8ff37cb commit 385b5d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ module.exports = class CachePolicy {
180180
// contains a max-age response directive, or
181181
// contains a s-maxage response directive and the cache is shared, or
182182
// contains a public response directive.
183-
this._rescc.public ||
184183
this._rescc['max-age'] ||
185-
this._rescc['s-maxage'] ||
184+
(this._isShared && this._rescc['s-maxage']) ||
185+
this._rescc.public ||
186186
// has a status code that is defined as cacheable by default
187187
statusCodeCacheableByDefault.indexOf(this._status) !== -1)
188188
);

0 commit comments

Comments
 (0)