How to disable HTTP/2 in chrome or chromium?

Everettss picture Everettss · Feb 24, 2017 · Viewed 32.2k times · Source

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

Answer

Sam Saffron picture Sam Saffron · Mar 22, 2017

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.