Worker to bypass cache for +500 MB File Size

Hi,
I want to Cloudflare cache my files that are less than 500MB file size and bypass +500 MB files.
why did I do that? because when a file is more than 500MB size and cached by Cloudflare, the download speed limit, and when the file is less than 500MB, the download speed isn’t limited by Cloudflare, so I want to users download a +500MB fIle directly from my servers and get a <500 MB file from Cloudflare cache. is it possible?

Hello,
I can’t think of an “out of the box” way to achieve that unfortunately.
You could try to use Workers and the Cache API, to cache based on the “content-length” header?