# BOOST START Header add Expires "Sun, 19 Nov 1978 05:00:00 GMT" Header add Cache-Control "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] #GZIP # root RewriteCond %{REQUEST_METHOD} ^GET$ RewriteCond %{REQUEST_URI} ^/$ RewriteCond %{QUERY_STRING} ^$ RewriteCond %{HTTP_COOKIE} !DRUPAL_UID RewriteCond %{HTTP_USER_AGENT} !".*Safari.*" RewriteCond %{HTTP:Accept-encoding} gzip RewriteCond %{DOCUMENT_ROOT}/cache/gz/%{HTTP_HOST}/index.html.gz -f RewriteRule ^(.*)$ cache/gz/%{HTTP_HOST}/index.html.gz [L] # subdir root RewriteCond %{REQUEST_METHOD} ^GET$ RewriteCond %{REQUEST_URI} !(^/admin|^/cache|^/misc|^/modules|^/sites|^/system|^/themes|^/user/login) RewriteCond %{QUERY_STRING} ^$ RewriteCond %{HTTP_COOKIE} !DRUPAL_UID RewriteCond %{HTTP_USER_AGENT} !".*Safari.*" RewriteCond %{HTTP:Accept-encoding} gzip RewriteCond %{DOCUMENT_ROOT}/cache/gz/%{HTTP_HOST}%{REQUEST_URI} -d RewriteCond %{DOCUMENT_ROOT}/cache/gz/%{HTTP_HOST}%{REQUEST_URI}/index.html.gz -f RewriteRule ^(.*)$ cache/gz/%{HTTP_HOST}%{REQUEST_URI}/index.html.gz [L] # non root RewriteCond %{REQUEST_METHOD} ^GET$ RewriteCond %{REQUEST_URI} !(^/admin|^/cache|^/misc|^/modules|^/sites|^/system|^/themes|^/user/login) RewriteCond %{QUERY_STRING} ^$ RewriteCond %{HTTP_COOKIE} !DRUPAL_UID RewriteCond %{HTTP_USER_AGENT} !".*Safari.*" RewriteCond %{HTTP:Accept-encoding} gzip RewriteCond %{DOCUMENT_ROOT}/cache/gz/%{HTTP_HOST}%{REQUEST_URI}.html.gz -f RewriteRule ^(.*)$ cache/gz/%{HTTP_HOST}%{REQUEST_URI}.html.gz [L] # url variables RewriteCond %{REQUEST_METHOD} ^GET$ RewriteCond %{REQUEST_URI} !(^/admin|^/cache|^/misc|^/modules|^/sites|^/system|^/themes|^/user/login) RewriteCond %{QUERY_STRING} !^$ RewriteCond %{HTTP_COOKIE} !DRUPAL_UID RewriteCond %{HTTP_USER_AGENT} !".*Safari.*" 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 # root RewriteCond %{REQUEST_METHOD} ^GET$ RewriteCond %{REQUEST_URI} ^/$ RewriteCond %{QUERY_STRING} ^$ RewriteCond %{HTTP_COOKIE} !DRUPAL_UID RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST}/index.html -f RewriteRule ^(.*)$ cache/%{HTTP_HOST}/index.html [L] # subdir root RewriteCond %{REQUEST_METHOD} ^GET$ RewriteCond %{REQUEST_URI} !(^/admin|^/cache|^/misc|^/modules|^/sites|^/system|^/themes|^/user/login) RewriteCond %{QUERY_STRING} ^$ RewriteCond %{HTTP_COOKIE} !DRUPAL_UID RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST}%{REQUEST_URI} -d RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST}%{REQUEST_URI}/index.html -f RewriteRule ^(.*)$ cache/%{HTTP_HOST}%{REQUEST_URI}/index.html [L] # non root RewriteCond %{REQUEST_METHOD} ^GET$ RewriteCond %{REQUEST_URI} !(^/admin|^/cache|^/misc|^/modules|^/sites|^/system|^/themes|^/user/login) RewriteCond %{QUERY_STRING} ^$ RewriteCond %{HTTP_COOKIE} !DRUPAL_UID RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST}%{REQUEST_URI}.html -f RewriteRule ^(.*)$ cache/%{HTTP_HOST}%{REQUEST_URI}.html [L] # url variables RewriteCond %{REQUEST_METHOD} ^GET$ RewriteCond %{REQUEST_URI} !(^/admin|^/cache|^/misc|^/modules|^/sites|^/system|^/themes|^/user/login) RewriteCond %{QUERY_STRING} !^$ RewriteCond %{HTTP_COOKIE} !DRUPAL_UID 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.3 2009-05-01 23:13:31 mikeytown2 Exp $