[fix bug 1082208] Support media files and CDN.
Review fixes.