Skip to content

Commit bc4a03a

Browse files
authored
Merge pull request #14 from adityapatadia/patch-1
added existing options to cachepolicy when not modified
2 parents d0bf1ba + c259b81 commit bc4a03a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ module.exports = class CachePolicy {
505505
headers,
506506
});
507507
return {
508-
policy: new this.constructor(request, newResponse),
508+
policy: new this.constructor(request, newResponse, {shared: this._isShared, cacheHeuristic: this._cacheHeuristic, immutableMinTimeToLive: this._immutableMinTtl, trustServerDate: this._trustServerDate}),
509509
modified: false,
510510
};
511511
}

0 commit comments

Comments
 (0)