From d806b2a4636d532bebf48b828119d90ecfae7726 Mon Sep 17 00:00:00 2001 From: Techatrix Date: Sat, 10 Aug 2024 06:37:32 +0200 Subject: [PATCH] update cache-control http header --- src/select-zls-version.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/select-zls-version.ts b/src/select-zls-version.ts index 9b9cd75..4714ac5 100644 --- a/src/select-zls-version.ts +++ b/src/select-zls-version.ts @@ -177,7 +177,7 @@ export async function handleZLSIndex( return Response.json(response, { headers: { - "cache-control": "max-age=43200", // 12 hours + "cache-control": "public, max-age=3600", // 1 hour }, }); } @@ -254,8 +254,8 @@ export async function handleSelectVersion( return Response.json(response, { headers: { "cache-control": zigVersion.isRelease - ? "max-age=43200" // 12 hours - : "max-age=600", // 10 minutes + ? "public, max-age=3600" // 1 hour + : "public, max-age=300", // 5 minutes }, }); }