opyeb harview

HAR 1.2 timings traps: -1, ssl, blocked and cache

2026-11-29 · 2 min read

One-line answer: -1 in a HAR means 'not measured or not applicable', not '0 ms'. An empty phase does not prove that part was fast.

The rules of the timings object

HAR 1.2 defines blocked, dns, connect, send, wait, receive and ssl, each in milliseconds or -1. -1 means the phase did not happen or the tool did not measure it.

entry.time is the total; it usually equals the sum of non-negative timings, but rounding or omitted fields can make it differ.

ssl is inside connect

By specification, connect includes the TLS handshake and ssl reports the TLS part of it. Adding connect and ssl counts TLS twice, so harview subtracts ssl from connect to show two phases.

Some files report ssl with connect set to -1. In that case only ssl is drawn and connect stays empty.

Files without blocked

Chrome records queue time as blocked; Firefox and some proxy tools leave it at -1 or omit it. A missing blocked phase does not mean nothing queued.

When comparing the same site across browsers, trust total time and the gaps between request starts more than the phase sum.

Cache and 304

A request answered from cache has dns, connect and send at -1 with very short wait and receive. A 304 Not Modified has no body, so receive is close to zero.

To avoid mistaking cache for a fast server, read the status code, the cache fields and the response size together.

HTTP/2 and connection reuse

HTTP/2 multiplexes requests as streams over one connection, so after the first request dns, connect and ssl are often -1 or 0. Wait then depends on stream priority and server processing.

Rather than concluding the network got faster because connection phases disappeared, look at the distribution of wait and receive.

Non-standard fields

Chrome adds underscore fields such as _resourceType, _transferSize and _initiator; other tools store similar data under different names. harview works from the standard fields and ignores the rest.

When a body is base64-encoded, content.encoding says base64 and content.text holds the encoded string, not decoded text.

Questions

What is the difference between -1 and 0?

-1 means the phase did not occur or was not measured; 0 means it was measured at zero milliseconds. The distinction matters when diagnosing performance.

Do HAR 1.1 files open?

Usually. The field set differs slightly, so the status line reports the version and only readable values are used.

A file has timings of -1 everywhere.

Some tools disable timing or a proxy does not record it. In that case, use the total time and start timestamps to understand the order.

Sources

Every example here can be opened in the workbench as it is.

Open the workbench