【发布时间】:2016-05-05 16:03:08
【问题描述】:
我的公司最近开始为我们的一个网站试验 AMP 网页。这个过程效果很好,我们看到 Google 将我们的网页编入索引,以便在 AMP 轮播中使用:Mobile Google Search result for PennLive.com。
但是,我们的字体资源在 Google 轮播中返回为 404,尽管它们直接在我们的 AMP 页面上工作。
https://cdn.ampproject.org/r/www.pennlive.com/static/common/fonts/v1/benton-sans-medium/448c4642-c106-472f-9c6a-a4d7b5347b03-3.woff 返回404
而:
http://www.pennlive.com/static/common/fonts/v1/benton-sans-medium/448c4642-c106-472f-9c6a-a4d7b5347b03-3.woff 返回200
在 amphtml 文档中,它说必须通过 http 或 https 提供自托管字体,这就是我们正在为我们的页面所做的,AMP 页面显然正在验证。
为什么这些字体在 Google AMP 轮播中没有返回 200?
示例页面:http://www.pennlive.com/articles/18505993/penn_state_commit_damion_barbe.amp
【问题讨论】:
标签: amp-html