Fix caching

Fix cache via protocol (support https)