Skip to content

Commit d959aa5

Browse files
committed
fix: reduce brand asset cache TTL so Cloudflare refreshes faster
1 parent 53ae689 commit d959aa5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cli/server-app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ Respond in character as this person. Be direct, personal, emotional. Reference y
529529
if (existsSync(brandPath)) {
530530
const ext = brandPath.split('.').pop() || '';
531531
const types: Record<string,string> = { svg:'image/svg+xml', png:'image/png', jpg:'image/jpeg', css:'text/css', js:'application/javascript', woff2:'font/woff2' };
532-
res.writeHead(200, { 'Content-Type': types[ext] || 'application/octet-stream', 'Cache-Control': 'public, max-age=86400' });
532+
res.writeHead(200, { 'Content-Type': types[ext] || 'application/octet-stream', 'Cache-Control': 'public, max-age=300, s-maxage=60' });
533533
res.end(readFileSync(brandPath));
534534
return;
535535
}

0 commit comments

Comments
 (0)