I use a gzip json static file on my server (actually, it\'s my test server) and the data i receive is always compressed.
Here is my code :
$http(
You shouldn't set the request header "Accept-Encoding". This is set automatically by the browser. See this Q&A for a list a browsers that accept gzip.
On the server side, you will need to set the Content-Encoding to:
Content-Encoding: gzip
Then the response should be automatically decompressed by the browser.