I have some ASPX pages on my IIS. They are available both via HTTP and HTTPS. The public pages are the same, regardless of http or https protocol. Now, according to (not only) Googles Best Practices, I want to serve my static files from a cookieless domain. Therefore I registered a completely new domain name, e.g. mystaticdomain.com . But how do I reference the images? Actually I can think of several options:
All of these options have some disadvantages so I wonder what is the preferred way? Thanks in advance!
You could also use protocol-relative URLs: eg. <img src="//mystaticdomain.com/foo.png">
. For more info, see: http://www.paulirish.com/2010/the-protocol-relative-url/