Avoid caching localized ads

What is the name of the domain?

example.test

What is the isssue you’re encountering

I’m using the request header CF-IPCountry to get the IP country of each visitor. Then I have localized ads on my site to display for certain countries. But with the CF proxy cache the correct country ads won’t show, and when I turn off the CF DNS proxy the CF-IPCountry header won’t be passed. I have tried using a worker to pass the language as param and then load the correct ads content for that param country, however since this is seen as a GET param ie “/?country=NO” Google thinks this is a new page and starts ranking it - which I don’t want. Its basically the same page but it has ads on top of it that is loaded based on the alpha country code that CF passes.

What feature, service or problem is this related to?

I don’t know

You can create a Cache Rule to make sure ads aren’t cached.

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