How can I configure Cloudflare to cache a website at example.com but prevent caching at nocache.example.com?
Also, how can I purge caching on the nocache.example.com subdomain?
You can bypass caching based on hostname using cache rules.
Purging cache by hostname requires an Enterprise agreement.
Thank you for the quick reply. I just created a rule to exclude caching in our subdomain but it does not seem to work. If I enable Development Mode, the site works.
What am I missing?
Can you show the rule?
Did you purge the cache after adding the rule?
This is the error I’m seeing in the developer tools
If I enable Development Mode I don’t see this error
How about my other question?
Yes, I purged everything after I added the rule
The rule looks good.
I’m afraid I don’t have anything else I can suggest at the moment. Hopefully another Community member will be able to offer some further insight.
Thank you for your help
1 Like