mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 06:20:24 +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('Content-Type', `image/${ext}`)
|
||||||
|
res.setHeader('Cache-Control', 'public, max-age=86400')
|
||||||
img.pipe(res)
|
img.pipe(res)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user