You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Geoff Millikan <gm...@t1shopper.com> on 2011/04/11 02:34:09 UTC

[users@httpd] Apache 2.2.3 > mod_disk_cache not caching if a DirectoryIndex is used

Is this a known bug?

At URL #1 below the content isn't cached (or served out of cache):
http://www.t1shopper.com/mod_disk_cache_bug/

At URL #2, we just add the "index.php" into the URL string and the cache is
working properly (see log below).
http://www.t1shopper.com/mod_disk_cache_bug/index.php

Am I missing something?

Thanks,

http://www.t1shopper.com/


---= Log from URL #1 =---
[Mon Apr 11 00:28:13 2011] [debug] mod_cache.c(131): Adding CACHE_SAVE
filter for /mod_disk_cache_bug/
[Mon Apr 11 00:28:13 2011] [debug] mod_cache.c(138): Adding CACHE_REMOVE_URL
filter for /mod_disk_cache_bug/
[Mon Apr 11 00:28:13 2011] [debug] mod_deflate.c(602): [client 71.177.216.6]
Zlib: Compressed 19 to 21 : URL /mod_disk_cache_bug/index.php


---= Log from URL #2 (First Request) =---
[Mon Apr 11 00:28:46 2011] [debug] mod_cache.c(131): Adding CACHE_SAVE
filter for /mod_disk_cache_bug/index.php
[Mon Apr 11 00:28:46 2011] [debug] mod_cache.c(138): Adding CACHE_REMOVE_URL
filter for /mod_disk_cache_bug/index.php
[Mon Apr 11 00:28:46 2011] [debug] mod_deflate.c(602): [client 71.177.216.6]
Zlib: Compressed 19 to 21 : URL /mod_disk_cache_bug/index.php
[Mon Apr 11 00:28:46 2011] [debug] mod_headers.c(663): headers:
ap_headers_output_filter()
[Mon Apr 11 00:28:46 2011] [debug] mod_cache.c(639): cache: Caching url:
/mod_disk_cache_bug/index.php
[Mon Apr 11 00:28:46 2011] [debug] mod_cache.c(645): cache: Removing
CACHE_REMOVE_URL filter.
[Mon Apr 11 00:28:46 2011] [debug] mod_disk_cache.c(962): disk_cache: Stored
headers for URL http://www.t1shopper.com:80/mod_disk_cache_bug/index.php?
[Mon Apr 11 00:28:46 2011] [debug] mod_disk_cache.c(1051): disk_cache: Body
for URL http://www.t1shopper.com:80/mod_disk_cache_bug/index.php? cached.

---= Log from URL #2 (Second Request) =---
[Mon Apr 11 00:30:38 2011] [debug] mod_disk_cache.c(476): disk_cache:
Recalled cached URL info header
http://www.t1shopper.com:80/mod_disk_cache_bug/index.php?
[Mon Apr 11 00:30:38 2011] [debug] mod_disk_cache.c(749): disk_cache:
Recalled headers for URL
http://www.t1shopper.com:80/mod_disk_cache_bug/index.php?
[Mon Apr 11 00:30:38 2011] [debug] mod_cache.c(282): cache: running
CACHE_OUT filter
[Mon Apr 11 00:30:38 2011] [debug] mod_cache.c(296): cache: serving
/mod_disk_cache_bug/index.php

We're on:
httpd-2.2.3-45.el5.centos.x86_64.rpm



---------------------------------------------------------------------
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] Apache 2.2.3 > mod_disk_cache not caching if a DirectoryIndex is used

Posted by Geoff Millikan <gm...@t1shopper.com>.
This issue impacts all index.html, index.php, index.shtml, etc files even
the "homepage." For example: 

This is cached: http://www.mycompany.com/index.php

This *is not* cached: http://www.mycompany.com/



---------------------------------------------------------------------
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