Waiting for server response is high

0

We have hosted a React web app using S3 and Cloudfront. Whenever we are fetching any static assets, the waiting for server response is coming around 200 - 1000 ms. Can we do something to bring this to under 100ms time?

Our main Cloudfront settings are

  • Use all edge locations (best performance)

  • Compress objects automatically: Yes

  • Caching policy: Caching Optimized Recommended for S3

  • Restrict viewer access: No

  • S3 bucket is hosted in ap-south-1

  • User is trying to access the website in ap-south-1 region only.

ak14
已提问 1 年前1158 查看次数
1 回答
0

First confirm you're not accessing S3 as a an S3-hosted static website. You should access it as a native S3 origin.

Then have a look at your metrics in CloudFront, and Developer Tools in your web browser, to ensure CloudFront caching is happening as expected.

专家
已回答 1 年前
  • Yes, I'm accessing all the assets from S3 as native S3 origin. Network tab is showing, 'Hit from Cloudfront'. But still, the waiting for server response time is over 200ms. Is there anything that I'm missing?

  • Can't think of anything else on the server side, maybe it's a client-side issue? Are you able to get someone to try accessing from a different ISP?

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则