I am new to font-awesome icons. I have one page in which there is a filter where user can search the data. I have added font awesome icon just before the search link (as per below screenshot), I can see this icon in all the browsers except IE 11. The funny thing is I have this icon in other pages also and I can see it in IE 11, but I cannot see this icon on this (as per below screenshot) page only.
Here is the screenshot from IE 11:
Here is the screenshot from chrome:
Can anyone help me out on this?
We recently had this issue serving Font Awesome font files from our Rails application. The confusion was that we weren't passing
Pragma
orCache-control
response headers - so the previous answers in this post were a bit confusing.To summarize - this issue is caused by these two conditions:
font-face
, over an HTTPS connection (critical for re-producing this bug locally).Pragma
header has the valueno-cache
OR in our case, we're serving everything gzipped, and theVary
header is passed with a value other thanAccept-Encoding
.We fixed this by adding the following to our Rack::CORS config:
IE has an issue with
@font-face
s being delivered with the HTTP-HeaderPragma=no-cache
. You can see it recorded on the issue tracker hereUnfortunately the issue is marked as not resolvable but there are some workarounds. The one that worked for me was using a servlet filter that avoids the Pragma header being set.
Other solutions that not worked for me:
Font-awesome disappears after refresh for all ie browsers ie11,ie10,ie9
Font awesome icons becomes invisible in IE after refresh
I've encountered the same issue, searched everywhere and no luck. It appears it was due to Microsoft cumulative Security update which stopped loading Fonts/Images especially :
https://support.microsoft.com/en-us/help/4486474/cumulative-security-update-for-internet-explorer-february-12-2019
https://support.microsoft.com/en-us/help/4491113/cumulative-update-for-internet-explorer-february-19-2019
To fix it you need to install the March patch:
https://support.microsoft.com/en-us/help/4489873/cumulative-security-update-for-internet-explorer-march-12-2019
If apache server is serving Font files, addthe following entries to the httpd.conf or .htaccess in .
To set right mime-types for font files, add this lines to config:
To update font files headers, This fix perfectly worked to render Font Icons in IE Browsers.
If you are using Spring MVC with Spring Security, Spring Security automatically adds no cache headers and so causes font-awesome to break on IE11.
(https://docs.spring.io/spring-security/site/docs/current/reference/html/headers.html#headers-cache-control)
I solved the issue by adding a
ResourceHandler
in myWebMvcConfiguration
for font-awesome configured to allow the browser to cache the fonts.From IE console try to run following script
If it work then try to import it CDN instead of storing it locally.