fix issues #878 and fix bug #821

fix issues #878 Add functon getKey for request/file
fix bug #821 minify file size is 0