Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Martin <me@psm.pm>
  • Loading branch information
thonkinator committed Sep 4, 2023
1 parent e238c22 commit 2f0613b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ app.use("*", async (c, next) => {
const res = new Response(cached.body);
res.headers.set("X-Cache-Status", "HIT");
res.headers.set("X-Response-Time", `${performance.now() - start}`);
res.headers.set("Content-Type", cached.headers.get("Content-Type")!);
return res;
}
await next();
Expand Down

0 comments on commit 2f0613b

Please sign in to comment.