change resource url to cdn