Product Documentation

Configuring TCP Compression Policy Expressions for Mobile Devices

May 14, 2013

Some versions of Citrix Receiver do not support compressed responses from NetScaler Gateway, even if you configure a TCP compression policy in NetScaler Gateway. You can configure a TCP compression policy to skip the compression for Android or iOS mobile devices. You can use expressions within a TCP compression policy so that responses from NetScaler Gateway through a mobile device are not compressed.

For Android devices, you can use either of the following expressions:

  • In the TCP compression profile, select NoCompress and then create this policy expression in the policy: REQ.HTTP.HEADER User-Agent CONTAINS Android
  • In the TCP compression profile, select Deflate and then create this policy expression in the policy: REQ.HTTP.HEADER User-Agent NOTCONTAINS Android

For iOS devices, you can use one of the following expressions:

  • REQ.HTTP.HEADER User-Agent NOTCONTAINS iPad
  • REQ.HTTP.HEADER User-Agent NOTCONTAINS iPhone
  • REQ.HTTP.HEADER User-Agent NOTCONTAINS iOS

For more information about configuring TCP compression policies, see How TCP Compression Policies Work.