aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-10-17 17:43:08 -0700
committerFuwn <[email protected]>2023-10-17 17:43:14 -0700
commit4f0742fa4a02808cdc2bc9522644ffa2fc04215b (patch)
tree5dced35c7d3eccda15b725bcc36e225873b79014
parentdocs(readme): add (diff)
downloadshinobu-4f0742fa4a02808cdc2bc9522644ffa2fc04215b.tar.xz
shinobu-4f0742fa4a02808cdc2bc9522644ffa2fc04215b.zip
feat(worker): lower cache to 1 secondHEADmain
-rw-r--r--src/worker.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/worker.ts b/src/worker.ts
index 124c67b..d535988 100644
--- a/src/worker.ts
+++ b/src/worker.ts
@@ -36,7 +36,7 @@ router
.get("/shinobu", async (_request) => {
let response = new Response(await shinobu());
- response.headers.set("Cache-Control", "public, max-age=5, s-maxage=5");
+ response.headers.set("Cache-Control", "public, max-age=1, s-maxage=1");
return response;
})