[fix bug 1082208] Support media files and CDN.

Could just return here and below instead of using the variable.