@nxtedition/nxt-undici 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +1 -1
- package/lib/interceptor/cache.js +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -106,8 +106,8 @@ export async function request(url, opts) {
|
|
|
106
106
|
dispatch = interceptors.requestId(dispatch)
|
|
107
107
|
dispatch = interceptors.responseRetry(dispatch)
|
|
108
108
|
dispatch = interceptors.responseVerify(dispatch)
|
|
109
|
-
dispatch = interceptors.cache(dispatch)
|
|
110
109
|
dispatch = interceptors.redirect(dispatch)
|
|
110
|
+
dispatch = interceptors.cache(dispatch)
|
|
111
111
|
dispatch = interceptors.proxy(dispatch)
|
|
112
112
|
dispatcherCache.set(dispatcher, dispatch)
|
|
113
113
|
}
|
package/lib/interceptor/cache.js
CHANGED
|
@@ -107,7 +107,7 @@ class CacheStore {
|
|
|
107
107
|
|
|
108
108
|
function makeKey(opts) {
|
|
109
109
|
// NOTE: Ignores headers...
|
|
110
|
-
return `${opts.method}:${opts.path}`
|
|
110
|
+
return `${opts.origin}:${opts.method}:${opts.path}`
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
const DEFAULT_CACHE_STORE = new CacheStore({ maxSize: 128 * 1024, maxEntrySize: 1024 })
|