Protocol relative urls and mixed content.
The best solution when you need http and https on the same page.
Have you ever had the need of mixed content on the same page? I mean content coming from http and https sources? Usually you get some advice from browser, but you can avoid this using the protocol relavite urls.
What does this mean? This
<img src="//carloamoroso.it/image.jpg" />
is a perfect valid URL! As a matter of fact, I didn't knew this feature of the protocol till i was faced to solve a problem of mixed content coming from http and https on the same page.
28 Mar 09