I used Boost module for my drupal project, the cached pages were created under cache/normal/domain/, but the cache pages never served for anonymous users. Here is my .htaccess file, under my drupal root directory. Here are some points I tried:
- I confirmed the cache folder has 755 mod, I even tried 777.
- I'm sure I'm logout to check.
- I tried to replace %{DOCUMENT_ROOT} or %{HTTP_HOST}% with the real path or url.
- I tried to replace %{HTTP_HOST}% with %{SERVER_NAME}.
- I tried to clear the cache.
- I tried to uninstall the module and reinstall it, reset it and create a new cache folder for it.
- I confirmed I copied the generated setting to the .htaccess file.
- I tried to change the browser(chrome and firefox)
- I confirmed I enabled clean url.
But with no luck, none of them can make it work.
Can someone offer me some suggestions? Thank you!
Below is my boost setting in .htaccess file
# RewriteBase /
### BOOST START ###
# NORMAL - Cached css & js files
RewriteCond %{DOCUMENT_ROOT}/cache/perm/%{HTTP_HOST}%{REQUEST_URI}_\.css -s
RewriteRule .* cache/perm/%{HTTP_HOST}%{REQUEST_URI}_\.css [L,QSA,T=text/css]
RewriteCond %{DOCUMENT_ROOT}/cache/perm/%{HTTP_HOST}%{REQUEST_URI}_\.js -s
RewriteRule .* cache/perm/%{HTTP_HOST}%{REQUEST_URI}_\.js [L,QSA,T=text/javascript]
# Caching for anonymous users
# Skip boost IF not get request OR uri has wrong dir OR cookie is set OR request came from this server OR https request
RewriteCond %{REQUEST_METHOD} !^(GET|HEAD)$ [OR]
RewriteCond %{REQUEST_URI} (^/(admin|cache|misc|modules|sites|system|openid|themes|node/add|comment/reply))|(/(edit|user|user/(login|password|register))$) [OR]
RewriteCond %{HTTPS} on [OR]
RewriteCond %{HTTP_COOKIE} DRUPAL_UID
RewriteRule .* - [S=2]
# NORMAL
RewriteCond %{DOCUMENT_ROOT}/cache/normal/%{HTTP_HOST}%{REQUEST_URI}_%{QUERY_STRING}\.html -s
RewriteRule .* cache/normal/%{HTTP_HOST}%{REQUEST_URI}_%{QUERY_STRING}\.html [L,T=text/html]
RewriteCond %{DOCUMENT_ROOT}/cache/normal/%{HTTP_HOST}%{REQUEST_URI}_%{QUERY_STRING}\.xml -s
RewriteRule .* cache/normal/%{HTTP_HOST}%{REQUEST_URI}_%{QUERY_STRING}\.xml [L,T=text/xml]
### BOOST END ###
# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.