Hey there thank you for the help, the only reason i don’t want to cache mp3 is i have huge collection of mp3’s and i dont want cloudlare to suspend my account as i want to stay on free plan due to budget constrain.
Understandable but i am excluding audio files right which are not being cached and they are directly served from Origin hosting. I only want to cache basic static files like html, css, javascript and some pictures.
How are you serving them directly from origin hosting? Are they on a separate hostname that’s set to DNS Only? In that case, you don’t need a Page Rule for those.
Sorry for my knowledge but all connections are proxied through Cloudflare. I choose standard cache as of now + That page rule you mentioned. Meaning the audio files are being seved from origin right ?
Cool thanks for the idea.
When i change dns settings from proxied to dns only it throws this pop up saying this record exposes the ip behind Cloudflare. Is that fine ?
I think you just deleted the screenshot, but it probably says something like “This record exposes the IP address of a proxied hostname.” That’s normal in this situation and unavoidable. It’d be nicer to not expose that IP address so attackers don’t know what IP address to attack directly, but I don’t think you’ll have a choice and will most likely not suffer an attack due to that.
Now my client site has already setup and all audio files are in place and changing file location to sub domain would be a ■■■■ lot of mess. Is there any alternate please think that would be huge help!!!
Make the files available through a hostname. Then create a Page Rule or Bulk Redirect to send mp3 requests from the “main” hostname to the hostname. Users will take a slight performance hit on the redirect, but its not a big deal.
One last doubt.
What would be peak point of bandwidth limit on free plan. I know in general its free forever with limited static files but in my client case audio files are being cached too and served around 2-3tb bandwidth per month. and most of his competitors are serving more than that. What would be your guess on maximum limit allowed on free plan. I know its hard to answer which we dont know that but gimme some safe spot number.
That’s like asking how much over the speed limit is safe for not getting a ticket. The wording in ToS is a “disproportionate amount” of traffic. mp3s are pretty heavy, so your stats are going to reflect that.
@michael’s workaround is a good option if you’re able to manage this: