mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
chore: cache control
This commit is contained in:
parent
c3b8f1845c
commit
10343dc0c9
@ -39,6 +39,7 @@ const Avatar = nc<ApiRequest, NextApiResponse>()
|
||||
|
||||
|
||||
res.setHeader('Content-Type', `image/${ext}`)
|
||||
res.setHeader('Cache-Control', 'public, max-age=86400')
|
||||
img.pipe(res)
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user