What is HTTP 2.0 and How to Enable It
HTTP 2.0 is the network protocol developed by IETF, based on Google’s SPDY protocol. SPDY is primarily focused on reducing the bandwidth and the page load latency by muxing and compression of the data transferred. However SPDY reduces the resources with a single connection per client, they require SSL/TLS to operate, to cover its security purpose.
SPDY is supported by almost all the popular browsers, and the server-side charts shows that 0.6% of the websites in the World Wide Web supports SPDY protocol. Mostly Google’s services like Google Ads can be found running with SPDY when available. Twitter enabled SPDY in 2012 and a few other major sites like Facebook, WordPress, followed enabling it.
SPDY sessions can be inspected with chrome in the following URI:
HTTP 2.0 is more like an improvement to the previous version, where the current SPDY based version is more concentrated on the performance by multiplexing, header compression and server push. While Microsoft is also experimenting such protocol based on SPDY, under the name Microsoft Speed + Mobility (Microsoft S+M), feedbacks from Facebook on both the protocols preferred HTTPS 2.0 over Microsoft S+M
How to Enable HTTP 2.0?
Chrome by default supports HTTP 2.0. As far as Mozilla Firefox is concerned, the Nightly channel has already implemented the HTTP 2.0 protocol and is disabled by default. Though it is insignificant to enable the feature now, it is always fun to experiment it for that curious mind.
How To enable HTTP 2.0 in Firefox Nightly
about:configin the address bar and press
- If a warning appears, promise to Firefox that you will be careful – Like a boss – and continue.
- Paste this in the search box:
- To enable it, double-click on the name to set the boolean value as
- Now search for
- Enable it by double clicking on the name. boolean value =
You can test HTTP 2.0 with these two endpoints:
These connections will timeout if they are requested from a non-HTTP/2.0 browser/client.
Head over to Mozilla Wiki for more information.
This post was first published on February 10, 2014.