Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Compression > RadCompression causes double compression

Not answered RadCompression causes double compression

Feed from this thread
  • J-P Minderhoud avatar

    Posted on May 3, 2011 (permalink)

    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.

    Reply

  • Martin Martin admin's avatar

    Posted on May 4, 2011 (permalink)

    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.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Compression > RadCompression causes double compression