diff options
author | Arto Bendiken | 2006-11-25 00:19:50 (GMT) |
---|---|---|
committer | Arto Bendiken | 2006-11-25 00:19:50 (GMT) |
commit | 1c1ec5f96636ae5e9975d6643c3c0d02448cdc94 (patch) | |
tree | 07ee05da6fe9c0e2f42d3991f09fbb5f7d91ab8b | |
parent | 74e552d046bd1c4e6f0536b5ad04016d5e317a06 (diff) |
Added mod_rewrite rules to ensure /admin and /user/login are never ever cached.
-rw-r--r-- | htaccess/boosted.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/htaccess/boosted.txt b/htaccess/boosted.txt index 262e3f3..6fa816e 100644 --- a/htaccess/boosted.txt +++ b/htaccess/boosted.txt @@ -82,16 +82,20 @@ DirectoryIndex index.php # Rewrite rules for static page caching provided by the Boost module # BOOST START RewriteCond %{REQUEST_URI} !^/cache + RewriteCond %{REQUEST_URI} !^/user/login + RewriteCond %{REQUEST_URI} !^/admin + RewriteCond %{HTTP_COOKIE} !DRUPAL_UID RewriteCond %{REQUEST_METHOD} ^GET$ RewriteCond %{QUERY_STRING} ^$ - RewriteCond %{HTTP_COOKIE} !DRUPAL_UID RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST}/0/%{REQUEST_URI} -d RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST}/0/%{REQUEST_URI}/index.html -f RewriteRule ^(.*)$ cache/%{HTTP_HOST}/0/$1/index.html [L] RewriteCond %{REQUEST_URI} !^/cache + RewriteCond %{REQUEST_URI} !^/user/login + RewriteCond %{REQUEST_URI} !^/admin + RewriteCond %{HTTP_COOKIE} !DRUPAL_UID RewriteCond %{REQUEST_METHOD} ^GET$ RewriteCond %{QUERY_STRING} ^$ - RewriteCond %{HTTP_COOKIE} !DRUPAL_UID RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST}/0/%{REQUEST_URI}.html -f RewriteRule ^(.*)$ cache/%{HTTP_HOST}/0/$1.html [L] # BOOST END |