diff options
author | Shav Kinderlehrer <[email protected]> | 2023-10-15 14:18:29 -0400 |
---|---|---|
committer | Shav Kinderlehrer <[email protected]> | 2023-10-15 14:18:29 -0400 |
commit | 2ed9173277e4504de8c1aea4c1320e46789894c2 (patch) | |
tree | 499c058da0b785772c526561946d8cd4f4f7de21 /src/get.ts | |
parent | 7ac3362d02d52b7ec18746a901a768203604529c (diff) | |
download | url-shortener-2ed9173277e4504de8c1aea4c1320e46789894c2.tar.gz url-shortener-2ed9173277e4504de8c1aea4c1320e46789894c2.zip |
Finish headers
Diffstat (limited to 'src/get.ts')
-rw-r--r-- | src/get.ts | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -57,7 +57,7 @@ export async function get_id( const res = new Response(html, { status: 301 }); res.headers.set("Location", url.href); - res.headers.set("Cache-Control", "max-age=3"); + res.headers.set("Cache-Control", "max-age=120"); res.headers.set("Content-Type", "text/html"); if (context.headers["user-agent"] ?? "".includes("curl")) { |