OutputCompression doesn't work

11 posts, 0 answers
  1. Dirk Eberhardt
    Dirk Eberhardt avatar
    18 posts
    Member since:
    Jul 2009

    Posted 02 Dec 2009 Link to this post

    Good Morning,
    if I set the "OutputCompression" in the RadScriptManager Control to "AutoDetect" or "Forced" there is no different in the size of the "Telerik.Web.UI.WebResource.axd" File (about 500kb!!!).

    I have everytime the same Filesize of 500kb, what ever which value ("Disabled", "AutoDetect" or "Forced") I use.

    My System:
    Win 2008 Server
    IIS 7
    Telerik 2009.2.701.35

    Any ideas how to fix that? Must I configure something else to enable the OutputCompression?

    Thanks in advance.

    Regards Dirk
  2. Dirk Eberhardt
    Dirk Eberhardt avatar
    18 posts
    Member since:
    Jul 2009

    Posted 02 Dec 2009 Link to this post

    After a IIS reboot it work's.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dirk Eberhardt
    Dirk Eberhardt avatar
    18 posts
    Member since:
    Jul 2009

    Posted 03 Dec 2009 Link to this post

    Hello,
    it seem like it still not work.

    I tested it on our Inhouse Webserver, there it works. (Telerik.Web.UI.WebResource.axd Filesize of about 130kb).

    On the server of our customer the compression doesn't work. It's everytime the same Filesize of about 500kb, never mind which compression mode ("Disabled", "AutoDetect" or "Forced").

    In the include path of WebResource.axd file the compress parameter is okay!!
    Url: "http://www.MYWEBSITE.com/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ScriptManager1_HiddenField&compress=1&..."

    The Website is excatly the same, also the Web.config File and the Master Template where the ScriptManager is included.

    Have I to configure something else? In the IIS maybe?

    EDIT: I have the same problem on another website. If I call the site from our development server (RadControls installed on this Server) over LAN, the compression works fine. If I call the same site from a webserver in the internet (only "Telerik.Web.UI.dll" in the BIN directory) over WAN the compression doesn't work!!??


    Thanks in advance for your Help!

    Regards
    Dirk
  5. T. Tsonev
    Admin
    T. Tsonev avatar
    2772 posts

    Posted 04 Dec 2009 Link to this post

    Hello Dirk,

    I've replied to your support ticket, but I'm also posting the answer here for reference:

    We have indeed identified an issue with the RadScriptManager handler that can lead to such behavior.
    The bug is fixed in the official Q3 release, but if you can't upgrade at the moment you can also use the workaround from this forum:

    http://www.telerik.com/community/forums/aspnet-ajax/scriptmanager-and-stylesheetmanager/the-telerik-web-ui-webresource-axd-handler-can-return-uncompressed-content-for-browsers-that-accept-gzip-encoding-and-vice-versa.aspx

    We apologize for any inconvenience caused.

    Regards,
    Tsvetomir Tsonev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Yvonne Patakidou
    Yvonne Patakidou avatar
    9 posts
    Member since:
    Jun 2009

    Posted 18 Mar 2010 Link to this post

    Hello,

    I have the same problem with Dirk. I have the latest release of Telerik (2010) and I use as  web server  windows 2008 (iis 7) and client IE 8 windows xp or IE 7 windows 2003 . The compression of scripts  (Telerik.Web.UI.WebResource.axd?) is not working.Everytime the same Filesize of about 1MB, never mind which compression mode ("Disabled", "AutoDetect" or "Forced') . In Firefox the compressed file size is about 200kb.
    And another issue that I noticed: I have a page with many kind of controls (tabstrip,multipage, windowmanager,editor,textboxes,dropdownlists,buttons,dates,etc) . Many of them are not visible  some other  are loaded dynamically every time. When I open the page for the first time I understand that it is loading the scripts for the first time, so I have to wait, but when I reopen the page with different parameters , and it loads dynamically some checkboxes,textboxes, the browser downloads again the script file is saved in temporary files, so I have to wait again...So in temporary files I have 3-4 files with the same size and name and url ( ie
     http://wssrv/Adminnew/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=2&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a0d787d5c-3903-4814-ad72-296cea810318%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.1.309.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a30afb63f-e6ac-41db-9851-11879733de0a%3a16e4e7cd%3aed16cbdc%3a874f8ea2%3af7645509%3a24ee1bba%3a19620875%3a33108d14%3abd8f85e4%3a30f1f089%3ae330518b%3a1e771326%3a8e6f0d33%3a6a6d718d%3aaa288e2d%3ab7778d6c%3ae085fe68%3a58366029%3ac08e9f8a%3a1bb784d4 )

    I use in maste page the below code
         <telerik:RadScriptManager ID="RadScriptManager1" Runat="server" ScriptMode="Release" EnableScriptCombine="true" OutputCompression="Forced">  
         </telerik:RadScriptManager> 
        <telerik:RadStyleSheetManager  ID="RadStyleSheetManager1" runat="server" EnableStyleSheetCombine="true" OutputCompression="Forced">  
        </telerik:RadStyleSheetManager> 

    Also I use the radcompression in web.config
       <modules> 
          <remove name="ScriptModule" /> 
          <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
            <add name="RadCompression" type="Telerik.Web.UI.RadCompression" /> 
        </modules> 

    Finally, I use the radcompression in viewstate , in the browser file
    <browsers> 
        <browser refID="Default">  
            <controlAdapters> 
                <adapter controlType="System.Web.UI.Page" adapterType="Telerik.Web.UI.RadHiddenFieldPageStateCompression" /> 
                <!--Uncomment the following line to use SessionStateCompression and remove ViewState from the page--> 
                <!--<adapter controlType="System.Web.UI.Page" adapterType="Telerik.Web.UI.RadSessionPageStateCompression" />--> 
            </controlAdapters> 
        </browser> 
    </browsers> 
    (If I enable the radsessionpagestatecompression , after a second ajax postback, the viewstate is lost, this is another issue)

    and the compression for static files is enabled on iis 7.

    So what do you propose?
    Thanks in advance
    Yvonne
  7. T. Tsonev
    Admin
    T. Tsonev avatar
    2772 posts

    Posted 18 Mar 2010 Link to this post

    Hi Yvonne,

    Can you, please, record the browser session using FiddlerCap, so we can look into the compression issue.

    Every unique combination of controls on the page will produce an unique script. In such scenario it might be better to disable script combining for this particular page. This way individual files will be cached at the price of a higher initial load time.

    As for the RadCompression issue, you'll most likely have to increase the session history size. More information here: http://msdn.microsoft.com/en-us/library/ms228249.aspx

    Best wishes,
    Tsvetomir Tsonev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  8. Yvonne Patakidou
    Yvonne Patakidou avatar
    9 posts
    Member since:
    Jun 2009

    Posted 19 Mar 2010 Link to this post

    Hello again,

    Thank you for you advise, the disabling script combining for the pages, worked just fine and now the time loading is reduced. About the compression issue we recorded some requests with Fiddler and I ll open a support ticket with attachment.

    About the  enabling of  radsessionpagestatecompression , viewstate is lost because telerik controls use frames and modal dialogs windows , so session is confused and viewstate is lost..I read about this in www, the best solution is to save viewstate with a unique id to db  (recommended for web farms) or cache..

    Thanks again
    Yvonne
  9. Chad
    Chad avatar
    1 posts
    Member since:
    Jan 2009

    Posted 20 Aug 2010 Link to this post

    Telerik,

    My web site is peforming very slow over a dialup connection. It appears that the Telerik.Web.UI.Resouce.axd file is downloaded for each request made to my page. This file is usually over 700K.

    Is there anyway I can reduce this file size? I saw in the forum that maybe a bug in the RadScriptManager that does not compress content for browsers that accept compressed formats.  Instead of upgrading to a newer version, someone posted a work around for this by adding the following to the global.asax file. 

    Protected

     

    Sub Application_PostRequestHandlerExecute(ByVal sender As Object, ByVal e As EventArgs)

     

     

    Dim app As HttpApplication = DirectCast(sender, HttpApplication)

     

     

     

    If Not app.Request.RawUrl.Contains("Telerik.Web.UI.WebResource.axd") Then

     

     

    Return

     

     

    End If

     

     

     

    Dim cachePolicy As HttpCachePolicy = app.Response.Cache

     

    cachePolicy.VaryByHeaders(

    "User-Agent") = True

     

     

    End Sub

     


    I have added this code, but the axd file is still over 700KB when I look in temporary internet files. 

    Chad 
  10. T. Tsonev
    Admin
    T. Tsonev avatar
    2772 posts

    Posted 25 Aug 2010 Link to this post

    Hi Chad,

    The actual compressed size transmitted over the wire will be different with compression applied. The file size will be the same, though, as it's stored uncompressed. You can observe the traffic using tools such as Fiddler.

    The Telerik CDN is worth trying in your case too. It uses a globally distributed content delivery network to serve the control resources from end-points that are closer to your customers. You need to have the latest 2009 Q3 release or newer to use it.

    I hope this helps.

    All the best,
    Tsvetomir Tsonev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  11. PRATIK
    PRATIK avatar
    1 posts
    Member since:
    Sep 2010

    Posted 16 Dec 2010 Link to this post

    Where can I find the browser file to add the followig code: Is it not in the web.config?

    <browsers>  
     
    <browser refID="Default">   
       
    <controlAdapters>  
         
    <adapter controlType="System.Web.UI.Page" adapterType="Telerik.Web.UI.RadHiddenFieldPageStateCompression" />  
       
    </controlAdapters>  
     
    </browser>  
    </browsers>
  12. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 17 Dec 2010 Link to this post

    Hi,

    You may add such a file to your application trough the Visual Studio templates - see the attached screenshot for details.

    Kind regards,
    Helen
    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
UI for ASP.NET Ajax is Ready for VS 2017