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.

demandé il y a un an215 vues
1 réponse
1
Réponse acceptée

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
répondu il y a un an
profile picture
EXPERT
vérifié il y a un an
profile pictureAWS
EXPERT
vérifié il y a un an
  • 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.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions