Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

amp-html

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 ?

like image 624
Tristan Larouanne Avatar asked Nov 21 '25 11:11

Tristan Larouanne


1 Answers

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.

like image 128
user1330213 Avatar answered Nov 23 '25 18:11

user1330213



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!