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 +};