• Resolved tylerlindell

    (@tylerlindell)


    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

    (@vmarko)

    Hello @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

    (@tylerlindell)

    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

    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.