diff --git a/src/HttpClient/middlewares/cache.ts b/src/HttpClient/middlewares/cache.ts index 2d36e40c..01eb9d92 100644 --- a/src/HttpClient/middlewares/cache.ts +++ b/src/HttpClient/middlewares/cache.ts @@ -199,7 +199,7 @@ export const cacheMiddleware = ({ type, storage }: CacheOptions) => { : data const expiration = Date.now() + (maxAge - currentAge) * 1000 - await storage.set(setKey, { + storage.set(setKey, { etag, expiration, response: {data: cacheableData, headers, status},