代码适配站点服务器Vary HTTP 标头设置
发布时间:2016/12/20 12:08:15 作者:Admin 阅读:506
广告:
1. 网页html上head头部加:
<meta name="applicable-device" content="pc">
<meta name="applicable-device" content="mobile">
2. IIS自定义HTTP头 头名:Vary 自定义 Http头值: User-Agent
<httpProtocol>
<customHeaders>
<remove name="Vary"></remove>
<add name="Vary" value="User-Agent"></add>
</customHeaders>
</httpProtocol>
广告:
相关文章