View Single Post
  #17  
Old 01-12-2011, 03:42 AM
eva2000 eva2000 is offline
Senior Member
 
Join Date: Dec 2004
Location: Brisbane, Australia
Posts: 142
Quote:
Originally Posted by NiteWave View Post
1.
4."how do you only cache guest/visitors without cookie"
Code:
RewriteCond %{HTTP_COOKIE} ^$
RewriteRule /index.php - [E=Cache-Control:max-age=600]
thanks mate good info - wish documentation would explain and outline this stuff

So for vbulletin usage, if i compile apache with mod_cache support, add into pre main include

CacheRoot /home/lswscache/
CacheEnable disk /

litespeed would cache all files in all virtualhosts without cookies (the default settings) ? is that the same (for index.php) as specifying in htaccess as below

Code:
RewriteCond %{HTTP_COOKIE} ^$
RewriteRule /index.php - [E=Cache-Control:max-age=600]
?

So index.php without cookies, would be cached for guest/visitors fwithout this rewrite anyway ? Same with rest of vB php files for guest/visitors even with this rewrite rule would be cached, as default is to cache without cookies ?
Reply With Quote