You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default the API gateway generated by serverless is set to be edge optimized, meaning that, if a cloudfront distribution is added on top of that, api requests will hit cloudfront nodes twice:
Client -> CloudFront distribution (this plugin) -> CloudFront distribution (Edge optimized API gateway) -> API Gateway -> Lambda
By default the API gateway generated by serverless is set to be edge optimized, meaning that, if a cloudfront distribution is added on top of that, api requests will hit cloudfront nodes twice:
Client -> CloudFront distribution (this plugin) -> CloudFront distribution (Edge optimized API gateway) -> API Gateway -> Lambda
This increases the latency of responses and mangles several cloudfront headers such as
CloudFront-Viewer-Country
, making them useless (see https://stackoverflow.com/questions/46490508/api-gateway-caching-vs-cloudfront).To fix this, this plugin should change the api gateway resources to be regional instead of edge-optimized.
The text was updated successfully, but these errors were encountered: