Title: Set up CloudFront Object Versioning
Last modified: June 4, 2020

---

# Set up CloudFront Object Versioning

 *  Resolved [tylerlindell](https://wordpress.org/support/users/tylerlindell/)
 * (@tylerlindell)
 * [6 years ago](https://wordpress.org/support/topic/set-up-cloudfront-object-versioning/)
 * I am seeing CloudFront invalidations even with the flag set to only do those 
   manually. Is there a way to use object versioning instead?
 * I’m using S3 push -> CloudFront as the CDN, right now – Yesterday I switched 
   from CloudFront pull for the static assets in favor of the S3 push so CloudFront
   can just look in S3 for the files and I can offload that work from my ec2 instance.
 * How can I use object versioning instead of invalidations?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [6 years ago](https://wordpress.org/support/topic/set-up-cloudfront-object-versioning/#post-12938520)
 * Hello [@tylerlindell](https://wordpress.org/support/users/tylerlindell/)
 * Thank you for your inquiry and I am happy to assist you with this.
    Sending a
   new object version is also a kind of invalidation. Can you please clarify what
   you want to achieve? Thanks!
 *  Thread Starter [tylerlindell](https://wordpress.org/support/users/tylerlindell/)
 * (@tylerlindell)
 * [6 years ago](https://wordpress.org/support/topic/set-up-cloudfront-object-versioning/#post-12955094)
 * Invalidation is happening a lot and it looks to be happening on images specifically.
   it seems like they are being directly invalidated which is ringing up the bill.
   I have it set to only invalidate manually – but that’s being ignored or disregarded
   when it comes to images for some reason. I recently removed the {uploads-dir}
   from the automatically upload files as well as removed *.jpg;*.png;*.gif from
   the list of file types to update because the invalidations seem to be heavily
   focused on images.
 * I use a different app to manage image -> cdn which uses object versioning and
   it has never invalidated anything which has allowed my cloudfront bill to be 
   acceptable, once I started using this plugin though… it’s like the lid has come
   off and cash is spilling out specifically wrt CloudFront invalidations.
 * I want to use object versioning because the cost seems to be much more negligible
   than directly asking for an invalidation.
 * Here are the docs regarding object invalidation using cloudfront: [https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/UpdatingExistingObjects.html](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/UpdatingExistingObjects.html)
 * What are your thoughts?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Set up CloudFront Object Versioning’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

 * [CloudFront](https://wordpress.org/support/topic-tag/cloudfront/)
 * [invalidation](https://wordpress.org/support/topic-tag/invalidation/)

 * 2 replies
 * 2 participants
 * Last reply from: [tylerlindell](https://wordpress.org/support/users/tylerlindell/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/set-up-cloudfront-object-versioning/#post-12955094)
 * Status: resolved