# BOOST START
Header set Expires "Sun, 19 Nov 1978 05:00:00 GMT"
Header set Cache-Control "no-store, no-cache, must-revalidate, post-check=0, pre-check=0"
AddCharset utf-8 .html
AddEncoding x-gzip .gz
ForceType text/html
#serve file IF it exist on server
RewriteCond %{REQUEST_FILENAME} \.\w{2,4}$
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule .* - [L]
#skip boost IF not get request OR uri has wrong dir OR cookie is set OR cache dir doesn't exist
RewriteCond %{REQUEST_METHOD} !^GET$ [OR]
RewriteCond %{REQUEST_URI} ^(/admin|/cache|/misc|/modules|/sites|/system|/themes|/user/login) [OR]
RewriteCond %{HTTP_COOKIE} DRUPAL_UID [OR]
RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST} !-d
RewriteRule .* - [S=2]
#GZIP
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{DOCUMENT_ROOT}/cache/gz/%{HTTP_HOST}%{REQUEST_URI}_%{QUERY_STRING}.html.gz -f
RewriteRule .* cache/gz/%{HTTP_HOST}%{REQUEST_URI}_%{QUERY_STRING}.html.gz [L]
#NORMAL
RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST}%{REQUEST_URI}_%{QUERY_STRING}.html -f
RewriteRule .* cache/%{HTTP_HOST}%{REQUEST_URI}_%{QUERY_STRING}.html [L]
# BOOST END
# $Id: boosted2.txt,v 1.1.2.6 2009-05-30 21:05:43 mikeytown2 Exp $