Asked Aug 8th, 2017 8:47 a.m. 909 0 1
  • 909 0 1
+13

Sự khác biệt giữa HTTP 2.0 và HTTP 1.1

Share
  • 909 0 1

Mọi người cho mình hỏi sự khác biệt giữa HTTP 2.0 và HTTP 1.1 là gì ạ? HTTP 2.0 liệu có thay thế được web socket hay không và đã ai dùng thử HTTP 2.0 trong dự án của mình chưa ạ?

1 ANSWERS


Answered Aug 8th, 2017 9:12 a.m.
Accepted
+18

First of all, HTTP/2 only supports encrypted connections (TLS), even though it is not required according to specs, there are no servers or clients which support unencrypted HTTP/2. The second most significant improvement is multiplexing support: servers can now parallel multiple responses within single connection (check demo at https://http2.akamai.com/demo). And the last major change is support of Server Push feature, which allows to inform client of needed resources before HTML has been loaded.

You can read all specs and FAQ at https://http2.github.io

P. S. Viblo, actually, uses HTTP/2 both for web pages and web sockets.

Share
Avatar KhanhWAP @riqozy
Aug 8th, 2017 9:23 a.m.

That's great!

0
| Reply
Share
Avatar dinhhoanglong91 @dinhhoanglong91
Aug 8th, 2017 9:32 a.m.

Great! Thank you very much.

0
| Reply
Share
Avatar kopitop @kopitop
Aug 9th, 2017 2:36 a.m.

Nice example!

0
| Reply
Share
Viblo
Let's register a Viblo Account to get more interesting posts.