Enable HTTP/2 support in Chrome

Mattias Geniar, Monday, January 12, 2015 - last modified: Wednesday, February 25, 2015

I actually thought HTTP/2 was enabled by default in Chrome, but as it turns out there's a special flag (via a GUI) you still need to set.

Hi Engadget fans of HTTP/2! If you like this kind of tech-content, feel free to subscribe to updates via mail at the left sidebar, or follow me on Twitter as @mattiasgeniar..

How to enable HTTP/2 -- SPDY4 in Chrome

Go to the chrome://flags page (I can't link to it directly, as the browser won't allow direct links to the settings page) in your Chrome browser. Search for HTTP/2. Find the option called Enable SPDY/4.

chrome_enable_http2_spdy

Next, restart Chrome and SPDY4 will be enabled. This is one of the earlier drafts of HTTP/2 (at the time of writing, HTTP/2 draft 14) that will now be enabled. If you're using Firefox 36 or higher, HTTP/2 support is fully baked in and enabled by default.

If you're running Chromes nightly "canary" build, you can view the Protocol used in the Network Tab. Even though the SPDY-HTTP2 option is disabled by default, the before and after protocols are exactly the same: h2-14.

It may just be that Google has different settings for its own domains, that have hard-coded HTTP/2 support.

Before & after enabling HTTP/2

Before:

http2_chrome_disabled

After enabling SPDY, HTTP/2:

http2_chrome_enabled

This'll need a bit more testing to be sure.

More on HTTP/2?

Interested in HTTP/2 news? Have a look at some of the following articles.


Hi! My name is Mattias Geniar. I'm a Support Manager at Nucleus Hosting in Belgium, a general web geek, public speaker and podcaster. If you're interested in keeping up with me, have a look at my podcast and weekly newsletter below. For more updates, follow me on Twitter as @mattiasgeniar.

I respect your privacy and you won't get spam. Ever.
Just a weekly newsletter about Linux and open source.

SysCast podcast

In the SysCast podcast I talk about Linux & open source projects, interview sysadmins or developers and discuss web-related technologies. A show by and for geeks!

cron.weekly newsletter

A weekly newsletter - delivered every Sunday - for Linux sysadmins and open source users. It helps keeps you informed about open source projects, Linux guides & tutorials and the latest news.

Share this post

Did you like this post? Will you help me share it on social media? Thanks!

Comments

jason Wednesday, February 3, 2016 at 19:03

On version 47 of chrome it’s not even listed for me. It’s enabled by default on the newer browsers.

Reply


    Qingshan Xie Friday, April 15, 2016 at 19:22

    my Chrome version is 50.0.2661.75 (64-bit) on MacBook Pro. I guess the HTTP/2 is enabled as default. how to disable it for testing purpose?

    Reply


Leave a Reply

Your email address will not be published. Required fields are marked *

Inbound links