Hacker News new | ask | show | jobs
by sciurus 1651 days ago
Your post leaves it a little bit unclear what you actually did.

Are you saying that

1. Originally all requests for images went directly to the egregiously-priced image host

2. You changed that traffic to be routed through Cloudflare instead so it would be cached

3. That reduced requests to your image host enough to cut your bill by 99%

?

1 comments

The client was using an image host which supported image transforms. They uploaded all their images there and were using a lot of image transforms from that host on their website. So, HOST/img/123?scale=1.3&color=greyscale type business. They were paying per image loaded from the site.

We tucked cloudflare in front of the image host using a URL rewrite rule. Cloudflare's cache reduced the number of requests made to the image host by 99% or something.

Thanks for confirming! Pretty amazing what some well-placed caching can do.