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

后端 未结 2 1267
夕颜
夕颜 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

提交回复
热议问题