The ProxySG indicates a content encoding error when downloading a file.


<< Back to Knowledge Search

Solution

Overview

A website or page is returning a content encoding error.

After setting a block policy on executable files, the ProxySG blocks files with a multi-encoded file extension (such as xxxx.tar.gz.enc), and displays an exception page when attempting to perform a file download.


Policy Example:


;Installed Policy -- compiled at:
;    Default proxy policy is ALLOW

;Policy Rules
<Proxy>
    Deny http.response.apparent_data_type=executable

 

ProxySG exception page example:


 

Cause
Resolution

 This issue is typically caused by the OCS presenting a content encoding header of one type, but then encoding the data differently.

Workaround 1: Remove the Accept-Encoding header from outbound responses. The OCS admin should also be made aware that they are delivering incorrect data.

Here are three ways to approach the issue.

#1. Modify the Accept-Encoding header via policy.

  1. Add a new rule at the top of the web access layer.
  • Destination: Create a URL object that does a simple match on "domain.com," where "domain.com" is the site that you are having issues with.
  • Action field: Set - New - Action field > suppress headers> select request radio button> accept-encoding - ok.
  1. Install policy.

This will have the affect of removing/suppressing the client/browser's request header Accept-Encoding.

#2. Bypass cache for this site.

1. Add a new rule at the top of the web access layer.

  • Destination: Create a URL object that does a simple match on "domain.com," where "domain.com" is the site that you are having issues with.
  • Action field: Set - Bypass Cache, from the list - ok.

2. Install policy

This will have the affect of removing/supressing the client/browser's request header Accept-Encoding.

#3 Use a bypass cache CPL :

<Cache>
    url.domain="domain.com" cache(no)

 

Workaround 2: Disable the http.response.apparent_data_type policy rule.

 

Workaround 3: Contact the site administrator and request that she/he stops sending the Content-Encoding header.


Workaround
Additional Information
Bug Number
InQuira Doc IdKB4994
Attachment

Article Feedback

Hide Properties
First Published      10/01/2014
Last Modified      10/01/2014
Last Published      10/01/2014
Article Audience
Product      ProxySG
Software      SGOS 5, SGOS 6
Topic      Installation / Configuration, Policy Management
Article Number      000013920
Summary     
Was this helpful?
Comments:
 
Previous MonthNext Month
SunMonTueWedThuFriSat