From a0fea1fdb64ad539ad072553ad3ec7a435bc9686 Mon Sep 17 00:00:00 2001 From: Dillon Kearns Date: Mon, 10 May 2021 15:40:43 -0700 Subject: [PATCH] Add cache-control header. --- examples/docs/functions/screenshot.js | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/docs/functions/screenshot.js b/examples/docs/functions/screenshot.js index 294dbf4a..a60df14c 100644 --- a/examples/docs/functions/screenshot.js +++ b/examples/docs/functions/screenshot.js @@ -65,6 +65,7 @@ exports.handler = async (event, context) => { return { statusCode: 200, body: photoBuffer, + headers: {'Cache-Control': 'public, max-age=1800'}, isBase64Encoded: true, }; };