Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
complete: (context, next) => {
const cacheKey = getCacheKeyUtil(context, getCacheKey);
const etag = getHeader(context as any, 'etag');
if (etag) {
lruCache.set(cacheKey, {
key: etag,
value: context.getResponse(),
});
}
next();
},
error: (context, next) => {