Cache, security and domains fixes