实施HSTS会导致我的网站使用IE6兼容模式的部分中断吗?
我正在将为 IE6 设计的旧系统转换为在现代浏览器上工作。
网站中尚未转换的那些部分只能在 Internet Explorer 上运行,并且 IE6 仿真通过以下标签提供。
<meta http-equiv="X-UA-Compatible" content="IE=5">
我计划将 HSTS 添加到站点(通过 CloudFlare)。我发现 HSTS 仅支持Internet Explorer 11 及更高版本。
添加 HSTS 会导致我的网站依赖 IE6 仿真的那些部分中断吗?
回答
不。IE6 不知道如何处理 HSTS 标头,只需忽略它。
- The OP is not running IE6 and is also not asking about the effect of this header on IE6. __This is about IE6 emulation mode__, i.e. compatibility hacks inside newer IE versions which are used to support sites designed for IE6. This `X-UA-Compatibilty` is mainly about HTML rendering.