cacheable-response
Advanced tools
Comparing version
@@ -5,2 +5,9 @@ # Changelog | ||
### [1.10.2](https://github.com/Kikobeats/cacheable-response/compare/v1.10.1...v1.10.2) (2020-01-22) | ||
### Bug Fixes | ||
* exclude force from key ([2fdb19f](https://github.com/Kikobeats/cacheable-response/commit/2fdb19f93345636960e79ad0f87b61f898ca4287)), closes [#37](https://github.com/Kikobeats/cacheable-response/issues/37) | ||
### [1.10.1](https://github.com/Kikobeats/cacheable-response/compare/v1.10.0...v1.10.1) (2020-01-18) | ||
@@ -7,0 +14,0 @@ |
@@ -25,3 +25,5 @@ 'use strict' | ||
const { origin } = new URL(url) | ||
const baseKey = normalizeUrl(url) | ||
const baseKey = normalizeUrl(url, { | ||
removeQueryParameters: ['force', /^utm_\w+/i] | ||
}) | ||
return baseKey.replace(origin, '').replace('/?', '') | ||
@@ -28,0 +30,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://nicedoc.io/Kikobeats/cacheable-response", | ||
"version": "1.10.1", | ||
"version": "1.10.2", | ||
"main": "index.js", | ||
@@ -8,0 +8,0 @@ "author": { |
28487
1.36%113
1.8%