how can i use the CDN of Google's AMP Project in a production website like cloudflare?

后端 未结 1 975
暗喜
暗喜 2021-01-25 12:59

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

But how can i use it in a production website?

I imagine that is possibile to set it in some way li

相关标签:
1条回答
  • 2021-01-25 13:49

    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.

    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.

    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.

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

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

    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?

    0 讨论(0)
提交回复
热议问题