
01-11-2011, 11:25 PM
|
|
Senior Member
|
|
Join Date: Dec 2004
Location: Brisbane, Australia
Posts: 142
|
|
Quote:
Originally Posted by NiteWave
the rewrite rule should be:
Code:
RewriteCond %{HTTP_COOKIE} !username=
RewriteRule /index.php - [E=Cache-Control:max-age=600]
|
Adding my questions here too
1. how would you do this at server level - for all virtualhosts on a WHM/Cpanel apache virtualhost configured server running litespeed ? for just specific php pages and/or for all php served pages on all virtualhosts ?
2. would that rewrite url not for index.php not cache index.php?page=variable ? or with friendly urls index.php/variable ?
3. In above example if cookie has guest in it cache index.php, would you need to enable these 2 options for it to work ? Cache Request with Cookie and Cache Response with Cookie ?
4. Is it still true this caching doesn't work with vBulletin as per statement at http://www.litespeedtech.com/support...51&postcount=6 or that is old outdated info ?
I read somewhere i'd need to compile apache with mod_cache, in pre main include add something like
CacheRoot /home/lswscache/
CacheEnable disk /
but how do you only cache guest/visitors without cookie then ?
thanks
Last edited by eva2000; 01-12-2011 at 01:32 AM..
|