5 ms·
I'm skeptical of the number of 500+ MB files the CloudFlare CDN would actually cache... Does anyone have any numbers on this?
by lgats 7y ago
I'm skeptical of the number of 500+ MB files the CloudFlare CDN would actually cache...
Does anyone have any numbers on this?
- derefr 7y agoCorrect; Cloudflare doesn't cache large asset files (I think anything more than 2MB?) by default. It's not that kind of CDN... at least, not for free it's not. Of course, you can trick Cloudflare into caching your large media assets using some funky Page Rules... but I wouldn't suggest it. Mostly just for moral reasons. If you have that much traffic, you should be making some money off it and then paying Cloudflare with it!
- judge2020 7y ago512mb: https://support.cloudflare.com/hc/en-us/articles/200172516-Understanding-Cloudflare-s-CDN https://support.cloudflare.com/hc/en-us/articles/200172516-U... And a "cache everything" page rule tends to cache literally any file type, but it's not a great idea to push media files through CF due to the TOS prohibiting "disproportionate amounts of non-web content". 2mb might be referencing the limit for Workers KV.
- Dylan16807 7y agoAh, much better than 2MB. An image for a high resolution display can hit that easily. Less so 512MB.
- nathantotten 7y agoGood point. I guess for free plans they only cache up to 512mb files [1]. It does seem you can set page rules to cache large files by extension [2]. 1. https://support.cloudflare.com/hc/en-us/articles/200172516 https://support.cloudflare.com/hc/en-us/articles/200172516 2. https://support.cloudflare.com/hc/en-us/articles/115000150272 https://support.cloudflare.com/hc/en-us/articles/11500015027...
- orf 7y ago512mb: https://support.cloudflare.com/hc/en-us/articles/200172516 https://support.cloudflare.com/hc/en-us/articles/200172516