This is an old revision of the document!
How to enable geolocation for LSCache
LSCache supports GEOIP. You should enable GeoIP module on LSWS firstly and test it to ensure the module is working. Then you can use different rewrite rules to meet your cache need.
For example, to make cache vary by GEO_COUNTRY
, you can add the following rewrite rules to your “.htaccess” file:
<IfModule LiteSpeed> RewriteEngine on RewriteRule .* - [E=Cache-Control:vary=%{ENV:GEO_COUNTRY}] </IfModule>
You can add rewrite condition for more specific rules, such as UK, EU and US + the rest of the world show different contents, or show different currencies.