Skip to content

Commit

Permalink
default value true for useQueryParamsInCacheKey param in generateCach…
Browse files Browse the repository at this point in the history
…eKey
  • Loading branch information
bajceta committed Sep 27, 2017
1 parent 3d005ab commit a90a29d
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 a90a29d

Please sign in to comment.