What is HTTP/2

Dec 28, 2018 pm 05:36 PM
http/2



Many people have heard of HTTP, but don’t know much about HTTP/2. The following php Chinese website is Could you please explain in detail what HTTP/2 is?

What is HTTP/2

1: What is HTTP/2

HTTP/2 is a new communication method (protocol) when getting data from a web server ), the previous version of HTTP/1.1 was released in 1999. [Recommended reading: What is the http protocol]

In HTTP/1.1, in principle, only one request can be sent to the web server. For example, suppose you have two images displayed on a web page. After the first image is loaded, start loading the other image. If you use HTTP/2, you can handle multiple requests at the same time. If there are two images on the web page, you can Reading them simultaneously improves communication efficiency.

It is possible to make multiple requests to the web server at the same time in HTTP/1.1. However, there is a problem. Only one request can be processed as the requested order. When there are multiple requests, and the previous response to slow While the request is being processed, while also slowing down the display, the page will handle the wait state for subsequent requests.

Two: Advantages of HTTP/2

Using HTTP/2 can improve communication efficiency and therefore improve the speed of reading web pages. First of all, Google uses Chrome and Firefox to note that HTTP /2 can only be used for TLS encrypted HTTPS communication in major browsers, HTTP/2 itself is also compatible with HTTP communication, but if you use HTTP/2 according to the browser specification, you will eventually need to deal with HTTPS as well.

On web pages that store content spread across multiple domains, it cannot take full advantage of HTTP/2 handling multiple requests to servers in the same domain, ways we can distribute content to multiple domains Known as domain sharding, you may not get the results expected with HTTP/2.

HTTP/2 not only adds functions, but also improves efficiency. Compared with the previous HTTP/1.1, HTTP/2 improves the display speed of the website. Multiple requests will be processed simultaneously in HTTP/2, so please try to use it. By all means, it is more efficient to send and receive.

The above is a complete introduction to what HTTP/2 is. If you want to know more about operation and maintenance, please pay attention to the php Chinese website.




##

The above is the detailed content of What is HTTP/2. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)