Ask A Question


You’re not receiving notifications from this thread.

cloudflare vs cloudfront vs ?

robert asked in Tips

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


Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 84,256+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.