Skip to content

Remove unnecessary body transmission for service worker trapped requests #678

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

Closed
wants to merge 1 commit into from

Conversation

yutakahirano
Copy link
Member

@yutakahirano yutakahirano commented Mar 6, 2018

As the request is trapped by service worker, there is no need to transmit the body to network.

See #572 for more info.


Preview | Diff

@annevk
Copy link
Member

annevk commented Mar 7, 2018

Doesn't this cause XMLHttpRequest upload progress events to not dispatch?

@yutakahirano
Copy link
Member Author

This is the service worker intercept case, and transmitting the body to network makes no sense at all. Can we fix the upload progress issue separately?

@annevk
Copy link
Member

annevk commented Mar 7, 2018

Transmit body doesn't necessarily mean a network transmission. It can be from one process to another. If you run blame on this line I think you'll find we added this for XHR.

@yutakahirano
Copy link
Member Author

Ah, I misunderstood, thank you. I'll abandon this change.

@yutakahirano yutakahirano deleted the remove-unnecessary-transmission branch March 8, 2018 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants