Skip to content

Commit

Permalink
fix(lambda): do not cache 500 exceptions (#1074)
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha authored Aug 19, 2020
1 parent 8ed9e8d commit 8c7e223
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/lambda/src/lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

Expand Down

0 comments on commit 8c7e223

Please sign in to comment.