From a90a29de97201fb296a99c494204796b61677f21 Mon Sep 17 00:00:00 2001 From: Vladimir Bajceta Date: Wed, 27 Sep 2017 10:46:03 +0200 Subject: [PATCH] default value true for useQueryParamsInCacheKey param in generateCacheKey --- utils/pathUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/pathUtils.js b/utils/pathUtils.js index a40ec74..b0c04bb 100644 --- a/utils/pathUtils.js +++ b/utils/pathUtils.js @@ -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('/'); @@ -83,4 +83,4 @@ module.exports = { return parsedUrl.toString(); } -}; \ No newline at end of file +};