chrome-har
Advanced tools
Comparing version 0.13.2 to 0.13.3
# CHANGELOG | ||
## 0.13.2 - 2024-07-05 | ||
### Fixed | ||
* Include early hints requests, thank you [Ben Schwarz](https://github.com/benschwarz) for PR [#118](https://github.com/sitespeedio/chrome-har/pull/118). | ||
## 0.13.2 - 2023-07-30 | ||
@@ -4,0 +9,0 @@ ### Fixed |
@@ -83,3 +83,7 @@ 'use strict'; | ||
headers, | ||
_transferSize: response.encodedDataLength | ||
_transferSize: response.encodedDataLength, | ||
fromDiskCache: response.fromDiskCache || false, | ||
fromEarlyHints: response.fromEarlyHints || false, | ||
fromServiceWorker: response.fromServiceWorker || false, | ||
fromPrefetchCache: response.fromPrefetchCache || false | ||
}; | ||
@@ -94,3 +98,3 @@ | ||
if (response.fromDiskCache === true) { | ||
if (response.fromDiskCache === true && !response.fromEarlyHints === true) { | ||
if (isHttp1x(response.protocol)) { | ||
@@ -97,0 +101,0 @@ // In http2 headers are compressed, so calculating size from headers text wouldn't be correct. |
{ | ||
"name": "chrome-har", | ||
"version": "0.13.2", | ||
"version": "0.13.3", | ||
"description": "Create HAR files from Chrome Debugging Protocol data.", | ||
@@ -39,3 +39,2 @@ "main": "index.js", | ||
"ava": "~0.25.0", | ||
"bluebird": "~3.5.1", | ||
"eslint": "~4.18.2", | ||
@@ -42,0 +41,0 @@ "eslint-config-prettier": "~2.9.0", |
46418
6
1017