4 ms·
Not to mention that if Cloudflare CDN was in front of it this traffic would be free.
by nathantotten 7y ago
Not to mention that if Cloudflare CDN was in front of it this traffic would be free.
- lgats 7y agoI'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
- qes 7y agoNot with this amount of traffic it won't be free. 45 TB per day lol Cloudflare will be disabling your account and in contact for payment in a hurry. Go ahead and try, see how far their "free" tier really goes.
- vxNsr 7y agoJust waiting for the Cloudflare CEO who lurks around to pop in here and offer it for free.
- deleted 7y ago[deleted]
- judge2020 7y agoFor comparison, that's just about half the amount cdnjs delivers every day (on average) https://github.com/cdnjs/cf-stats/blob/master/2019/cdnjs_August_2019.md https://github.com/cdnjs/cf-stats/blob/master/2019/cdnjs_Aug...
- dx034 7y agoNot sure about that. Especially if it all goes to one ip address where they have peering arrangements. It could cause some load there but the traffic will be essentially free for cloudflare. And some good publicity for Cloudflare.