Skip to content

Commit

Permalink
Revert "fix: clone cached responses"
Browse files Browse the repository at this point in the history
This reverts commit f517004.
  • Loading branch information
AlCalzone committed Sep 8, 2022
1 parent f517004 commit c23303f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ export async function withCache(
return new Response(null, { status: 304 });
}
console.log("cache hit");
// Clone cached response so we can modify its headers
return response.clone();
return response;
}

response = await responseFactory();
Expand Down

0 comments on commit c23303f

Please sign in to comment.