Browse Source

Don't set a ttl on cache entries

pull/15/head
Luke Childs 8 years ago
parent
commit
88191ef716
  1. 7
      src/index.js

7
src/index.js

@ -87,12 +87,7 @@ class Onionoo {
}
// Cache response
if (this.options.cache) {
const ttl = this.calculateResponseMaxAge(response.headers)
if (ttl) {
this.options.cache.set(url, response, { ttl })
}
}
this.options.cache && this.options.cache.set(url, response)
// Resolve response
return response

Loading…
Cancel
Save