HTTP/2 Support Now Available Through CloudFlare
Starting today, all Duplika customers have free support for HTTP/2 as part of the CloudFlare community.
An update that was a long time coming
HTTP/2 is the first update to the Hypertext Transfer Protocol (HTTP) since 1999. Its goal is to improve website performance for users visiting sites from their preferred browser (end-user).
In November 2009, after a decade without any changes to the protocol, Google introduced an experimental protocol called SPDY. Among other things, the efforts focused on reducing Internet latency.
That internal project eventually became the foundation for the groundbreaking HTTP/2. It was enhanced with contributions from the Internet community and ultimately adopted as a Web Standard.
What are the benefits of HTTP/2?
HTTP/2 benefits three parties: the end-user, the network, and server resources.
With the previous protocol, HTTP/1.1, the main drawback was that each request used its own TCP connection. For example, one connection to download an image, another to download a CSS library, another for each JavaScript file, another for the HTML, and so on.
To solve this, multiplexing (Multiplexing) allows the browser to include multiple requests in a single TCP connection.
So, instead of loading one resource at a time as before, with HTTP/2 the browser requests all web assets (CSS stylesheets, JavaScript files, and images) together, considerably speeding up the site's loading time.
In HTTP/2, multiplexing is enhanced by stream prioritization (Stream Priority), a mechanism that allows the browser to determine which web assets it prefers to receive first.
So, in addition to sending multiple requests over a single TCP connection, HTTP/2 lets you define the order in which assets arrive. For example, you can request the HTML page first, followed by the stylesheet, JavaScript, and finally the images. This allows the page's text content to be displayed first, while the rest of the content loads dynamically and in order as it is received.
HTTP/2 also adds header compression to speed up data transmission.
What is a header? Whenever a browser requests a web asset, an HTTP header is included in the request—a “manual” that explains how the data in its corresponding packet should be handled. The browser, such as Chrome, must wait for the server's response before it can send the next request. When this round trip is repeated for every asset on an average website, the amount of redundant information sent back and forth results in an unnecessary delay.
HTTP/2's solution is to send compressed headers, which considerably reduces the amount of information exchanged between the client and the server.
How do you enable HTTP/2?
If you're a Duplika customer, you don't need to make any changes to your website: HTTP/2 support over TLS/SSL is already enabled.
Although the updated protocol does not require encrypted connections, the development teams behind the most widely used browsers agreed to support HTTP/2 only over TLS connections. In other words, to take advantage of HTTP/2, sites must be accessible over https (that is, with an SSL certificate).
Fortunately, if you don't have an SSL certificate installed on your hosting account, Duplika offers you Universal SSL through CloudFlare.
All Duplika customers get the CloudFlare content delivery accelerator included in their plans at no extra cost. This ensures that the latest and fastest Internet protocol is used.