httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 53634] New: mod_cache returning HTTP 200 for nonexistent resources
Date Wed, 01 Aug 2012 12:23:31 GMT

          Priority: P2
            Bug ID: 53634
           Summary: mod_cache returning HTTP 200 for nonexistent resources
          Severity: normal
    Classification: Unclassified
                OS: Linux
          Hardware: Other
            Status: NEW
           Version: 2.2.22
         Component: mod_cache
           Product: Apache httpd-2

IF a 404 ErrorDocument is configured within a URL range where mod_cache is
AND the error document was previously requested (and cached by mod_disk_cache)
THEN all subsequent responses to nonexistent resources return HTTP 200 instead
of the expected HTTP 404 response.

Example configuration:


LoadModule cache_module modules/
LoadModule disk_cache_module modules/

CacheRoot /cache-root
CacheDirLevels 3
CacheDirLength 1
CacheMinFileSize 0
CacheMaxFileSize 1000000

CacheEnable disk /

ErrorDocument 404 /error.jpg



/cache-root exists and is writable by httpd, initially empty contents.
/error.jpg exists within the document root directory.

To reproduce:

request "/error.jpg"
request any nonexistent resource, say, "/nonexistent".

NB Bug 49996 describes a very similar issue involving mod_proxy.

You are receiving this mail because:
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message