Vary Cache based on Country
-
Hi,
I am trying to vary the LSCache based on the country code, as set in the incoming HTTP header request by CloudFlare. I have this at the bottom of my .htaccess:
<IfModule LiteSpeed> # Vary cache by region RewriteCond %{HTTP:Cf-Ipcountry} (.*) RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+%1] </IfModule>
But it does not seem to work. Any ideas on how to get this working?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Vary Cache based on Country’ is closed to new replies.