Only want to cache 1 thing, custom extensions, help needed


#1

Hello,

Not a CloudFlare user yet, but might have a good user case for it.

Currently client connections call a url, and then the url is re-written to where the static data actually is, and then they download it.

I am interested in using CloudFlare CDN to cache content from the url that holds the static data, nothing else. Is this possible? both the first url and the re written url are in the same domain, but their subdomain is different. I do not want to cache anything else.

Also, the extensions of the files in question are custom.

Thanks,
Naseem


#2

Yes, you can enable Cloudflare just on the specific subdomain and bypass it on everything else.

You can use regex via ‘Page Rules’ if you want to enable or disable specific features at an even more granular level such as specific paths only etc.


#3

Thanks Saul,
How do you do the former? With regex via Page Rules as well?

Cheers,
Naseem


#4

Well you enable or disable Cloudflare functionality by a toggle on each record (A/CNAME) so you could disable requests even being proxied by Cloudflare for all (sub)domains except for the one in question. Alternatively you could enable Cloudflare proxying on multiple records but turn caching off as default, then only enable for a specific subdomain or path based on a Page Rule.

Once you have your account set up, it’ll be easier to see the best approach in your case.


#5

Ah I see I see.

Lastly please, does one need to use CloudFlare DNS to take advantage of CloudFlare CDN?

Cheers,
Naseem

Edit: I believe the answer lies here: https://support.cloudflare.com/hc/en-us/articles/202320534-Can-I-use-Cloudflare-without-changing-my-nameservers-to-Cloudflare-


#6

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