From 88c1226275712fe2ccab13df822efcb4d4205633 Mon Sep 17 00:00:00 2001 From: kfiroo Date: Wed, 13 Sep 2017 17:32:53 +0300 Subject: [PATCH] lowerCase url compare --- ImageCacheManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ImageCacheManager.js b/ImageCacheManager.js index 08086aa..f1c71c5 100644 --- a/ImageCacheManager.js +++ b/ImageCacheManager.js @@ -20,7 +20,7 @@ module.exports = (defaultOptions = {}, urlCache = MemoryCache, fs = fsUtils, pat _.defaults(defaultOptions, defaultDefaultOptions); function isCacheable(url) { - return _.isString(url) && (_.startsWith(url, 'http://') || _.startsWith(url, 'https://')); + return _.isString(url) && (_.startsWith(url.toLowerCase(), 'http://') || _.startsWith(url.toLowerCase(), 'https://')); } function cacheUrl(url, options, getCachedFile) {