无法在Heroku上解码下载的字体

时间:2015-06-15 04:22:23

标签: heroku webfonts jhipster

我在Cant delete in database because of constraints访问我的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中配置这项工作?

0 个答案:

没有答案