When adding an A record in order to create a subdomain under the free plan, what settings from other areas of Cloudflare will be applied to that subdomain?
As far as I can tell from plenty of usage and searching, subdomains are proxied but wouldn’t have the other features applied (e.g. caching).
I understand that subdomain support comes with an Enterprise plan.
My use case here is that I have a staging site which I’ve deployed to a subdomain named ‘staging’ and I’m wondering what are the explicit differences (when the website is freshly cloned) are between production and staging.
I’m not necessarily looking to apply any specific features to my subdomains, as I’m happy with the free plan.
I have removed the risk of my staging site being crawled or viewed by using the Access (Zero Trust) based on email using the OTP feature, which works for me. If I grey cloud the subdomain in order to test my design changes in realtime without any of Cloudflare’s settings being applied, I would still be exposing my origin server IP (based on using WhatsMyDNS to check the A record when grey/orange clouded). For that reason I’m cautiously keeping the subdomain orange clouded (running through Cloudflare) which means it is proxied.
The features I use include: Security, Speed, Caching, Analytics and more.
Do these features apply to just the root domain, and what features (other than a proxy) are applied to other zones such as an A record containing a subdomain?
I’ve come to some kind of conclusion that caching applies to subdomains the same as root domains:
I’ve toyed around around caching rules and had a peek at some response headers, but this still doesn’t yet fully confirm that my conclusion is accurate in my use case (ie. free account with subdomains using A records)
I’ve found some informative further reading in the docs:
As this query will soon draw to a close, I’d like to conclude by saying that now my staging site has been pushed to production I’ve learnt even more about how Cloudflare works.
As far as using a subdomain goes, it seemed a lot better than using a sub-directory or even a separate domain altogether.
I’m still curious about the exact differences between a proxied subdomain using an A record vs the usual CNAME contenders, but I’m always pleasantly surprised when I manage to squeeze so much use out of so many quality services on a shoestring and now have a mock-up e-commerce site loading in under half a second. I’m happy with that. Happy Halloween: https://vapu.co.uk