Skip to content

Scheduling infrastructure for absolutely everyone.

chore: Cache-Control new style avatar URLs (#13285)

Alex van Andel0ee56be1d877
diff --git a/apps/web/pages/api/avatar/[uuid].ts b/apps/web/pages/api/avatar/[uuid].ts
index 2e8a1dfda38..85ef09648e5 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);