From 54cc2dc094cf8494cdf3605d0550335d02fbdaa9 Mon Sep 17 00:00:00 2001 From: Benny Joo Date: Wed, 6 Nov 2024 19:19:20 -0500 Subject: [PATCH] chore: cache meeting OG images for 1 day (#17525) --- apps/web/pages/api/social/og/image.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/web/pages/api/social/og/image.tsx b/apps/web/pages/api/social/og/image.tsx index b3078fcb8b..b57cf8e13b 100644 --- a/apps/web/pages/api/social/og/image.tsx +++ b/apps/web/pages/api/social/og/image.tsx @@ -85,7 +85,10 @@ export default async function handler(req: NextApiRequest) { ogConfig ) as { body: Buffer }; - return new Response(img.body, { status: 200, headers: { "Content-Type": "image/png" } }); + return new Response(img.body, { + status: 200, + headers: { "Content-Type": "image/png", "cache-control": "max-age=86400" }, + }); } case "app": { const { name, description, slug } = appSchema.parse({