IE Bootstrap fonts (icons) not loaded

谁说我不能喝 提交于 2019-12-10 10:08:02

问题


Internet Explorer 11 has problems showing the icons of bootstrap. With Opera, Firefox and Chrome it works perfectly, and it also works with Edge but the icons are not shown with IE in Edge mode or (10,9,8). Before I changed the website to https it worked all fine. I have this problem after changing it to ssl.

Does anyone know what I can do in order to solve this problem (at Server - Microsoft Azure or at load balancer)?

With IE (icons are not shown):

With Firefox:


回答1:


Looks like a problem with Security or Cache Settings -> check this thread for possible solution:

bootstrap 3.2.0 glyphicons are not displaying in internet explorer




回答2:


Spring-Boot is generating cache-invalidating headers in HTTP responses:

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

and

pragma: "no-cache"

The solution is to hide those headers to the browser.

I used nginx as a proxy, adding the folowing commands the https proxied location:

  proxy_hide_header Cache-Control;
  proxy_hide_header Pragma; 

See here for details with nginx.

Using apache httpd, the syntax is here



来源:https://stackoverflow.com/questions/38432486/ie-bootstrap-fonts-icons-not-loaded

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!