Subscribe to
Posts
Comments
NSLog(); Header Image

Protocol Relative URLs

The protocol-relative URL - Paul Irish

In short, just specify things like this:

<img src="//site.com/imgs/photo.png">

The "//" will fetch via HTTPS or HTTP depending on how the user is currently visiting.

Comments RSS

Leave a Reply

Please abide by the comment policy. Valid HTML includes: <blockquote><p>, <em>, <strong>, <ul>, <ol>, and <a href>. Please use the "Quote Me" functionality to quote comments.