在IE11中通过https进行第二次加载时,font-awesome无法正常工作 [英] font-awesome is not working properly on second load in IE11 over https

查看:1516
本文介绍了在IE11中通过https进行第二次加载时,font-awesome无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在角度2中遇到了一个问题,我们使用font-awesome作为样式和字体。在本地它正在按预期工作,但是当我们部署代码时,它正在进行第一次加载,但是当你刷新页面时,它会删除所有样式并且表现不同。

I have an issue in angular 2 where we are using font-awesome for the styling and font. On local it is working as expected but when we deploy the code it is working on first load but when you refresh the page then it removes all the styles and behave differently.

推荐答案

此问题可能是由于缓存问题。
在这里,你可以找到一些关于Font-Awesome麻烦的文档: https: //github.com/FortAwesome/Font-Awesome/wiki/Troubleshooting

This issue is probably due to caching problems. Here, you can find a little documentation about Font-Awesome troubleshouting : https://github.com/FortAwesome/Font-Awesome/wiki/Troubleshooting


检查以下内容:

Check the following:

您正确配置了服务器的MIME类型(参考号:#5559);

You properly configured server's MIME types (Ref: #5559);

您正确配置了跨域资源共享(CORS);

You properly configured Cross-origin Resource Sharing (CORS);

对于Internet Explorer:您不在Cache-control标头中提供带有no-store选项的文件(参考号:#6454);

For Internet Explorer: you don't serve files with no-store option in Cache-control header (Ref: #6454);

对于Internet Explorer和HTTPS:您不在Pragma标头中提供no-cache选项的文件;

对于Internet Explorer:尝试删除@ font-face定义中的查询字符串。您需要一个自定义的CSS文件(参考号:#3286)。

For Internet Explorer: try to get rid of the query strings inside the @font-face definitions. You need a custom css file (Ref: #3286).

尝试 Internet Explorer兼容模式好吧:


此功能会导致IE出现一些随机问题,所以请通过添加元标记作为FIRST来禁用
你的标签:
< meta http-equiv =X-UA-Compatiblecontent =IE = edge>

这篇关于在IE11中通过https进行第二次加载时,font-awesome无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆