无法缓存谷歌字体

时间:2016-07-12 15:19:43

标签: html5 browser-cache cache-manifest

我用google font

创建了测试html页面
<link href='https://fonts.googleapis.com/css?family=Lato:400,700,700italic,400italic' rel='stylesheet' type='text/css'>

这是明显的

CACHE MANIFEST

NETWORK:
/api

CACHE:
https://fonts.gstatic.com/s/lato/v11/MDadn8DQ_3oT6kvnUq_2r_esZW2xOQ-xsNqO47m55DA.woff2
https://fonts.gstatic.com/s/lato/v11/MgNNr5y1C_tIEuLEmicLmwLUuEpTyoUstqEm5AMlJo4.woff2

我打开了localhost(我正在使用gulp serve任务)。 现在我可以在控制台中看到(在cmd + shift之后,这意味着刷新没有缓存):

GET https://fonts.gstatic.com/s/lato/v11/MDadn8DQ_3oT6kvnUq_2r_esZW2xOQ-xsNqO47m55DA.woff2 net::ERR_FAILED 

如何修复此错误? 感谢。

0 个答案:

没有答案