You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by ab...@free.fr on 2008/03/02 11:41:45 UTC
[users@httpd] Mod_Cache don't work on my root homepage
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
Re: [users@httpd] Mod_Cache don't work on my root homepage
Posted by Joshua Slive <jo...@slive.ca>.
On Sun, Mar 2, 2008 at 5:41 AM, <ab...@free.fr> wrote:
> 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
Caching has improved a lot in recent versions. Try picking up the most
recent 2.2 and see if the problem goes away.
Joshua.
---------------------------------------------------------------------
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