1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-03 21:56:18 +02:00

enhance(backend): 外部サイトのOGPのキャッシュ期間を調整

This commit is contained in:
syuilo
2025-05-29 13:53:33 +09:00
parent c1ff6feeda
commit 85c28d5cb7
2 changed files with 3 additions and 2 deletions

View File

@@ -94,8 +94,8 @@ export class UrlPreviewService {
summary.icon = this.wrap(summary.icon);
summary.thumbnail = this.wrap(summary.thumbnail);
// Cache 7days
reply.header('Cache-Control', 'max-age=604800, immutable');
// Cache 1day
reply.header('Cache-Control', 'max-age=86400, immutable');
return summary;
} catch (err) {