Browse Source

Edge cacheing

master
Luke Childs 2 years ago
parent
commit
cee1049343
  1. 3
      api/index.js

3
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));
};

Loading…
Cancel
Save