Disable Recieving Buffer in Firefox (or other browsers)

后端 未结 1 1231
Happy的楠姐
Happy的楠姐 2020-12-21 20:44

I got trouble with web browsers buffering (not chaching).

I call this php script :

sleep(5);
echo \'1st step\';
echo (str_repeat(\' \',256));
sleep(5         


        
相关标签:
1条回答
  • 2020-12-21 21:25

    Oh, I guess I need to make the answer an answer, not a comment, so you can accept it.

    The HTML5 charset sniffing buffer size is 512 bytes. So the response needs to either have 512 bytes of padding or set a charset (via <meta> tag or HTTP header).

    0 讨论(0)
提交回复
热议问题