I'm trying out litespeed cache. Sounds promising.
I added this to my .htaccess:
######### Begin - Litespeed cache
<IfModule LiteSpeed>
CacheDisable public /
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
RewriteCond %{HTTP_HOST} ^mysite.ch$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.mysite.ch$ [NC]
RewriteCond %{HTTP_COOKIE} !logincookie
RewriteCond %{ORG_REQ_URI} !^/index.php$
RewriteCond %{ORG_REQ_URI} !mybackend
RewriteCond %{ORG_REQ_URI} (\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule .* - [E=Cache-Control:max-age=120]
</IfModule>
########## End - Litespeed cache
In the header of the delivered URL, I can see x-litespeed-cache: hit
, which is fine.
But what about images and other resources? They don't have that in the header. Shouldn't litespeed cache cover them as well?
I looked at the images on Litespeed's own website and saw they have x-lsadc-cache
in the header. Is that something else?