https://issues.apache.org/bugzilla/show_bug.cgi?id=45045
Summary: mod cache storing/looking for the wrong key
Product: Apache httpd-2
Version: 2.2.8
Platform: Other
OS/Version: Linux
Status: NEW
Severity: major
Priority: P2
Component: mod_cache
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
I have configures mod mem cache as follows:
ExpiresActive On
ExpiresDefault "access plus 1 days"
CacheEnable mem /
MCacheSize 409600
MCacheMaxObjectSize 150000
Everything seems fine but when I look at the debug log for repeat request to
the same file I see:
[debug] mod_cache.c(131): Adding CACHE_SAVE filter for /jessicasimpson1.jpg
[debug] mod_cache.c(138): Adding CACHE_REMOVE_URL filter or
/jessicasimpson1.jpg
[debug] mod_cache.c(633): cache: Caching url: /jessicasimpson1.jpg
[debug] mod_cache.c(639): cache: Removing CACHE_REMOVE_URL filter.
[info] mem_cache: Cached url:
ttp://proxy.starlounge.com:80/jessicasimpson1.jpg?
[debug] mod_cache.c(131): Adding CACHE_SAVE filter for /jessicasimpson1.jpg
[debug] mod_cache.c(138): Adding CACHE_REMOVE_URL filter or
/jessicasimpson1.jpg
[debug] mod_cache.c(633): cache: Caching url: /jessicasimpson1.jpg
[debug] mod_cache.c(639): cache: Removing CACHE_REMOVE_URL filter.
[info] mem_cache: Cached url:
ttp://proxy.starlounge.com:80/jessicasimpson1.jpg?
The ? at the end seems to be the issue. The key gets mangled somewhere because
if I make a request with ? on the end that too is cached and subsequent
requests are served from cache.
request for jpg? gives: (note no apparent difference)
[debug] mod_cache.c(131): Adding CACHE_SAVE filter for /jessicasimpson1.jpg
[debug] mod_cache.c(138): Adding CACHE_REMOVE_URL filter or
/jessicasimpson1.jpg
[debug] mod_cache.c(633): cache: Caching url: /jessicasimpson1.jpg?
[debug] mod_cache.c(639): cache: Removing CACHE_REMOVE_URL filter.
[info] mem_cache: Cached url:
ttp://proxy.starlounge.com:80/jessicasimpson1.jpg?
now request for both jpg and jpg? gives:
[debug] mod_cache.c(282): cache: running CACHE_OUT filter
[debug] mod_cache.c(296): cache: serving /jessicasimpson1.jpg
Seems this could be just a miss in a string parse.
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]