APO kill geolocation

i’m using this plugin
with option:
Add a country-specific CSS class to the -Tag

after i activated APO everthing go crazy

1 Like

Hi @matei.marius.
Unfortunately APO is not compatible with the use case using country-specific CSS.

Hi,
APO Killed my geoIP info too.
All pages are shown with content targeting to US visitors only.

1 Like

yes, US show for me also

1 Like

This maybe to do with APO not currently giving the visitor IP address and your geo location will therefore just show as the location of the CF server/ip.
See here for details: Automatic Platform Optimization Enabled & I No Longer See Visitor IP? - #24 by pfsquad

1 Like

this is fixed now, real visitor IP is now returned for cf-connecting-ip and x-forwarded-for when the feature is activated.

1 Like

amazing news, thanks so much

one question here, is there any point to use cloudflare workers with edge cache script in combination with APO?

1 Like

APO is a replacement for templates/examples/edge-cache-html at main · cloudflare/templates · GitHub, otherwise depends on your edge cache script logic.

3 Likes