Data will now be cached before sending the headers. Content-Length will now always be sent.
Fix html caching bug