Skip to content

Streaming http request stops working in Safari after first page load in Web Worker #102

@raine

Description

@raine

Hello. Encountered a strange issue with this library, when used on Safari with a Web Worker.

A streaming http request will only work in the first page load, and sometimes after restarting Safari.

When the request does not work in subsequent page loads, there is no error, and the network pane in dev tools looks like this:

screen shot 2018-12-27 at 18 36 43

screen_shot_2018-12-27_at_18_12_43

Enabling the setting above in developer tools makes the request work on every page reload, suggesting it could be a cache related issue. However, disabling cache through Cache-Control header seemed to not help.

The scenario works in Chrome and Firefox. To be honest, it's starting to seem like a bug in Safari.

Here's a repo where you can easily reproduce the problem for yourself:

https://github.com/raine/safari-stream-http-bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions