
07-20-2011, 11:56 AM
|
|
LiteSpeed Staff
|
|
Join Date: Oct 2010
Posts: 2,390
|
|
put cache rules in front of other rewrite rules (for friendly url's).
Quote:
# excluding certain URLs
RewriteCond %{REQUEST_URI} !/(login|register|usercp|private|profile|cron|image) \.php$
# cache for 2 mins for php pages only
RewriteRule (.*\.php)?$ – [E=Cache-Control:max-age=120]
# rewrite rules for friendly url's
RewriteRule ....
|
Will get back to you regarding cache with cookies in a bit.
|