Update code to download static content from HTTPS on https pages