Closed wakim closed 10 years ago
Hey @wakim; thanks for the suggestion here. Would you want an option in your user settings to include the GZip header? Maybe an option like "Data saver; compress responses from HN" so that users concerned about the data can try and remedy it as such?
An preference entry for this is a great option.
Give me a few moments to look into it, and I'll see how easily one can be added!
Good news @wakim; seems like all that's necessary is to add the 'Accept-Encoding: gzip' header to these lines and let the user's preferences toggle the option. I'll do some hacking on it, and hopefully have you a working version by tonight!
Thanks for the fast support!!
PR #63 adds the Accept-Encoding: gzip
to all requests that hit news.ycombinator.com
, but there's still the issue of all the WebView
instances (articles loaded in background for in-app viewing) being uncompressed.
Support for WebView
encoding headers added.
Thanks for the bug report @wakim! I'll get in touch with @bishopmatthew and see if he can deploy a new version to the Play Store soon.
I use alot the app on my phone and one feature i suggest is to use gzip header on jsoup Connection. Because sometimes, not in home, i use 3g/4g and the app is using too much data in comparison with other apps.
Thank you.