Purge cache by URL for ALL geo

We use geo caching to serve different content for several groups of countries on the same file url.
To serve cached for first-visit users, we use CF geo caching (no tagging from our servers).
Content changes simultaneously for all geo-groups (but is different), so how can it be purged by URL for ALL countries simultaneously?
Setting files with "CF-IPCountry" => "*" header did not work.
If country is specified directly - purging happens fine (we have enterprise acc), but that`s pain to purge one by one (countries are not logged and may be any).
Purging by prefix is not suitable (there are many files in the same “folder”).

This sounds like something @eva2000 would try. Maybe he knows how this works.

1 Like

How are you creating the CF Geo Cached entries ? If you’re setting them from origin, you can also add to origin served files a Cache-Tag for each country and then just purge by Cache-Tag https://support.cloudflare.com/hc/en-us/articles/200169246#h_6d756ac9-c476-45e8-a5d4-e2a6e45d9dc7

Or do it via custom cache keys https://support.cloudflare.com/hc/en-us/articles/115004290387-Creating-Cache-Keys

If country is specified directly - purging happens fine (we have enterprise acc), but that`s pain to purge one by one (countries are not logged and may be any).

looks like you’re using cache keys for Geo cache already so would need to specific each country or combine with Cache-Tag

edit: ah purge by Cache-Tag doesn’t affect custom cache keys so that isn’t an option

Purge by Tag / Host & Purge Everything are not impacted by the use of custom Cache Keys.

1 Like

Here is the current Page Rules setup:

So we either cycle through all possible countries or stick to purge-by-prefix (it seems to do the trick)?