By using AWS re:Post, you agree to the Terms of Use

Caching is not working properly in Cloudfront


Although I enabled caching, I put it to the test in gtmetrix with the slow opening of my site and found that the files in Cloudfront do not have caching time. ss1 ss2

asked 7 months ago55 views
1 Answer

Two things to check:

  • Ensure that the cache settings in CloudFront have not been set to zero - it is possible to override the default action (see the next point).
  • CloudFront honours the cache headers as sent by the origin. So if the origin specifies zero (or little) cache time, that's what CloudFront does.
profile picture
answered 7 months ago

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