TIMOB-16185-Use GZipInputStream if the cached content is gzip

If the cached content is 'gzip', wrap the stream with GZipInputStream to properly unzip the content.

https://jira.appcelerator.org/browse/TIMOB-16185
Why do you change it to static method?