diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc index 87134e55aa7..906f1189b65 100644 --- a/proxy/http/HttpTransact.cc +++ b/proxy/http/HttpTransact.cc @@ -5005,9 +5005,9 @@ HttpTransact::merge_response_header_with_cached_header(HTTPHdr *cached_header, H continue; } ///////////////////////////////////// - // dont cache content-length field // + // dont cache content-length field and transfer encoding // ///////////////////////////////////// - if (name == MIME_FIELD_CONTENT_LENGTH) { + if (name == MIME_FIELD_CONTENT_LENGTH || name == MIME_FIELD_TRANSFER_ENCODING) { continue; } /////////////////////////////////////