Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.6k views
in Technique[技术] by (71.8m points)

http - What are those URL's that are starting with // - that you can see within Google+ html source?

Hi can somebody please explain what are the URL's that we can see at Google+ HTML source code that look like <img src="//lh5.googleusercontent.com/--kKi9nRc78s/AAAAAAAAAAI/AAAAAAAAAC8/w1PSeKZtt7I/photo.jpg?sz=48" alt="" />

Is it a shortcut for http:// ?

What browsers understand it in this case, where can I find more information on this, please ?

Thanks in advance!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

It's a scheme-relative URL. You see this often on websites/pages which can be served over both http and https. If the image pointed to a http resource and the page itself was served over https, you would otherwise see an annoying browser warning that unsecured content is been served, something like this:

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...