0
votes

I have setup cloud-front to serve cache content from edge locations.but my cloudfront is not serving cache content from edge location, it is hitting origin server for all request.

below is the screenshot of my cloudfront setting.

enter image description here

Are my settings correct?

*******************************edited***********************

Trying to assign cname but its not working. am i doing something wrong??

enter image description here

1
How do you know Cloudfront is hitting the Origin server and not the cloud front? - error2007s
i am checking the log of my application server and in the log i can see the request hitting to my server. - Sanjay Salunkhe
Can you share the link of your application? And another question is does does your log shows combination of same IP address or all the IP address are different? As per your Cloudfront setting all seems to be correct. - error2007s
dh7jv4lqr6tiu.cloudfront.net - cloudfront link and web application direct access link without cloudfront is 54.218.54.243:3000 - Sanjay Salunkhe

1 Answers

0
votes

You should add a C-Name to your application domain to point to "dh7jv4lqr6tiu.cloudfront.net". Then your application will be serving from the Cloud Front. The Cloud Front Settings are correct.