IE 11 “sometimes” preventing the display of “font-awesome” webfonts

前端 未结 5 456
半阙折子戏
半阙折子戏 2020-12-31 17:03

Some of our IE11 clients are not seeing the \"font-awesome\" webfonts in our web application. I have done extensive testing with our own IE11 instances, and also via cross b

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-31 17:54

    Removing the Pragma Header from the response header in the endpoint from where the fonts are downloaded solved for me.

    if (request.getServletPath().contains(".woff") || request.getServletPath().contains(".ttf")) {
        headers.remove(HttpHeaders.PRAGMA);
    }
    

提交回复
热议问题