缓存 Typekit CSS
我正在使用 TypeKit 为我正在开发的网站提供字体。页面加载时加载速度很慢(超过一秒)。事实证明,这是因为它在每次请求时都会下载字体。我无法理解像这样的服务没有配置 etag 来让客户端缓存字体……但我离题了。在 TypeKit 修复此问题之前,我将临时在本地托管 CSS。
有人遇到过 TypeKit 这个问题吗?你是如何解决这个问题的?也许我错了?
I'm using TypeKit to provide fonts for a site I'm developing. When the page is loading it loads slow (more than a second). Turns out that this is because it's downloading the fonts on every requests. It's beyond me that a service such as this doesn't have etags configured to get clients to cache the fonts...but I digress. Until TypeKit fixes this I host the CSS locally temporarily.
Anyone had this issue with TypeKit? How did you work around it? Perhaps I'm wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据 在他们的 getsatisfaction.com 帐户上发布的内容,他们至少有一些缓存:
你能用 Firebug 检查一下发生了什么吗?
According to a posting on their getsatisfaction.com account, they have at least some caching in place:
can you check what happens using Firebug?