Add geo detection capabilities into Varnish
Please add geo detection capabilities into Varnish, this will accelerate use case scenarios where geo detection is essential.
For e.g. in WooCommerce, their current method to provide multi-currency that's compatible with cache is using Woocommerce based geo detection, which tends redirects the visitor 4 times to the correct URL of the page with the correct currency/tax displayed.
Other multi-currency plugins attempt improve this but their loading speeds are too slow, drastically affecting woocommerce store loading times, and making caching useless.
By having geo detection capabilities right in the server stack (Nginx or Varnish, which ever is hit first by visitors) we have opportunities to use this capability to serve the pre-cached store with the correct currencies.
For reference, this is one example of a Varnish configuration to link with a multi-currency plugin.
https://guides.wp-bullet.com/cache-woocommerce-currency-geoip-varnish-4-vmod/
Another with NGINX and various other caching plugins.
https://aelia.freshdesk.com/support/solutions/articles/3000042591-how-to-add-dynamic-caching-to-your-site?fref=gc&dti=962543703760049
The issue of multi-currency woocommerce store with caching issue is discussed here.
https://aelia.co/woocommerce-currency-switcher-cache-new-solutions/
-
Anonymous
commented
Hi. So... How can I set this Varnish Geolocation with WooCommerce?
-
AdminCloudways
(Admin, Cloudways)
commented
The requested feature is live on Platform. Thanks for your patience.