fix::Adds support for js minification and media caching

fixes #48
chore::Mearges code of js minification and media caching issue