diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc index f3d65140467..633113f9ab2 100644 --- a/proxy/http/HttpSM.cc +++ b/proxy/http/HttpSM.cc @@ -3544,6 +3544,10 @@ HttpSM::tunnel_handler_cache_write(int event, HttpTunnelConsumer *c) break; } + if (background_fill != BACKGROUND_FILL_NONE) { + server_response_body_bytes = c->bytes_written; + } + HTTP_DECREMENT_DYN_STAT(http_current_cache_connections_stat); return 0; }