From 46ecae129cad1a37d37a76928aba4eebbc57b219 Mon Sep 17 00:00:00 2001 From: Patrick Martin Date: Sat, 2 Sep 2023 16:59:21 -0400 Subject: [PATCH] it works!! also i forgor to set response time header --- src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.ts b/src/index.ts index 0c20d3f..5d55d77 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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();