diff --git a/mod.ts b/mod.ts index 5ec7b78..9ede274 100644 --- a/mod.ts +++ b/mod.ts @@ -51,7 +51,9 @@ export class Cache { } async put(request: RequestInfo, response: Response): Promise { - const req = request instanceof Request ? request : new Request(request); + const req = request instanceof Request + ? request.clone() + : new Request(request); const status = response.status; const headers = Object.fromEntries(response.headers.entries());