To use the CDN of the AMP project, you can access it through the URL of the form:
https://cdn.ampproject.org/c/s/<origin-domain>/<path>
Please note that the /s part is optional and signals a safe origin, so if the source is not transmitted over https, you should use:
https://cdn.ampproject.org/c/<origin-domain>/<path>
So, if we take the following URL with the AMP equivalent: http://www.theguardian.com/childrens-books-site/2016/jan/12/sugar-tax-andy-mulligan-liquidator , looking at the source, we see the following link
<link rel="amphtml" href="https://amp.theguardian.com/childrens-books-site/2016/jan/12/sugar-tax-andy-mulligan-liquidator">
So, we can generate the CDN URL for this AMP document as:
https://cdn.ampproject.org/c/s/amp.theguardian.com/childrens-books-site/2016/jan/12/sugar-tax-andy-mulligan-liquidator
Source: https://github.com/ampproject/amphtml/blob/master/src/service/cid-impl.js#L201
Seth yates
source share