resource_url sometimes contains protocol and sometimes not