Revert "Increase cacheTtl to 1 day"

This reverts commit 038f80db03.
This commit is contained in:
Erisa A 2023-04-26 01:42:11 +00:00
parent 91111acfcf
commit 3d5ceaf054
No known key found for this signature in database

View file

@ -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(