Updated to support pages using HTTPS using googleapis

As per ticket:#4726