Daskiworks / ghwatch

This app for Android allows you to follow GitHub notifications directly from your device.
Apache License 2.0
25 stars 7 forks source link

Use gzip compression for GitHub REST API call #97

Closed velias closed 6 years ago

velias commented 6 years ago

Check if http client used to call REST API handles Accept-Encoding: gzip request header to save network bandwidth by default. Implement the compression if not used.

velias commented 6 years ago

BTW size of one notification info in list of notification v3 REST response is about 5kB!

velias commented 6 years ago

gzip compression implemented, looks like it may save lots of bandwidth. For my new notifications API call with about 70 notifications returned it decreases wire thansferred size from 258kB to 16kB!

laughedelic commented 6 years ago

Cool! 👏