RadCompression causes double compression

2 posts, 0 answers
  1. J-P Minderhoud
    J-P Minderhoud avatar
    13 posts
    Member since:
    Sep 2007

    Posted 03 May 2011 Link to this post


    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.
  2. Martin
    Martin avatar
    822 posts

    Posted 04 May 2011 Link to this post

    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,
    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.

Back to Top