From cee1049343c38b34c64cc3ab5c94c3cbb3f6d052 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Thu, 19 Jan 2023 14:44:18 +0000 Subject: [PATCH] Edge cacheing --- api/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/index.js b/api/index.js index fa420af..d525290 100644 --- a/api/index.js +++ b/api/index.js @@ -39,7 +39,10 @@ fi`; const handler = (request, response) => { const { address } = request.query; + const one_month = 60 * 60 * 24 * 30; + response.setHeader('Content-Type', 'text/plain'); + response.setHeader('Cache-Control', `s-maxage=${one_month}`); // Cache at edge response.send(reverseShell(address)); };