cdn code refactor
Merge pull request #371 from zengwei0771/master

cdn code refactor