We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ff37cb commit 385b5d3Copy full SHA for 385b5d3
index.js
@@ -180,9 +180,9 @@ module.exports = class CachePolicy {
180
// contains a max-age response directive, or
181
// contains a s-maxage response directive and the cache is shared, or
182
// contains a public response directive.
183
- this._rescc.public ||
184
this._rescc['max-age'] ||
185
- this._rescc['s-maxage'] ||
+ (this._isShared && this._rescc['s-maxage']) ||
+ this._rescc.public ||
186
// has a status code that is defined as cacheable by default
187
statusCodeCacheableByDefault.indexOf(this._status) !== -1)
188
);
0 commit comments