We are working with ionic for a year now and we are looking to optimize our server call. Our app is using an online search engine and we discovered that call made to this search engine was not compressed with gzip. Using curl we have been able to prove that we are able to toggle the compression by add the header “Accept-Encoding: gzip”. For security reason, it seems that we can set this header at call time.
So my question is the following: how can I set headers properly so my call are using the gzip compression? Did anyone had such issue? How did you solve it?