[NFR]Add functon getKey for request/file

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