Skip to content

Commit

Permalink
Merge pull request kfiroo#85 from bajceta/master
Browse files Browse the repository at this point in the history
Make sure we use the right query-params according to `useQueryParamsInCacheKey` when generating cached file name
  • Loading branch information
kfiroo authored Sep 27, 2017
2 parents 35b3616 + a90a29d commit b6b8b5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/pathUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function getQueryForCacheKey(url, useQueryParamsInCacheKey) {
return '';
}

function generateCacheKey(url, useQueryParamsInCacheKey) {
function generateCacheKey(url, useQueryParamsInCacheKey = true) {
const parsedUrl = new URL(url, null, true);

const pathParts = parsedUrl.pathname.split('/');
Expand Down Expand Up @@ -83,4 +83,4 @@ module.exports = {
return parsedUrl.toString();
}

};
};

0 comments on commit b6b8b5b

Please sign in to comment.