mirror of
https://github.com/uetchy/namae.git
synced 2025-10-14 15:12:18 +09:00
fix: optimize analytics
This commit is contained in:
@@ -4,9 +4,9 @@ exports.fetch = (url, method = 'HEAD') => {
|
||||
return fetch(url, { method })
|
||||
}
|
||||
|
||||
exports.send = (res, obj) => {
|
||||
res.setHeader('Cache-Control', 'maxage=0, s-maxage=3600')
|
||||
res.json(obj)
|
||||
exports.send = (res, data) => {
|
||||
res.setHeader('Cache-Control', 'maxage=0, s-maxage=43200')
|
||||
res.json(data)
|
||||
}
|
||||
|
||||
exports.sendError = (res, error) => {
|
||||
|
1190
api/yarn.lock
Normal file
1190
api/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user