CDN for Images

Hi,
we want to use Cloudflare as CDN and WAF solution. one of our usecases is the caching for images which are stored on subdomains (image.mydomain.com)

We have seen in your Terms and Conditions 2.8 that caching is only allowed if the main part of files are not images and Cloudflare is allowed to block the account unless we pay for it. We want to use the services legal but don’t know what we have to do…

Reference: . “…Use of the Services for serving video or a disproportionate percentage of pictures, audio files, or other non-HTML content is prohibited, unless purchased separately as part of a Paid Service or expressly allowed under our Supplemental Terms for a specific Service. If we determine you have breached this Section 2.8, we may immediately suspend or restrict your use of the Services, or limit End User access to certain of your resources through the Services…”

what is necessary for us to legally use our image subdomains inside the cdn. ?

Thanks,

Using a product like https://www.cloudflare.com/products/cloudflare-images/ or one of the other Developer Platform products listed in https://www.cloudflare.com/supplemental-terms/#cloudflare-developer-platform that allows non-HTML content.

for Cloudflare Images we have to upload every single image to Cloudflare. the solution we need is that they are allowed to stay on a dedicated image server as we won’t have the possibility to move them to somewhere else

Try using Cloudflare page rules and cache the directory under which you make all image uploads.
Should work just fine.

Image Resizing is a very similar product where the images sit on your origin - I can’t guarantee that Image Resizing is exempt from the ‘proportionate non-HTML content’ clause of the Self-Serve Terms and Conditions so I’d recommend getting in touch with Cloudflare’s sales team about that.

https://developers.cloudflare.com/images/image-resizing/

There was previously a paragraph in the Supplemental Terms that allowed serving non-HTML content (except video) when using Workers.

But this paragraph has since been removed. I am unable to find anything about allowing non-HTML content in the new terms.

Despite all of the good offerings that CF has, images CDN is one of the weakest areas IMHO. I found bunnycdn to be a better choice for this purposes, while keeping HTML content under CF protection. YMMV.

Thanks for the hint, do you know how they calculate the price? is it 9$ per 50k image optimization processes and already optimized images in cache won’t be priced again or 9$ per 50k requests.

Further. I found the offering Cloudflare Image Polish which format an image into webp from origin and put it into cache. can I assume that with Cloudflare Pro which includes polish I can use the image server for caching ?

Image Resizing only counts cache misses as requests - so once it’s resized and in the cache of a colo, any hits to that particular resized image won’t count towards your billable usage.

https://developers.cloudflare.com/images/faq/

If the static asset subdomain is on the same account as the website this is not an issue at all, provided your website does not have a disproportionate amount of media assets.

The limitation is to stop people using Cloudflare to cache and serve huge volumes of images/videos/binary files “for free”.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.