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

index.js

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy