<IfModule litespeed>
CacheLookup on
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/admin/ [NC]
RewriteRule .* - [E=Cache-Control:no-cache]
RewriteCond %{HTTP_COOKIE} set_cookie_login_name [NC]
RewriteRule .* - [E=cache-control::private,max-age=120]
RewriteRule .* - [E=cache-control:max-age=120]
</IfModule>
<IfModule litespeed>
CacheLookup on
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/admin/ [NC]
RewriteRule .* - [E=Cache-Control:no-cache]
RewriteRule .* - [E=cache-control:max-age=120]
RewriteCond %{HTTP_COOKIE} set_cookie_login_name [NC]
RewriteRule .* - [E=cache-control::private,max-age=120]
#In order for the cache vary to work, the language cookie must be set.
RewriteCond %{HTTP_COOKIE} ^bc_lang [NC]
RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+lang]
</IfModule>