chrome - don´t wait until all data is received - node.js

女生的网名这么多〃 提交于 2019-12-06 13:27:02
Van Coding

I found the answer:

Google Chrome and Streaming HTTP connections?

It´s strange that I must send so much bytes first to enable streaming, but it works.

My chrome needs exatcly 1024 bytes first.

UPDATE

Alternatively, you can set the content-type to text/javascript. Then the streaming begins immediately!

Browsers do not have to implement the feature of partial ajax responses, have a look at google, there are many quite differnt workarounds for this problem for each browser.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!