Updated cache to support mixed mode http/https protocols