Cache only Blog in a Directory

Hello Cloudflare community,

I have a social media website in https://domain.com that is not compatible with Cloudflare because of cache issue. but I have a News Blog in https://domain.com/noticias/ where I want to use Cloudflare cache ONLY.

How can I cache only https://domain.com/noticias/, and Bypass https://domain.com and all the contents from the social media site ?

Note: I just want to cache the News Blog Directory.

You should be able to do this with Cache Rules.

The traffic would still go through Cloudflare, but you could bypass the cache.

I’d use the new Cache Rules: First create a rule that bypasses the cache for https://domain.com/* and then create a rule for https://domain.com/noticias/* that enables the cache.

Or you could use the classic Page Rules, in which case you would put the https://domain.com/noticias/* rule first.

1 Like

Thanks a lot. In this order:

https://domain.com/* - ByPass
https://domain.com/noticias/* - Cache Everything

?

Yes, if you’re using Cache Rules, then that’s the correct order. Last match’s settings win.

2 Likes