This is a migrated thread and some comments may be shown as answers.

RadCompression causes double compression

1 Answer 123 Views
Compression
This is a migrated thread and some comments may be shown as answers.
J-P Minderhoud
Top achievements
Rank 1
J-P Minderhoud asked on 03 May 2011, 10:56 AM
Hi,

We've enabled RadCompression on a website that also uses an other 3rd party component which does it's own compression on it's response to AJAX requests to it's httphandler.
Because this component's gzip compression happens before the RadCompression the RadCompression causes the output to be double compressed.
When looking at the response header for this request it has a 'Content-Encoding' value of: 'gzip, gzip'. This causes the response to be dropped by browsers.

How should we handle this situation? We are not able to turn the other component's compression off.

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 04 May 2011, 04:03 PM
Hello J-P Minderhoud,

Since you can not stop the third party compression, just stop RadCompression for your website. Another option would be to disable RadCompression for particular page(s) only as explained in our documentation:

"You also have the option to disable the compression for particular pages only if necessary. To do that use the
RadCompressionSettings attribute on the page in question:"


[Telerik.Web.UI.RadCompressionSettings(HttpCompression = Telerik.Web.UI.CompressionType.None)] 
public partial class Default_Cs : System.Web.UI.Page
{
    ...
}

I hope this helps.

All the best,
Martin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Compression
Asked by
J-P Minderhoud
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or