Is there a way to bypass cache for files >100mb and still cache files < 100mb?

I’ve been chasing down an issue on my site in regards to uploading files more than 100mb. We have determined that this only happens when Cloudflare is enabled. After a little research it seems that Cloudflare only does < 100mb on the Pro tier.

I really don’t want to put a rule to my /uploads that bypasses cache for EVERYTHING… Only bypass for those larger than 100mb.

I tried to add a rule to bypass cache for specific uri, but that doesn’t appear to be working. Everything works as expected if I change to DNS-Only mode… If I have to go DNS-Only I don’t see why I would continue paying CF.

It’s not cache limiting upload size. Cache is 512 MB per file limit for free/Pro/Biz (and any larger files are just streamed from the origin every time and not kept in cache). There is a specific limit for upload size per plan type, 100 MB for free/pro, 200MB for business, and 500 MB or more for Enterprise: Default Cache Behavior · Cloudflare Cache (CDN) docs

If you require a larger upload, group requests smaller than the upload thresholds or upload the full resource through an unproxied (grey-clouded) DNS record.

There’s no other way around it then that, or upgrading


Or chunking uploads.


That seems to be the answer… My CMS uses chinking, but I had the upload_max_filesize / post_max_size values set way too high. Changed them to 50M and now the software is chunking and uploading correctly now. Thank you.


Nice your CMS supports chunking… not common enough. :smiley: Glad that solves your issue. On some level it’s an arbitrary limit, but all limits on Cloudflare are arbitrary and drawing lines is always fuzzy. Glad this solved your issue!

1 Like

If it’s not a custom solution, would you mind giving the name of the CMS? Thanks.

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