chore: cache control

This commit is contained in:
원더 2021-01-30 11:55:17 +09:00
parent c3b8f1845c
commit 10343dc0c9

View File

@ -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)
})