mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-19 16:40:48 +00:00
console: reduce desktop download cache ttl to 5 minutes
This commit is contained in:
parent
fcaa041ef9
commit
bc557e828d
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue