Skip to content

Specify network body data collection for cached responses #985

@juliandescottes

Description

@juliandescottes

With the current spec, the hook for cloning the body to collect responses in BiDi should be done at https://fetch.spec.whatwg.org/#ref-for-concept-body-stream%E2%91%A0%E2%91%A1:~:text=Set%20response%E2%80%99s%20body%20to%20a%20new%20body%20whose%20stream%20is%20stream%2E

However this excludes cached responses. At the moment it seems Chrome is returning the body for all cached responses, while Firefox doesn't.

I think we should probably try as much as possible to return bodies whenever possible but we should still discuss if we want to do that for responses which don't use the network at all.

Note that in Firefox we don't really have access to cached bodies for some resources (eg stylesheets) See https://bugzilla.mozilla.org/show_bug.cgi?id=1981164

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions