diff --git a/api/events.js b/api/events.js index 9e66570..0442342 100644 --- a/api/events.js +++ b/api/events.js @@ -10,6 +10,7 @@ export default async function handler(req, res) { res.setHeader('Access-Control-Allow-Origin', '*'); res.setHeader('Access-Control-Allow-Methods', 'GET, OPTIONS'); res.setHeader('Access-Control-Allow-Headers', 'Content-Type'); + res.setHeader('Cache-Control', 's-maxage=1800, stale-while-revalidate=3600'); if (req.method === 'OPTIONS') { return res.status(200).end(); diff --git a/index.html b/index.html index 77b658f..5a481c0 100644 --- a/index.html +++ b/index.html @@ -22,9 +22,11 @@ -