1
0
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:
Matthias Kretschmann 2020-06-16 17:04:26 +02:00
parent abc037903c
commit e06ca01be4
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -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 = {}