From 3d5ceaf05439fc423f73ac66c98b14c66caf4a04 Mon Sep 17 00:00:00 2001 From: Erisa A Date: Wed, 26 Apr 2023 01:42:11 +0000 Subject: [PATCH] Revert "Increase cacheTtl to 1 day" This reverts commit 038f80db03436aded04cf27d190151eb3c74a8f4. --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index fd28588..1f129a0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -120,7 +120,7 @@ app.head('*', handleGetHead) // handle both GET and HEAD async function handleGetHead(c: Context) { // actual logic goes here - const urlResult = await c.env.KV.get(c.get('key'), { cacheTtl: 86400 }) + const urlResult = await c.env.KV.get(c.get('key')) if (urlResult == null) { return c.json( @@ -144,7 +144,7 @@ async function handleGetHead(c: Context) { // delete specific key app.delete('*', async (c) => { - const urlResult = await c.env.KV.get(c.get('key'), { cacheTtl: 86400 }) + const urlResult = await c.env.KV.get(c.get('key')) if (urlResult == null) { return c.json(