Browse Source

console: reduce desktop download cache ttl to 5 minutes

Brendan Allan 1 tháng trước cách đây
mục cha
commit
883a6577d5

+ 1 - 1
packages/console/app/src/routes/download/[platform].ts

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