无法解码Heroku上下载的字体

无法解码Heroku上下载的字体,heroku,webfonts,jhipster,Heroku,Webfonts,Jhipster,当我在访问JHipster应用程序时,我在Chrome开发者工具中看到以下警告。在本地运行时,我没有看到此错误 Failed to decode downloaded font: http://www.jhipster-book.com/assets/fonts/sourcesanspro/sourcesanspro.woff 我在客户的项目(在GAE上运行)上使用了相同的字体,效果很好。看起来没有在Heroku上设置内容类型标头。以下是我在当地看到的情况: HTTP/1.0 200

当我在访问JHipster应用程序时,我在Chrome开发者工具中看到以下警告。在本地运行时,我没有看到此错误

Failed to decode downloaded font: http://www.jhipster-book.com/assets/fonts/sourcesanspro/sourcesanspro.woff
我在客户的项目(在GAE上运行)上使用了相同的字体,效果很好。看起来没有在Heroku上设置内容类型标头。以下是我在当地看到的情况:

    HTTP/1.0 200 OK
    Server: SimpleHTTP/0.6 Python/2.7.9
    Date: Fri, 12 Jun 2015 21:57:23 GMT
    Content-type: application/x-font-woff
    Content-Length: 27248
    Last-Modified: Fri, 12 Sep 2014 16:22:14 GMT
关于Heroku:

    HTTP/1.1 200 OK
    Connection: keep-alive
    Server: Apache-Coyote/1.1
    X-Application-Context: application:prod,heroku:56079
    Cache-Control: max-age=2678400000, public
    Pragma: cache
    Expires: Mon, 13 Jul 2015 21:59:11 GMT
    Last-Modified: Fri, 12 Jun 2015 21:47:41 GMT
    X-Content-Type-Options: nosniff
    X-Xss-Protection: 1; mode=block
    Cache-Control: no-cache, no-store, max-age=0, must-revalidate
    Pragma: no-cache
    Expires: 0
    Content-Length: 27247
    Date: Fri, 12 Jun 2015 21:59:11 GMT
    Via: 1.1 vegur

我是否必须在Heroku中配置一些东西才能使其工作?

经过一些额外的调查,似乎只有在我使用Jenkins将我的应用程序部署到Heroku时才会发生这种情况。更多信息:经过一些额外的调查,似乎只有当我使用Jenkins将我的应用程序部署到Heroku时才会发生这种情况。更多信息:经过一些额外的调查,似乎只有当我使用Jenkins将我的应用程序部署到Heroku时才会发生这种情况。更多信息: