The basic cache is restored and working now, it is highly incomplete.
For a cache to work reliably, it has to be implemented in the AsyncSocket layer, not in HttpResponse.
That way both the non-cached and the cached paths will hit the same formatting logic and produce the same output.
HttpCacheResponse should reuse the same logic as HttpResponse but with this variant on the AsyncSocket.
The basic cache is restored and working now, it is highly incomplete.
For a cache to work reliably, it has to be implemented in the AsyncSocket layer, not in HttpResponse.
That way both the non-cached and the cached paths will hit the same formatting logic and produce the same output.
HttpCacheResponse should reuse the same logic as HttpResponse but with this variant on the AsyncSocket.