如何在cloudflare这样的生产网站中使用Google AMP Project的CDN? [英] how can i use the CDN of Google's AMP Project in a production website like cloudflare?

查看:118
本文介绍了如何在cloudflare这样的生产网站中使用Google AMP Project的CDN?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此线程中,我发现了如何测试Google AMP的CDN.

In this thread i discovered how to test the CDN of Google AMP.

但是我如何在生产网站中使用它?

But how can i use it in a production website?

我想可以像Cloudflare或其他类似服务那样设置它,不是吗?

I imagine that is possibile to set it in some way like Cloudflare or other similar services, isn't it?

谢谢.

推荐答案

即使Google随后收集了AMP内容并通过其提供,您仍将通过自己的基础结构提供AMP内容.

You're still going to be serving the AMP content from your own infrastructure, even if Google then collect it and make it available via theirs.

如果您想自己提供服务或通过Cloudflare之类的CDN进行服务,则不涉及Google CDN-将一个CDN链接到另一个CDN或依靠Google在其CD中包含您的内容似乎没有多大意义缓存以便可以从另一个服务器获取.

If you want to serve it yourself or from a CDN like Cloudflare then the Google CDN isn't involved - it doesn't seem to make much sense to chain one CDN to another or to rely on Google having your content in their cache for it to be available from another.

AMP规范中没有任何内容可以控制内容的提供方式和位置. AMP运行时无法控制资产的来源.

There's nothing in the AMP spec that governs how and from where the content is served. The AMP runtime doesn't control where assets come from.

因此,对于给定的AMP文件,使用BBC而不是Guardian:

So, using the BBC rather than the Guardian, for a given AMP document:

http://www.bbc.co.uk/news/amp/election-us-2016-35320021

内容来自www.bbc.co.uk,该网站可能指向其基础架构或Cloudflare之类的CDN.无论哪种方式,AMP内容都是可用的.

The content comes from www.bbc.co.uk, which could point to their infrastructure or to a CDN like Cloudflare. Either way the AMP content is available.

我认为您的问题尚不清楚.这就是您要找的东西吗?

I think your question is slightly unclear. Is this what you were looking for?

这篇关于如何在cloudflare这样的生产网站中使用Google AMP Project的CDN?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆