We are optimizing the load time for our project and have decided to use the CloudFront CDN, which has helped significantly. However, it is not performing as well as we would like. For every request, the initial connection takes about 330 ms on average, as shown below.
This is true for all the distributions we have, with origins in both S3 and Lambda (both JSONs and files returned).
The distributions are configured in the following way:
- compression enabled, both Gzip and Brotli.
- SNI Only
- MinimumProtocolVersion: TLSv1.2_2021
- HttpVersion: http2
- IPV6Enabled: true
- ViewerProtocolPolicy: redirect-to-https
Could you please suggest what might be causing this issue?
Thank you in advance!