properly cache http and https pages separately