Skip to main content
Ask A Question
You’re not receiving notifications from this thread.

cloudflare vs cloudfront vs ?

Tips • Asked by Robert Hopman

Hey Chris,

I've many images on S3 with avg size of 30KB per img that take about 1-2 seconds to display. I'm looking at cloudfront & cloudflare to speed this up. Later perhaps imgix, but I see it as too costly now.

Which one is a good choice? What should I look at besides pricing for my decision?

I have the same issue, I built a photo gallery and that 1-2 second delay to load the images from the s3 bucket. But on my main website I use cloudflare to handle the DNS for my main domain, and its 10$ a month per website. There is many different caching techniques that cloudflare has to offer. Even if your server goes down your website will be cached by cloudflare.

So im probably going to cache the photo gallery app through cloudflare. and that would solve the 1-2 second delay.

If you are using S3 it is pretty trivial to use it as as origin for cloudfront.

On an aside, you should also look at using webp w/poly fills to speed up your images


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 29,763+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.