No dynamic caching for first time visitor
-
Hi,
I’m using Litespeed Cache and the Aelia Currency Switcher plugin. The plugin generates two cookies (“aelia_cs_selected_currency” and “aelia_customer_country“) which I want to use the to generate cache variations.
If the customer is a first time visitor to the website, the dynamic caching should be disabled and the page content freshly dynamically generated. Then when the cookies are set, the correct cache version for the cookie combination should be delivered.
I know that
RewriteRule .* - [E=Cache-Vary:aelia_cs_selected_currency]
will generate a cache variation for one cookie
My questions are:
- How do I define a Litespeed rewrite rule for a combination out of two (or more) cookies.
- How do I tell Litespeed to only perform static (but no dynamic) caching if the cookies aren’t available?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘No dynamic caching for first time visitor’ is closed to new replies.