I'm trying to analyse what the devtools gives me and I'm surprised to see that inside the Network.responseReceived object, the encoded data length is bigger then the data length:
There is no Content-Encoding in the response headers. Is there an explanation for the 112 bytes difference or is it a bug?
{
"message": {
"params": {
"timestamp": 5873.373595,
"frameId": "320.2",
"requestId": "320.3",
"loaderId": "320.3",
"type": "Image",
"response": {
"mimeType": "image/png",
"remotePort": 443,
"connectionId": 15,
"protocol": "h2",
"requestHeaders": {
":path": "/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png",
"accept-language": "en-US,en;q=0.8",
"accept-encoding": "gzip, deflate, sdch",
"accept": "image/webp,image/*,*/*;q=0.8",
":scheme": "https",
"cookie": "PREF=ID=1111111111111111:FF=0:TM=1445294416:LM=1445294416:V=1:S=2HuxIpXFBX815OPe; NID=72=oYivFg_a_0SW1T2BKY0F7iReh5N3io8mJBwXgN8_T7XIUVG-HbD9jbUV-jwdBMyip91WyvTtOsesxwhhtHSQwH4iIibS1tZwolsg81Y8yHfDFmSpt8Knv1wmzYBeM8D4",
":method": "GET",
"user-agent": "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36"
},
"encodedDataLength": -1,
"connectionReused": true,
"fromServiceWorker": false,
"timing": {
"dnsEnd": -1,
"receiveHeadersEnd": 26.3009999998758,
"sslEnd": -1,
"sendStart": 0.395000000025902,
"connectEnd": -1,
"proxyStart": -1,
"workerStart": -1,
"requestTime": 5873.345631,
"workerReady": -1,
"sendEnd": 0.591999999414838,
"sslStart": -1,
"dnsStart": -1,
"connectStart": -1,
"proxyEnd": -1
},
"headers": {
"status": "200",
"alternate-protocol": "443:quic,p=1",
"content-length": "13504",
"x-xss-protection": "1; mode=block",
"x-content-type-options": "nosniff",
"expires": "Mon, 19 Oct 2015 22:40:16 GMT",
"server": "sffe",
"last-modified": "Fri, 04 Sep 2015 22:33:08 GMT",
"cache-control": "private, max-age=31536000",
"date": "Mon, 19 Oct 2015 22:40:16 GMT",
"content-type": "image/png"
},
"fromDiskCache": false,
"status": 200,
"statusText": "OK",
"remoteIPAddress": "74.125.224.16",
"securityState": "secure",
"securityDetails": {
"keyExchange": "AES_128_GCM",
"certificateId": 1,
"protocol": "TLS 1.2",
"cipher": "ECDHE_RSA"
}
}
},
"method": "Network.responseReceived"
},
"webview": "00381C36-DE4D-42DA-BF4E-72D2D97C98F9"
}