Retrieving resources over HTTPS if page is HTTPS