httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From allan juul <>
Subject [users@httpd] determine cache or no cache of dynamic content
Date Sat, 09 Dec 2006 21:48:14 GMT

[win2003 / apache 2.2]

using mod_disk_cache and mod_rewrite we are trying to cache responses
with rarely updated but dynamic content served from a heavy loaded backend.

how can one determine if a certain request is actually served from the
cache and not the backend from where it originally came from ?

we can see our disk cache is growing, but assuming we (via script for
example) just hit the same URL over and over again, would it not then be
possible to turn off the backend server completely and our frontend
would still work happily serving from the disk cache? (that test would 
work if it was a static file like a gif image it seems)

below are relevant parts from configuration and response headers


RewriteEngine On
RewriteRule ^/(.*)$1    [proxy,last]

CacheEnable disk /
CacheDefaultExpire 3600
CacheRoot d:/cacherootlocalhost
CacheDirLevels 5
CacheDirLength 3

response headers from backend (http statuscode = 200)
Connection: close
Date: Sat, 09 Dec 2006 21:13:53 GMT
Allow: GET
Content-Length: 756
Content-Type: text/xml; charset=UTF-8
Expires: Sat, 09 Dec 2006 21:13:55 GMT
Client-Date: Sat, 09 Dec 2006 21:13:53 GMT
Client-Response-Num: 1

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