Sign in Registration
ArticlesDownloadServicesAudioContacts
ruen

HTTP vs HTTP2, use HTTP2 connection or not - benefits and support

Not so long ago, a new version of the protocol appeared, which is intended to replace the previous ones. This version is called HTTP2, or rather HTTP / 2 - before that, HTTP / 1.1 and SPDY were mainly used. Accordingly, the option " use HTTP / 2 connection " or with a similar name appeared on many hosting - and many people ask whether to enable it or not.

http2-how-check-know-support

HTTP Version History

First, let's take a quick look at the previous protocols. HTTP protocol version history:

The emergence of a new version of the HTTP protocol was necessary, even despite all attempts to improve the old versions. This was dictated by modern requirements and realities of the Internet. Old versions and modifications were only attempts to adapt to such modern requirements. Therefore, a new version of the protocol was developed - HTTP / 2, which takes into account all the needs of users, browsers, networks, etc.

Quite a lot of discussions and articles appeared on various sites and forums on the question - is it worth using HTTP / 2 or not. Also, as mentioned above, many users ask about the new option in the hosting settings "use HTTP / 2 connection" - to enable it or not. To answer this question, a lot of research has been done by different users to understand what the use of HTTP / 2 actually does.

use-http2-hosting

Benefits of HTTP / 2

HTTP / 2 is a binary protocol, unlike previous versions. This means that data now takes up less space and is processed faster. According to the test results, if properly configured, sites loaded via HTTP / 2 open much faster. Except loading speed HTTP / 2 offers a number of new features that were previously needed. Let's take a look at the benefits of HTTP / 2 :

HTTP / 2 support

As for supporting the new version of the protocol, there are no special problems with this - all modern browsers and servers support it. How do I know if a site is running over HTTP / 2 ? This can be done using special sites or, better, on your own - using the developer console in the browser. The picture above just showed how to check the site protocol.

Open a console (usually press F12), go to the "network" tab and refresh the open site. Then the values ​​will appear, right click to show the "protocol" column. This column will indicate the protocol used for each resource on the page, the h2 value is HTTP / 2 . Some resources can be downloaded through one protocol, others through another - the choice of the protocol is made by the browser automatically, to improve the performance of the connection. In this simple way, you can check HTTP / 2 - whether it is in use or not.

Many servers automatically analyze the possibility of using a new protocol for each visitor and transmit data using HTTP / 2, so there is no need to enable this option yourself. In other cases, you can enable HTTP / 2 in the hosting settings or by configuring your server. Accordingly, when developing, you need to take into account the capabilities of the new protocol to build more efficient projects.

Thus, it is up to everyone to enable HTTP / 2 or not , but using the new version of the protocol is more desirable. Sooner or later, it will replace outdated versions, which is already happening quite actively in the present tense.

Comments (0)
For commenting sign in or register.

Latest articles

Popular sections

Communication

Login to the web version
Android app:
Available on Google Play

Share this

Subscribe to