summary refs log tree commit diff
path: root/src/routes/avatars.ts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/routes/avatars.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/routes/avatars.ts b/src/routes/avatars.ts

index 321ae02e..fea7c5f4 100644 --- a/src/routes/avatars.ts +++ b/src/routes/avatars.ts
@@ -52,6 +52,7 @@ router.get("/:user_id/:id", async (req: Request, res: Response) => { const type = await FileType.fromBuffer(file); res.set("Content-Type", type?.mime); + res.set("Cache-Control", "public, max-age=31536000"); return res.send(file); });