HTTPS and external (CDN) hosted files?
问题 I have a page that references a couple of externally hosted javascript files - namely, jQuery on Google and YUI using YUI Loader. The trouble is when I access the page via HTTPS the browser complains of mixed insecure content, since the external javascript files are being accessed using http instead of https. What's a good way to deal with this, accessing the external jQuery and YUI Loader objects with HTTPS? 回答1: Assuming the CDN provider has an https version, you can use protocol-relative