Updated cache to support mixed mode http/https protocols

At the moment, if some pages of the site are in https, and some in http, the cache stores the same version of the resources string.