bootstrap 3.2.0 glyphicons are not displaying in internet explorer

前端 未结 9 1850
伪装坚强ぢ
伪装坚强ぢ 2020-12-13 20:11

I am useing twitter bootstrap 3.2.0 and I use some glyphicons they work properly in ff, chrome, and opera but they are not displayed within the Internet Explorer.

T

相关标签:
9条回答
  • 2020-12-13 21:09

    For those of you who may be experiencing a similar issue, there is a bug in Internet Explorer which causes webfonts not to render under certain cache-control situations.

    If the server is sending the header Pragma: no-cache and/or Cache-Control no-store, this will cause IE to fail to render the glyphs.

    This took me hours to track down, so hopefully posting here will help others save time!

    0 讨论(0)
  • 2020-12-13 21:11

    To solve on a wildfly setup you need to change your standalone.xml file at the untertow section:

    <server name="default-server">
        <host name="default-host" alias="localhost">
            ...
            <filter-ref name="custom-max-age" predicate="path-suffix['.woff'] or path-suffix ['.woff2'] or path-suffix ['.ttf'] or path-suffix ['.svg'] or path-suffix ['.eot'] or path-suffix ['.otf']"/>
        </host>
    </server>
    <filters>
        <response-header name="custom-max-age" header-name="Cache-Control" header-value="public"/>
    </filters>
    
    0 讨论(0)
  • 2020-12-13 21:16

    Ok, solved the Problem by myself.

    The Problem was, that somehow my IE went in a certain security state, in which the font download was disabled.

    So I changed the Custom level of the "protected Mode" - you can find that in the Security Tab of the Internet Options Menu.

    After you click on the "Custom level..." Button you have to search for "font download" and change it to "enable".

    Thanks for your help anyone!

    0 讨论(0)
提交回复
热议问题