Google warning: Resource interpreted as Font but transferred with MIME type application/octet-stream

前端 未结 7 1849
时光取名叫无心
时光取名叫无心 2020-11-29 00:20

I have a warning in Google for my font-face:

Resource interpreted as Font but transferred with MIME type application/octet-stream: \".../Content/Fonts/iconFo

7条回答
  •  旧巷少年郎
    2020-11-29 01:01

    For Nginx: (Path: /etc/nginx/mime.types)

    font/ttf                         ttf;
    font/otf                         otf;
    application/x-font-woff          woff;
    

    You dont need application/vnd.ms-fontobject eot; because it exists already.

    After that restart Nginx: service nginx restart

    Done.

提交回复
热议问题