cacheable-response
Advanced tools
Comparing version
@@ -5,2 +5,4 @@ # Changelog | ||
### [1.7.2](https://github.com/Kikobeats/cacheable-response/compare/v1.7.1...v1.7.2) (2019-09-11) | ||
### [1.7.1](https://github.com/Kikobeats/cacheable-response/compare/v1.7.0...v1.7.1) (2019-09-11) | ||
@@ -7,0 +9,0 @@ |
@@ -66,3 +66,3 @@ 'use strict' | ||
send, | ||
revalidate = ttl => ttl / 24, | ||
revalidate = ttl => ttl * 0.8, | ||
ttl: defaultTtl = 7200000, | ||
@@ -75,4 +75,3 @@ ...compressOpts | ||
const setHeaders = createSetHeaders({ | ||
revalidate: | ||
typeof revalidate === 'function' ? revalidate : () => revalidate | ||
revalidate: typeof revalidate === 'function' ? revalidate : () => revalidate | ||
}) | ||
@@ -79,0 +78,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://nicedoc.io/Kikobeats/cacheable-response", | ||
"version": "1.7.1", | ||
"version": "1.7.2", | ||
"main": "index.js", | ||
@@ -14,3 +14,6 @@ "author": { | ||
"contributors": [ | ||
"whooehoo <whooehoo@yandex.ru>" | ||
{ | ||
"name": "whooehoo", | ||
"email": "whooehoo@yandex.ru" | ||
} | ||
], | ||
@@ -17,0 +20,0 @@ "repository": { |
25783
0.51%111
-0.89%