From 0ee56be1d877e621ac49379ad659c9d28a8f5220 Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Fri, 19 Jan 2024 11:57:02 +0000 Subject: [PATCH] chore: Cache-Control new style avatar URLs (#13285) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Omar López --- apps/web/pages/api/avatar/[uuid].ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/pages/api/avatar/[uuid].ts b/apps/web/pages/api/avatar/[uuid].ts index 2e8a1dfda3..85ef09648e 100644 --- a/apps/web/pages/api/avatar/[uuid].ts +++ b/apps/web/pages/api/avatar/[uuid].ts @@ -55,6 +55,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) res.writeHead(200, { "Content-Type": "image/png", "Content-Length": imageResp.length, + "Cache-Control": "max-age=86400", }); res.end(imageResp);