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.

posta 10 mesi fa211 visualizzazioni
1 Risposta
1
Risposta accettata

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
ESPERTO
Steve_M
con risposta 10 mesi fa
profile picture
ESPERTO
verificato 10 mesi fa
profile pictureAWS
ESPERTO
verificato 10 mesi fa
  • 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.

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande