Why this page rule not working? https://api-*/live/demo/mobile-app/*

HI
I created this page rule to cache everything for the search api json
api.example.com/api/search*

To match below pattern, but somehow cf cache does not work.
Cache-Control: no-cache
Cf-Cache-Status: DYNAMIC

https://api.example.com/api/search?object=listing&limit=10&sort=created&dir=&cat=5568&ltype=&filter=&listingId=
https://api.example.com/api/search?object=listing&limit=20&sort=created&dir=&cat=6668&ltype=&filter=&listingId=

any idea? thanks

HI
anyone knows why this page rule not working?
https://api-/live/demo/mobile-app/
https:///live/demo/mobile-app/

thanks

That Page Rule is invalid because it doesn’t include your domain name.

1 Like

thanks

1 Like

Hi

I tried to setup a rule to match below, and it does not work. Any ideas? thanks
.mydomain.com/path/

sub1.mydomain.com/path/123
s2.mydomain.com/path/234
dd1.mydomain.com/path/abc

Hi @skysky, your topic has a solution here.

Let us know what you think of the solution by logging in and give it a :+1: or :-1:.


Solutions help the person that asked the question and anyone else that sees the answer later. Login to tell us what you think of the solution with a :+1: or :-1:.

I use CNAME domain for CF, not Name server.
I made a mistake using CNAME bridge domain in page rule, and that is why rule not working.
Do not put bridge domain in page rule, use real domain as rule if using CNAME with CF.

On your Page Rule, did you provide the full domain in your URL? The URL must include your domain example.com too.

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