为什么需要更改IE设置才能在Windows 10上启用HTTP/2? [英] Why do I need to change IE settings to enable HTTP/2 on Windows 10?

查看:281
本文介绍了为什么需要更改IE设置才能在Windows 10上启用HTTP/2?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在正在开发的网站上启用了HTTP/2.

I recently enabled HTTP/2 on a site I was developing.

为此,我不得不

  1. 在Windows 10上
  2. 使用支持HTTP/2的浏览器(在我的情况下为Chrome)
  3. 配置我的Web服务器(iisexpress)以使用https服务站点
  4. Internet中启用HTTP/2资源管理器选项
  1. Be on Windows 10
  2. Use a browser that supports HTTP/2 (in my case Chrome)
  3. Configure my webserver (iisexpress) to serve the site using https
  4. Enable HTTP/2 in the Internet Explorer options

所有方法都有效,但是我对为什么必须使用1和4感到困惑.特别是4,因为我实际上没有使用Internet Explorer.现在,上面的链接表明它与WININET库有关,并且我了解IE选项有时会影响操作系统本身的设置,但这正是我突然停止理解的地方.

It all works, but I'm confused about why 1 and 4 are necessary. Especially 4 as I'm not actually using Internet Explorer. Now the above link suggests that it has something to do with the WININET library and I understand that IE options occasionally affect settings in the operating system itself but that's where my understanding abruptly stops.

操作系统甚至与这一切有什么关系? http/2是否不只是在浏览器和服务器应用程序之间? IIS是否正在使用系统资源?这是否意味着如果我设置了Katana或nginx之类的东西,就可以在没有Win10的情况下使用HTTP/2或切换IE设置?

What does the operating system even have to do with any of this? Isn't http/2 just between the browser and server application? Are there system resources being used by IIS? Does that mean if I set up something like Katana or nginx I could use HTTP/2 without Win10 or toggling the IE setting?

推荐答案

在Internet Explorer选项中禁用HTTP/2(默认情况下处于启用状态):

Disabling of HTTP/2 in the Internet Explorer options (it's enabled by default):

仅在Windows 10计算机上的IE11 上具有关联. Chrome甚至Microsoft Edge仍然可以使用HTTP/2与您的IIS通讯(我使用IIS而不是iisexpress进行了测试).您可以使用Developer Tools进行验证.您应该只清除浏览器缓存以查看在通信期间使用了H2(HTTP/2):

have relation only on IE11 on your Windows 10 computer. Chrome and even Microsoft Edge can still use HTTP/2 to communicate with your IIS (I tested with IIS instead of iisexpress). You can verify that using Developer Tools. You should only clear the browser cache to see that H2 (HTTP/2) be used during the communication:

这篇关于为什么需要更改IE设置才能在Windows 10上启用HTTP/2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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