Wordpress LScache Plugin: WooCommerce Geolocate with page caching support=browser endless refresh
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi. If I enable the feature in WooCommerce to geolocate customers Geolocate with page caching support , something happens after a little while for both shop page and product pages that they start to auto-refresh over and over when visiting the site. This happens in all browsers I tested (Chrome, Opera, Firefox, Safari). Isnt Litespeed compatible with this feature? And if it is, what could be the cause of this issue? The really strange thing is that all browsers, even if I use Operas private window with VPN enabled displays the exact same query string that this feature adds. And if I understand correctly this query string should be specific to the visitors country so each country has its own cache? So if I browse with private window in Opera with the built in VPN set to Americas, then it shouldnt have the same query string as other browser which doesnt use VPN, as I am located in Sweden. Would be really happy if you can help me solve this Hi, if you want to make a Geo-support (like showing different tax/price/currency ) based on country , better to do it this way Best regards, Yeah, I know. But as my host hasnt been able to implement the GeoIP feature in Litespeed Server, I am looking for all other options to enable geolocation for correct taxes and currency in my store. Hi, If the host can not provide this module , then only option I can think of is to use cloudfalre , clodufalre will pass country code in header then you can use it for vary as well otherwise you will need to do some custom code to manually append vary into LiteSpeed Cache Best regards, 1. Can you tell me why the WooCommerce option Geolocate with page caching support doesnt work with your plugin? 2. If I use Cloudflare, how do I configure the vary for this? I am a total noob in regards of these kind of things. So please be specific on how I set this up. Hi, it works with that Geolocation with page caching support, I just tested, but less efficient as it creates additional redirection You can try disable LSCWP and see how it goes also when redirection loop happens , try check where is it redirecting into Best regards, Hi. I cant get it to work and it seems to be an issue with the query string being used regardless of country of the visitor, so something is interfering with this feature. Dont know if the issue is with WooCommerce, WPML, Litespeed or the Currency Converter Widget I am using. But about his: 2. If I use Cloudflare, how do I configure the vary for this? I am a total noob in regards of these kind of things. So please be specific on how I set this up. Hi, 1) you can simply disable cache plugin and try again , see how it goes 2) you can use something like this RewriteRule . - [E=Cache-Control:vary=% HTTP:CF-IPCountry ] add it at top of your .htaccess Best regards,
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference