added a feature set function for choose cdn or prepare url