On IE CSS font-face works only when navigating through inner links

后端 未结 8 958
没有蜡笔的小新
没有蜡笔的小新 2020-12-01 06:30

Our webdesigner has created a CSS with the following font-face:

@font-face {
    font-family: \'oxygenregular\';
    src: url(\'oxygen-regular-webfont.eot\')         


        
8条回答
  •  被撕碎了的回忆
    2020-12-01 07:00

    JustAMartin's answer led us to a different solution:

    Instead of commenting those last two lines

        // do not use any of the following two - they break CSS fonts on IE
        HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache);
        HttpContext.Current.Response.Cache.SetNoStore();
    

    We added the following line:

    HttpContext.Current.Response.Cache.SetAllowResponseInBrowserHistory(true);
    

    This should still allow no-cache with the exception of back and forward navigation as I understand it. MSDN - SetAllowResponseInBrowserHistory Method

提交回复
热议问题