Vary Cache based on Country




Wordpress LScache Plugin: 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: # Vary cache by region RewriteCond % HTTP:Cf-Ipcountry (. ) RewriteRule . - [E=Cache-Control:vary=% ENV:LSCACHE_VARY_VALUE +%1] But it does not seem to work. Any ideas on how to get this working? This topic was modified 9 months, 1 week ago by ivantrendafilov. Hi, try put it on top of everything Best regards,
Do you need help?
We are online almost any time and ready to answer any question. The answer to your question will come faster than it takes you to release the mouse button.

Ask A Question