httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frans Knibbe <>
Subject [users@httpd] mod_cache: CacheDefaultExpire is ignored?
Date Wed, 08 Mar 2006 14:58:01 GMT

I use apache 2.0.55 on Windows and I am experiencing a problem using 

It is my intention to use a memory cache for images produced by a CGI 
program. Here is the relevant bit of httpd.conf:

<IfModule mod_cache.c>
  LoadModule mem_cache_module modules/
  <IfModule mod_mem_cache.c>
    CacheDefaultExpire 86400
    CacheEnable mem /
    MCacheSize 4096
    MCacheMaxObjectCount 10000
    MCacheMinObjectSize 1
    MCacheMaxObjectSize 104857600
    MCacheMaxStreamingBuffer 104857600
    MCacheSize 409600

If I let Apache log debug information, I can see that caching is active. 
Some caching takes place, but not the images I want cached. In that 
case,  something like this is reported:

[Wed Mar 08 14:09:11 2006] [debug] mod_cache.c(446): cache: <request> 
not cached. Reason: Query string present but no expires header

There is no expiration time in the header, that is true, but shouldn't 
CacheDefaultExpire be used in that case? In the documentation it says: 
"The CacheDefaultExpire directive specifies a default time, in seconds, 
to cache a document if neither an expiry date nor last-modified date are 
provided with the document". So if there is no expires header the expiry 
time should be set to one day (86400 seconds) in this case, right?

Am I overlooking something? How can I get caching to work?

Thanks in advance,

Frans Knibbe

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message