Cache Vary
-
Hi,
I want to use cache vary as below:
https://docs.litespeedtech.com/lscache/vary/
For instance, if I separate the iPad, where to insert the following?<?php if (stripos($_SERVER['HTTP_USER_AGENT'],"iPad")!==false { echo 'This is Tablet view'; } else { echo 'this is Desktop view'; }
.htaccess code:
RewriteCond %{HTTP_USER_AGENT} iPad [NC] RewriteRule .* - [E=Cache-Control:vary=istablet]
Thanks in advance.
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- The topic ‘Cache Vary’ is closed to new replies.