reliable-get
Advanced tools
Comparing version 0.1.28 to 0.1.29
@@ -84,3 +84,3 @@ 'use strict'; | ||
res.headers = res.headers || {}; | ||
res.headers['cache-control'] = 'no-store'; | ||
res.headers['cache-control'] = 'no-cache, no-store, must-revalidate'; | ||
next(null, {statusCode: res.statusCode, content: res.content, headers: res.headers, timing: res.timing}); | ||
@@ -87,0 +87,0 @@ }); |
{ | ||
"name": "reliable-get", | ||
"version": "0.1.28", | ||
"version": "0.1.29", | ||
"description": "A circuit breaker and cached wrapper for GET requests (enables reliable external service interaction).", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -63,2 +63,3 @@ 'use strict'; | ||
expect(err).to.be(null); | ||
expect(response.headers['cache-control']).to.be('no-cache, no-store, must-revalidate'); | ||
expect(response.statusCode).to.be(200); | ||
@@ -65,0 +66,0 @@ done(); |
Sorry, the diff of this file is not supported yet
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
1103
33628170