fix error with custom agent with circular reference

This commit is contained in:
Randall Schmidt
2021-07-03 10:20:32 -04:00
parent bffaa2aadc
commit 524308aa61
2 changed files with 11 additions and 0 deletions

View File

@ -66,6 +66,9 @@ function getCacheKey(requestArguments) {
resourceCacheKeyJson.body = getBodyCacheKeyJson(resourceCacheKeyJson.body);
initCacheKeyJson.body = getBodyCacheKeyJson(initCacheKeyJson.body);
delete resourceCacheKeyJson.agent;
delete initCacheKeyJson.agent;
return md5(JSON.stringify([resourceCacheKeyJson, initCacheKeyJson, CACHE_VERSION]));
}