Configure API response to be cached by CF
rowanu opened this issue · comments
So that DDB is not hit on every query.
Can the HTTP API go behind CloudFront without issue?
Totally works. 10x response improvement.
Need to set headers on source (HTTP API), or use minimum TTL on dedicated origin.
This has been implemented, mainly via Lambda@Edge functions in the distribution repo