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.

gefragt vor 10 Monaten211 Aufrufe
1 Antwort
1
Akzeptierte Antwort

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
EXPERTE
Steve_M
beantwortet vor 10 Monaten
profile picture
EXPERTE
überprüft vor 10 Monaten
profile pictureAWS
EXPERTE
überprüft vor 10 Monaten
  • 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.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen