[fix bug 1082208] Support media files and CDN.

Probably want to take into account snippets that use a template relying on one of these files.