MKDoc::Apache_Cache
If MKDoc::Apache_Cache is used then there are other problems…
telnet www.bndfc.co.uk 8010
Trying 69.28.204.54...
Connected to www.bndfc.co.uk (69.28.204.54).
Escape character is '^]'.
GET /foo/ HTTP/1.1
Host: www.bndfc.co.uk
HTTP/1.1 404 Not Found
Date: Wed, 27 Apr 2005 14:19:28 GMT
Server: Apache
ETag: 1a60c330fb42841e8dcf3cd507a70bfc
Expires: Wed, 27 Apr 2005 14:49:30 GMT
Content-Length: 1
Connection: close
Content-Type: text/html; charset=UTF-8
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>404 Not Found</TITLE>
</HEAD><BODY>
<H1>Not Found</H1>
The requested URL /foo/ was not found on this server.<P>
<P>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.
</BODY></HTML>
The problem here is that the Content-Length is set to 1…
If the request is for gzip compressed content:
telnet www.bndfc.co.uk 8010
Trying 69.28.204.54...
Connected to www.bndfc.co.uk (69.28.204.54).
Escape character is '^]'.
GET /foo/ HTTP/1.1
Host: www.bndfc.co.uk
Accept-Encoding: gzip
HTTP/1.1 404 Not Found
Date: Wed, 27 Apr 2005 14:22:25 GMT
Server: Apache
Content-Encoding: gzip
Vary: Accept-Encoding
ETag: 1a60c330fb42841e8dcf3cd507a70bfc
Expires: Wed, 27 Apr 2005 14:49:30 GMT
Content-Length: 21
Connection: close
Content-Type: text/html; charset=UTF-8
���<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>404 Not Found</TITLE>
</HEAD><BODY>
<H1>Not Found</H1>
The requested URL /foo/ was not found on this server.<P>
<P>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.
</BODY></HTML>
Note the incorrect Content-Length, the small bit of gzipped content before the error document and the Content-Encoding…