Hacker News new | ask | show | jobs
by JMTQp8lwXL 2567 days ago
AMP's HTML validator has a hard dependency on cdn.ampproject.org [0]. So the hosting requirements aren't fully isolated, and entirely under your control.

Also, I could not find a list of certified CDNs.

[0]: https://github.com/ampproject/amphtml/blob/master/validator/...

2 comments

https://github.com/ampproject/amphtml/blob/master/caches.jso...

Google, Bing, Cloudflare are the three official caches, which is what I think they mean.

Not true, you can validate AMP from localhost. The AMP.js packages comes bundled with it's own validator:

https://amp.dev/documentation/guides-and-tutorials/learn/val...

Even then it's quite a stretch to go from saying Google controls AMP to saying the validator has an online requirement. Also, as the other commenter said, Google, Bing, and Cloudflare are currently the certified CDNs to get the icon in search results.