httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51057] New: mod_disk_cache does not cache URL ending in a trailing forward slash (when DirectoryIndex resource is used)
Date Wed, 13 Apr 2011 19:53:55 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51057

           Summary: mod_disk_cache does not cache URL ending in a trailing
                    forward slash (when DirectoryIndex resource is used)
           Product: Apache httpd-2
           Version: 2.2.3
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_disk_cache
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: gmillikan@t1shopper.com


Dear DEV Guru's,

This URL is cached by mod_disk_cache (see debug logs below):
http://www.t1shopper.com/mod_disk_cache_bug/index.php

This isn't cached (see debug logs below):
http://www.t1shopper.com/mod_disk_cache_bug/

This also impacts query strings for example
/mod_disk_cache_bug/index.php?monkey=happy would be cached but
/mod_disk_cache_bug/?monkey=unhappy is not cached.

I guessing this bug is caused by the way mod_dir is internally handling the
DirectoryIndex page (index.php or index.html, etc) - I suppose it's bypassing
mod_cache. 

The documentation doesn't indicate this behavior is by design.  May I suggest
we either call this out in the docs or fix it.

Thanks,

Geoff Millikan

---= Log showing page being written to host's cache =---
mod_cache.c(131): Adding CACHE_SAVE filter for /mod_disk_cache_bug/index.php
mod_cache.c(138): Adding CACHE_REMOVE_URL filter for
/mod_disk_cache_bug/index.php
mod_deflate.c(602): Zlib: Compressed 19 to 21 : URL
/mod_disk_cache_bug/index.php
mod_headers.c(663): headers: ap_headers_output_filter()
mod_cache.c(639): cache: Caching url: /mod_disk_cache_bug/index.php
mod_cache.c(645): cache: Removing CACHE_REMOVE_URL filter.
mod_disk_cache.c(962): disk_cache: Stored headers for URL
http://www.t1shopper.com:80/mod_disk_cache_bug/index.php?
mod_disk_cache.c(1051): disk_cache: Body for URL
http://www.t1shopper.com:80/mod_disk_cache_bug/index.php? cached.

---= Log showing page served from host cache to client =---
mod_disk_cache.c(476): disk_cache: Recalled cached URL info header
http://www.t1shopper.com:80/mod_disk_cache_bug/index.php?
mod_disk_cache.c(749): disk_cache: Recalled headers for URL
http://www.t1shopper.com:80/mod_disk_cache_bug/index.php?
mod_cache.c(282): cache: running CACHE_OUT filter
mod_cache.c(296): cache: serving /mod_disk_cache_bug/index.php


---= Log showing "forward slash page" not served to client =--- 
mod_cache.c(131): Adding CACHE_SAVE filter for /mod_disk_cache_bug/ 
mod_cache.c(138): Adding CACHE_REMOVE_URL filter for /mod_disk_cache_bug/ 
mod_deflate.c(602): Zlib: Compressed 19 to 21 : URL
/mod_disk_cache_bug/index.php

---= Here's the config =---
LoadModule disk_cache_module modules/mod_disk_cache.so
CacheRoot /var/httpd/proxy/
CacheEnable disk /
CacheDisable /i
CacheMaxFileSize 500000
CacheMinFileSize 1
CacheDirLevels 4
CacheDirLength 2
CacheIgnoreCacheControl Off
CacheIgnoreNoLastMod Off 
CacheIgnoreHeaders Set-Cookie
CacheLastModifiedFactor 30
CacheMaxExpire 2592000
CacheDefaultExpire 2592000

---= Version =---
httpd-2.2.3-45.el5.centos.x86_64.rpm
Server built:   Jan 31 2011 17:50:30
Linux 2.6.18-238.5.1.el5 x86_64 x86_64

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message