MKDoc doesn't produce any cache friendly headers, this means that using Apache 2.2 or Squid to accellerate a MKDoc site is more problematic that it should be.
For example these are the headers from a front-facing apache server:
$ ab -n 1 -v 4 -H "Accept-Encoding: gzip" http://www.mkdoc.com/ This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0 Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Copyright 1997-2005 The Apache Software Foundation, http://www.apache.org/ Benchmarking www.mkdoc.com (be patient)...INFO: POST header == --- GET / HTTP/1.0 User-Agent: ApacheBench/2.0.40-dev Host: www.mkdoc.com Accept: */* Accept-Encoding: gzip --- LOG: header received: HTTP/1.1 200 OK Date: Thu, 06 Jul 2006 14:11:54 GMT Server: Apache Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache: MISS from mkdoc.com Connection: close Content-Encoding: gzip Content-Length: 4975 � LOG: Response code = 200 ..done
And this is the response direct from the back-end apache:
$ ab -n 1 -v 4 -H "Accept-Encoding: gzip" http://www.mkdoc.com:8019/ This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0 Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Copyright 1997-2005 The Apache Software Foundation, http://www.apache.org/ Benchmarking www.mkdoc.com (be patient)...INFO: POST header == --- GET / HTTP/1.0 User-Agent: ApacheBench/2.0.40-dev Host: www.mkdoc.com:8019 Accept: */* Accept-Encoding: gzip --- LOG: header received: HTTP/1.1 200 OK Date: Thu, 06 Jul 2006 14:13:04 GMT Server: Apache Connection: close Content-Type: text/html; charset=UTF-8 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Note that MKDoc doesn't even support HEAD requests — these simply result in the whole page rather than just the head — unless a seperate front facing apache is used as this second apache won't pass on the unrequested body.