IE Bootstrap字体(图标)未加载

时间:2016-07-18 08:59:05

标签: twitter-bootstrap internet-explorer ssl load-balancing

Internet Explorer 11在显示引导程序图标时出现问题。 使用Opera,Firefox和Chrome它可以很好地工作,它也适用于Edge,但在边缘模式或(10,9,8)中IE不显示图标。 在我将网站更改为https之前,它工作得很好。将它更改为ssl后我遇到了这个问题。

有没有人知道我能做些什么才能解决这个问题(在服务器 - Microsoft Azure或负载均衡器上)?

使用IE(图标未显示): IE

使用Firefox:

enter image description here

2 个答案:

答案 0 :(得分:4)

看起来安全或缓存设置存在问题 - >检查此主题以寻求可能的解决方案:

bootstrap 3.2.0 glyphicons are not displaying in internet explorer

答案 1 :(得分:1)

Spring-Boot在HTTP响应中生成缓存无效的标头:

Cache-Control :"no-cache, no-store, max-age=0, must-revalidate"

pragma: "no-cache"

解决方案是将这些标题隐藏到浏览器中。

我使用nginx作为代理,将以下命令添加到https代理位置:

  proxy_hide_header Cache-Control;
  proxy_hide_header Pragma; 

请参阅here for details和nginx。

使用apache httpd,语法为here