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) {