diff --git a/src/middleware/cacheMiddleware.ts b/src/middleware/cacheMiddleware.ts index 68dbe05..374baa2 100644 --- a/src/middleware/cacheMiddleware.ts +++ b/src/middleware/cacheMiddleware.ts @@ -50,13 +50,10 @@ export function cached(middleware: Middleware): Middleware { if (!wasDeferred && response.status === 200) { // Successful request, let's cache it for next time const cachedResponse = response.clone(); - cachedResponse.headers.append('x-cache-status', 'hit'); ctx.execution.waitUntil(cache.put(request, cachedResponse)); } - response.headers.append('x-cache-status', 'miss'); - return response; }, };