Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable HTTP/2 in chrome or chromium?

I'm trying to debug difference between HTTP/1.1 and HTTP/2. Is there any possibility for disabling HTTP/2 in chrome or chromium? I couldn't find this option flag in chrome 56. I have tried chromium 58 with flag --disable-http2:

./Chromium.app/Contents/MacOS/Chromium --disable-http2 

But content is still delivered with HTTP/2 protocol after using this flag:

Chromium --disable-http2

like image 567
Everettss Avatar asked Feb 24 '17 10:02

Everettss


People also ask

How can I tell if http2 is enabled in Chrome?

Google Chrome offers a quick and easy way to check if HTTP/2 is supported on your SSL-enabled site. First, visit your site in Chrome over HTTPS. There you'll see your site listed with protocol h2, confirming your site works over HTTP/2.

How do I get http2 request from 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. Next, restart Chrome and SPDY4 will be enabled.

Is my browser using HTTP 2?

You can just check it in: Chrome Dev Tool ( F12 ) → Network → Protocol. It will tell you the protocol used and the domain of each transfer.


1 Answers

For what it is worth, the flag works.

The issue is that you need to quit EVERYTHING Chrome for it to take effect. Including plugin shims and other chrome tabs and so on.

It is not enough just to add the command line switch.

like image 120
Sam Saffron Avatar answered Sep 21 '22 14:09

Sam Saffron