|
|
|
|
|
by MichaelGG
4007 days ago
|
|
CloudFlare told me that using them to host images/media isn't allowed. That they do the CDN bits for websites, but not to do excessive non-webpage stuff. Their ToS says something like that. Maybe that changes for a few K a month? |
|
As a practical example, you might have an image on your webserver. When it goes viral on reddit, the request for the image hits the CDN first, not your servers (that's why they call it reverse proxying), they see that they don't have a cached version of the file, or their cached version has expired, so the CDN sends a request to your server, copies the file, and then proceeds to serve that file from their cache for the next million user requests or until the cache is set to expire (usually 24 or so hours, more than long enough for the traffic hitting your image url to die down).
Basically, the CDN made it so your actual servers (and thus your host bandwidth bill) served one request. Not 1 million requests.
Now typically you will foot the bandwidth bill for the CDN as well, but Cloudflare has a tiered pricing structure that is well below the rest of the competition. See moot (owner of 4chan) talk about cost savings here: https://news.ycombinator.com/item?id=6682324