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?

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南