console: reduce desktop download cache ttl to 5 minutes

pull/8239/head
Brendan Allan 2026-01-13 23:51:16 +08:00
parent 20b52cad2a
commit 883a6577d5
No known key found for this signature in database
GPG Key ID: 41E835AEA046A32E
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ export async function GET({ params: { platform } }: APIEvent) {
const resp = await fetch(`https://github.com/anomalyco/opencode/releases/latest/download/${assetName}`, {
cf: {
// in case gh releases has rate limits
cacheTtl: 60 * 60 * 24,
cacheTtl: 60 * 5,
cacheEverything: true,
},
} as any)