-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conflict with multiple currency plugin #80
Comments
Your website varies the response using the request IP.
|
I wrote Actual detected country because the Country detected by geoip might not be the one you actually choose in the application. For example you might map 'FR' and 'ES' to 'EU' in the application, so you have to tell the cache (as done above) to set its store key accordingly. |
Thank you for replying, I understand that solution but I don't know how to build store key using response X-ClientCountry header. Could you give more information? |
It's great if you give me an example |
From the documentation example (assuming you're using X-Client-Country header)
Cool huh ?!? |
I'm using Cloudflare so that's my config and it's worked =)))) Thank you so much :D |
Cool ! If you're using Cloudflare then yes, there is already a http header available, so indeed there is no need to set one up. |
Oh, I forgot it |
Our Wordpress website has a mutilple currency plugin and here's the thing
With the same url like: https://example.com/products/product-name
The plugin basiclly check user Geolocation and return the match currency, but SRCache return the HTML content before the plugin run so US or AU or UK user see the US price
That's not true
What should I do now?
The text was updated successfully, but these errors were encountered: