httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abravanel...@free.fr
Subject [users@httpd] Mod_Cache don't work on my root homepage
Date Sun, 02 Mar 2008 10:41:45 GMT
Hi

I have an issue with my mod_cache : its works perfectly for all my pages except
my homepage !
I have a website : http://www.mysite.com/ with an index.php
if I call http://www.mysite.com/index.php : the cache works fine
but if I call http://www.mysite.com/  the cache don't work even if it is the
same page !

I'm running Server version: Apache/2.2.3
Server built:   Jan 27 2008 18:13:21

here is my config :

DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
...
<VirtualHost *:80>
DocumentRoot "/var/www/mysite"
ServerName www.mysite.com
<Directory "/var/www/mysite">
AllowOverride All
</Directory>
CacheEnable mem /
CacheIgnoreCacheControl On

</VirtualHost>


here are logs
[Sun Mar 02 11:21:52 2008] [debug] mod_cache.c(129): Adding CACHE_SAVE filter
for /index.php
[Sun Mar 02 11:21:52 2008] [debug] mod_cache.c(136): Adding CACHE_REMOVE_URL
filter for /index.php
[Sun Mar 02 11:21:53 2008] [debug] mod_headers.c(612): headers:
ap_headers_output_filter()
[Sun Mar 02 11:21:53 2008] [debug] mod_cache.c(602): cache: Caching url:
/index.php
[Sun Mar 02 11:21:53 2008] [debug] mod_cache.c(608): cache: Removing
CACHE_REMOVE_URL filter.
[Sun Mar 02 11:21:53 2008] [debug] mod_cache.c(651): cache: Added date header
[Sun Mar 02 11:21:53 2008] [info] mem_cache: Cached url:
http://www.mysite.com:80/index.php
[Sun Mar 02 11:51:12 2008] [debug] mod_cache.c(129): Adding CACHE_SAVE filter
for /
[Sun Mar 02 11:51:12 2008] [debug] mod_cache.c(136): Adding CACHE_REMOVE_URL
filter for /
[Sun Mar 02 11:51:12 2008] [debug] mod_headers.c(612): headers:
ap_headers_output_filter()

here is m .htaccess :
Options FollowSymLinks

Header set Cache-Control "max-age=9600"
Header unset Pragma
Header unset Expires

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
RewriteRule ^(content/|component/) index.php

Anyone have an idea ???

tnx



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message