apollo-datasource-http
Advanced tools
Comparing version 0.9.5 to 0.9.6
@@ -140,2 +140,3 @@ "use strict"; | ||
if (options.requestCache && this.isResponseCacheable(options, response)) { | ||
response.maxTtl = Math.max(options.requestCache.maxTtl, options.requestCache.maxTtlIfError); | ||
this.storageAdapter | ||
@@ -156,3 +157,2 @@ .set(cacheKey, response, options.requestCache?.maxTtl) | ||
hasFallback.isFromCache = true; | ||
hasFallback.maxTtl = options.requestCache.maxTtlIfError; | ||
return hasFallback; | ||
@@ -181,3 +181,2 @@ } | ||
cachedResponse.isFromCache = true; | ||
cachedResponse.maxTtl = request.requestCache.maxTtl; | ||
return cachedResponse; | ||
@@ -184,0 +183,0 @@ } |
{ | ||
"name": "apollo-datasource-http", | ||
"version": "0.9.5", | ||
"version": "0.9.6", | ||
"author": "Dustin Deus <deusdustin@gmail.com>", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
26771
272