Open Bug 1502808 Opened 2 years ago Updated 10 months ago

response.bodySize is invalid in HARs from "Save All As HAR"

Categories

(DevTools :: Netmonitor, defect, P3)

63 Branch
defect

Tracking

(Not tracked)

People

(Reporter: paulgrime, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached image combined.63.png
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36



Actual results:

In Firefox 63 there is no way to determine if a resource has come from cache.

See combined.63.png for screenshot of resource (http://www.softwareishard.com/blog/wp-content/plugins/wp-lightbox-2/styles/lightbox.min.css?ver=1.3.4) in the Network panel and the HAR entry that this entry exports as.

`response.bodySize`=1159 and it should be zero.

It's possible that `response.headersSize` could be used to infer the resource was retrieved from cache, but I don't think that is HAR-spec compliant.

Again, I'm not sure `entry.cache` is used to convey useful cache information.
Version: 62 Branch → 63 Branch
Component: Untriaged → Netmonitor
Product: Firefox → DevTools
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.