Cloudfront distribution out of date

0

Hello folks, I´m getting troubles with my Cloudfront distribution and I suppose that it´s out of date, since I´m not receiving the same answer than specified origin. I mean, the Load Balancer environment is giving me the right answer (I test it directly) but something is happening with the Cloudfront distribution and it seems to be out of date because the old answer is all what I´ve got from it. Thanks in advance for your support.

asked 10 months ago202 views
1 Answer
1
Accepted Answer

What's your CloudFront TTL? If the object is already cached at the edge location, and after that you've updated the source, the old version of the object at the edge location will carry on being served until the TTL is reached https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html

You can invalidate the cached object and force the new version to be retrieved from the source into the cache https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html

profile picture
EXPERT
Steve_M
answered 10 months ago
profile picture
EXPERT
reviewed 10 months ago
profile pictureAWS
EXPERT
reviewed 10 months ago
  • Thanks buddy, it works exactly as you explained before. I've disabled the cache now, so that no more issues like that should appears. Thanks a lot for your support and soon reply.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions