Page Rule for caching

We are going for below structure
domain.tld/us/folder/test
domain.tld/uk/folder/test

Subfolders are present for different countries

Can we make a page rule like this
domain.tld/star/folder/test/star Cache All
Cache TTL 2hrs

will it apply to all subfolders?

Probably. That’s certainly easy to test, though. Set up that Page Rule, then use browser’s Dev Tools’ Network tab to look at the headers for those pages. You should see a cf-cache-status if that Page Rule worked.

1 Like

we are yet to make such urls in our application.

We currently only have domain.tld/us/test structure.
But we are hoping to add /folder/ in different kinds of urls so that we can make custom page rules per pattern.

This topic was automatically closed after 14 days. New replies are no longer allowed.