fixed caching update mechanism for changed media files, closes #398