I obtained the ICAP Best Practices content policy layer (CPL) script from article "Queued ICAP, Slowness or latency"and added it in the local policy file, but the ProxySG still redirects large objects without bypassing ICAP for the affected traffic.
In respect to the ICAP Best Practices:
<cache> url.scheme=http condition=NOICAP response.icap_service(no)
define condition NO_or_LARGE_CONTENT_LENGTH response.header.Content-Length=!"" response.header.Content-Length=!"^[0-9]{1,8}$" end condition NO_or_LARGE_CONTENT_LENGTH
define condition NOICAP condition=VIDEO_AUDIO_with_NO_or_LARGE_CONTENT_LENGTH condition=HTTPv0.9_UserAgents condition=UserAgents_with_NO_or_LARGE_CONTENT_LENGTH
end condition NOICAP
In order to have the ProxySG bypass large files regardless of other combined conditions, you will need to add the "NO_or_LARGE_CONTENT_LENGTH" condition under the "NOICAP" condition as follows:
define condition NOICAP condition=NO_or_LARGE_CONTENT_LENGTH condition=VIDEO_AUDIO_with_NO_or_LARGE_CONTENT_LENGTH condition=HTTPv0.9_UserAgents condition=UserAgents_with_NO_or_LARGE_CONTENT_LENGTH
end condition NOICAP
The newest ICAP Best Practices CPL can be found in article Content Analysis Best Practice Policy.