Skip to content

Commit

Permalink
lowerCase url compare
Browse files Browse the repository at this point in the history
  • Loading branch information
kfiroo committed Sep 13, 2017
1 parent 49dda64 commit 88c1226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ImageCacheManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 88c1226

Please sign in to comment.