The error in the debug points to the server closing connection, before the end of the data transfer. This could may very well be due to the debugs running on the CE itself, slowing the processing of such requests. Here is one suggestion for pdf caching - use the "http smart-range enable" command.