
01-07-2011, 07:08 PM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,216
|
|
yes, lsws can. for example,
Code:
RewriteCond %{HTTP_COOKIE} username=guest
RewriteRule /index.php - [E=Cache-Control:max-age=600]
if uasename=guest exists in cookies, lsws cache /index.php page for 600 seconds(10 minutes).
for subsequent requests:
if there is uasename=guest cookie in request header, lsws return the cached index.php; if not exist, lsws will pass the request to lsphp5, and return the user output of lsphp5.
|