diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc index eb1dc93acbd..e43fd32aac3 100644 --- a/proxy/http/HttpSM.cc +++ b/proxy/http/HttpSM.cc @@ -3403,6 +3403,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; }