1. Why can a plain HTTP/1.1 server not send a new chat message to a browser on its own?
- Because HTTP responses cannot contain JSON
- Because the server can only respond to a request the client has already sent
- Because browsers block all incoming TCP packets
- Because HTTP/1.1 has no Content-Type header
Show answer
Answer: Because the server can only respond to a request the client has already sent
HTTP is request/response: the server can only answer an open request. Push techniques work by keeping a request or connection open so the server has something to write into.
Lesson: Why Plain HTTP Is Not Enough