From 88191ef716479f15d4140de20d4663a4cf895d76 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Tue, 20 Dec 2016 16:07:00 +0700 Subject: [PATCH] Don't set a ttl on cache entries --- src/index.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/index.js b/src/index.js index b61f837..50fb2b5 100644 --- a/src/index.js +++ b/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