How to get cache HIT for urls with query string? eg. PPC tracking params

What is the name of the domain?

catering24.co.uk

What is the issue you’re encountering

I want Cloudflare to ignore tracking params so that the user is delivered with a HIT in cache from cloudflare. Currently, i can go to url Example Domain and it would be miss. Then return in a new window to the same url it would then hit. However, a lot of my tracking has unique tracking codes. So each user could have a different number and therefore never see the benefit of cached page eg. if i changed it to Example Domain it would then MISS again. How can I resolve this with the tools at my disposal on Business plan?

Per default / globally, this can be changed with the “Caching Level” under “Caching Configuration”:

https://dash.cloudflare.com/?to=/:account/:zone/caching/configuration

Alternatively, if you’re running with one or more “Cache Rules” configured, you can enable the “Ignore query string” option, under the “Cache key” section.

https://dash.cloudflare.com/?to=/:account/:zone/caching/cache-rules

4 Likes

Thank you, that was helpful.

Ive set them both to ignore query string and yes I had quite a few rules set up so gone in to each and set to ignore query string.

Will report back if it has the speed difference I was looking for.

2 Likes

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