如何禁用铬或铬中的HTTP / 2? [英] How to disable HTTP/2 in chrome or chromium?

查看:593
本文介绍了如何禁用铬或铬中的HTTP / 2?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图调试HTTP / 1.1和HTTP / 2之间的区别。
是否有可能在chrome或chromium中禁用HTTP / 2?
我无法在chrome 56中找到这个选项标志。我尝试过铬58与

解决方案



问题是您需要退出所有Chrome浏览器才能生效。包括插件垫片和其他铬标签等。

仅仅添加命令行开关是不够的。

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:

解决方案

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.

这篇关于如何禁用铬或铬中的HTTP / 2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆