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.

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.

전문가
답변함 일 년 전
  • 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?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠