# 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/%{SERVER_NAME} !-d
RewriteRule .* - [S=2]
#GZIP
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{DOCUMENT_ROOT}/cache/gz/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}.html.gz -f
RewriteRule .* cache/gz/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}.html.gz [L]
#NORMAL
RewriteCond %{DOCUMENT_ROOT}/cache/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}.html -f
RewriteRule .* cache/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}.html [L]
# BOOST END
# $Id: boosted1.txt,v 1.1.2.5 2009-05-30 20:55:56 mikeytown2 Exp $