Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
raine opened this issue Dec 27, 2018 · 0 comments

Comments

@raine
Copy link

raine commented Dec 27, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant