Disabling caching for certain query strings

Hi, I need to disable caching for certain query strings. Would this be a correct URL in the Page Rule:

*.mydomain.com/*variable=value*

and then selecting to bypass the cache for the above URL. Is that correct?
Thanks,
Mark

That’s correct, that path will match all URLs with variable=value, not necessarily only in the query string.

Though, you probably will want *mydomain.com, unless you explicitly do not want to apply it to the naked domain.

If you only want to apply it to the query string, you’d best use this format.

*mydomain.com*?*variable=value*
2 Likes

Thanks Sandro. Small correction, it needs to be *mydomain.com/*?*variable=value* otherwise it says invalid domain.

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