Caching Rules Not Working


I have just setup a few Cache Rules for my pages and there is a few that don’t seem to be working properly.

My rule is

(http.request.uri.query contains “/update/”) and ((http.request.uri.query contains “act=share”) or (http.request.uri.query contains “act=description”) or (http.request.uri.query contains “act=report2”))

I have this Cache Rule setup to be Eligible for Cache and Ignore Cache-Control header and use TTL of 1 hour.

When I visit my ajax page: it still loads with

Cf-Cache-Status: DYNAMIC

I can also see in the response from Cloudflare my expires header of 1 week in the future.

Expires: Mon, 18 Mar 2024 22:20:43 GMT

What am I doing wrong? I don’t really see where there could be any conflicting rules and even tried removing the other Cache Rules I just setup…

Other rules that I have, seem to work properly… and I THOUGHT this rule was working for a few minutes…

The query is only the part after the ?. Your /update/ is part of the URI Path.

1 Like

Oops! Awesome! Thank you.

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