Don't reuse the connection if the content-length header is missing or
incorrect. Also, uncache the handle at the start of the request and
only recache it on success, in case anything else dies along the way
Add tests for keep-alive