Skip to content

Commit

Permalink
update cache-control http header
Browse files Browse the repository at this point in the history
  • Loading branch information
Techatrix committed Aug 10, 2024
1 parent ee355f5 commit d806b2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/select-zls-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
});
}
Expand Down Expand Up @@ -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
},
});
}
Expand Down

0 comments on commit d806b2a

Please sign in to comment.