Why amp-video and amp-audio force the usage of https for src?

痞子三分冷 提交于 2019-12-10 19:35:09

问题


On the documentation about AMP-video this is indicated that:

src: Required if no children are present. Must be HTTPS.

Why this is needed ?

  • Is this for security issue ? (my video and audio doesn't need security).
  • Is this for performance (and in this case, since when https is faster than http ?)
  • Any other reason ?

From my point of view, that look strange to allow the full AMP technology to work on http and only restrict part of them to https. What is the rational behind that ?


回答1:


It's a security thing - if/when your content is hosted on Google's CDN, all elements will be served over HTTPS, so standard HTTP elements won't work.



来源:https://stackoverflow.com/questions/35454551/why-amp-video-and-amp-audio-force-the-usage-of-https-for-src

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!