Adding this on my htaccess, is OK or Not

as much as i remember there was som problems with cache in some contallations. but i´m not sure cause don´t use litespeed anymore. so may there is more info litespeed homepage.
 
Kindly check this code;


########## Begin - Rules for LSWS cache
RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
RewriteCond %{ORG_REQ_URI} (\.php|\.css|\.js|\.txt|\.xml|\.bmp|\.gif|\.jpg|\.jpeg|\.pdf|\.png|\.swf|\.zip|\.rar|\.exe|\.doc|\.xls|\.ico|\.tiff|\.tif|\.woff|\.ttf|\.otf|\.eot|\.svg|/[^.]*)$ [NC]
RewriteRule .* - [E=Cache-Control:max-age=3600,L]
########## End - Rules for LSWS cache
 
i could say it looks ok... but i could fail...i recommend to check that out with litespeed community cause i used litespeed some past versions. so i don´t know wich is right today.
 
You can use the cache only if you have that type of license. Ask at your Provider, if you have it, you can try to enable Litespeed Cache.
 
Back
Top Bottom