Failed to decode downloaded font, OTS parsing error: invalid version tag + rails 4

后端 未结 25 1552
长发绾君心
长发绾君心 2020-12-04 11:46

I am doing assets pre-compile, and running the application in production mode. After compilation when I load the my index page I got followings warnings in the chrome consol

25条回答
  •  情书的邮戳
    2020-12-04 12:26

    If other answers didn't work try:

    1. check .htaccess file

      # Fonts
      # Add correct content-type for fonts

      AddType application/vnd.ms-fontobject .eot
      AddType application/x-font-ttf .ttf
      AddType application/x-font-opentype .otf
      AddType application/x-font-woff .woff
      AddType application/x-font-woff2 .woff2
      AddType image/svg+xml .svg

    2. clear server cache

    3. clear browser cache & reload

提交回复
热议问题