From 8c7e2235abd20ac0c646530ede3d9dca6718fab8 Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Wed, 19 Aug 2020 12:14:02 +1200 Subject: [PATCH] fix(lambda): do not cache 500 exceptions (#1074) --- packages/lambda/src/lambda.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/lambda/src/lambda.ts b/packages/lambda/src/lambda.ts index bef9d81cd..ffd19f0ec 100644 --- a/packages/lambda/src/lambda.ts +++ b/packages/lambda/src/lambda.ts @@ -62,6 +62,7 @@ export class LambdaFunction { // Unhandled exception was thrown ctx.set('err', error); res = new LambdaHttpResponse(500, 'Internal Server Error'); + res.header(HttpHeader.CacheControl, 'no-store'); } }