Skip to content

Commit

Permalink
it works!! also i forgor to set response time header
Browse files Browse the repository at this point in the history
  • Loading branch information
thonkinator committed Sep 2, 2023
1 parent 7d975ed commit 46ecae1
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 @@ -14,6 +14,7 @@ app.use("*", async (c, next) => {
console.log(cached);
const res = new Response(cached.body);
res.headers.set("X-Cache-Status", "HIT");
res.headers.set("X-Response-Time", `${performance.now() - start}`);
return res;
}
await next();
Expand Down

0 comments on commit 46ecae1

Please sign in to comment.