mirror of
https://github.com/oceanprotocol/community-numbers.git
synced 2024-12-22 09:13:24 +01:00
set Cache-Control header
This commit is contained in:
parent
abc037903c
commit
e06ca01be4
@ -13,6 +13,7 @@ import fetchDiscord from './networks/discord'
|
||||
export default async (req, res) => {
|
||||
res.setHeader('Access-Control-Allow-Origin', '*')
|
||||
res.setHeader('Access-Control-Allow-Methods', 'GET')
|
||||
res.setHeader('Cache-Control', 'max-age=0, s-maxage=86400')
|
||||
|
||||
let response = {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user