All the examples of accessing google's CDN use https:// in the URL (including on Google itself) - but this has caused a problem when testing in Safari (certificate problem and also different domain).<script type=text/javascript src=https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js></script>I have switched to calling it over http instead, but just wondering if this is a mistake or security issue?
Should I use HTTP or HTTPS to reference resources on the Google CDN?
google;javascript;safari
You should probably just use src=//ajax.googleapis.com/... which is a good way to allow this to work in both http and https pages.Serving http assets in a page served via https will raise warnings in most browsers, while serving https assets in http pages usually is okay but might be slower because of the cryptology overhead.