From c296c4a1134d5ebc65d10a12dd10c4ece077e144 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Fri, 13 Mar 2020 09:56:34 +0100 Subject: [PATCH] fix: cache requests for npm, github only --- lib/util/got/cache-get.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/util/got/cache-get.ts b/lib/util/got/cache-get.ts index af9513be71..ac889634d4 100644 --- a/lib/util/got/cache-get.ts +++ b/lib/util/got/cache-get.ts @@ -15,6 +15,9 @@ export default create({ if (options.stream) { return next(options); } + if (!['github', 'npm'].includes(options.hostType)) { + return next(options); + } if (options.method === 'GET') { const cacheKey = crypto .createHash('md5') -- GitLab