cacheable-request
Advanced tools
Comparing version 5.1.0 to 5.2.0
{ | ||
"name": "cacheable-request", | ||
"version": "5.1.0", | ||
"version": "5.2.0", | ||
"description": "Wrap native HTTP requests with RFC compliant cache support", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -120,3 +120,5 @@ # cacheable-request | ||
Any of the default request functions options plus: | ||
- Any of the default request functions options. | ||
- Any [`http-cache-semantics`](https://github.com/kornelski/http-cache-semantics#constructor-options) options. | ||
- Any of the following: | ||
@@ -123,0 +125,0 @@ ###### opts.cache |
@@ -82,3 +82,3 @@ 'use strict'; | ||
if (!response.fromCache) { | ||
response.cachePolicy = new CachePolicy(opts, response); | ||
response.cachePolicy = new CachePolicy(opts, response, opts); | ||
response.fromCache = false; | ||
@@ -85,0 +85,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15977
207