View Single Post
  #13  
Old 01-11-2011, 08:39 AM
J.T. J.T. is offline
Member
 
Join Date: Apr 2010
Posts: 47
Do these rules only work after we configure Server > Cache or VHost > [VHOST] > Cache in the admin GUI?

And we simply put them in htaccess file just like other Mod_Rewrite rules, right?

And how can we verify whether it's working, does it output certain headers we can look for that indicate this comes form LSWS's cache?

Lastly, can we do something like this, to only trigger if there isn't a Cookie with any value?

Code:
RewriteCond !%{HTTP_COOKIE} username=*
RewriteRule /index.php - [E=Cache-Control:max-age=600]
I really do suck at mod_rewrite... Thanks for your help.

Last edited by J.T.; 01-11-2011 at 08:46 AM..
Reply With Quote