Font-face not loading in IE8 and IE9 when accessing web via SSL

后端 未结 2 1251
夕颜
夕颜 2021-01-23 08:22

I\'m using a webfont for my website (made with Spring for an Apache Tomcat 6 server). I\'m including my font in my css file with font-face as:

@font-face{
  font         


        
相关标签:
2条回答
  • 2021-01-23 08:56

    The practical answer is,using a proxy, to hide to the browser any cache-invalidating headers. Like "cache-control" and pragma: "no-cache" headers returned to the browser.

    I used nginx like this, 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, you'll find the syntax here

    0 讨论(0)
  • 2021-01-23 09:08

    I was running into exactly the same problem and finally fixed it today. I noticed a particular web font was working in IE8/9 on one HTTPS domain, but not on another. The server for the domain that didn't work was sending the following HTTP response header for the .eot request:

    Cache-Control: no-cache
    

    When this header was removed the fonts were working in IE8/9 again. I hope this helps you as well.

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