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 Resposta
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.

ESPECIALISTA
respondido há um ano
  • 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?

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas