none
Any Suggestion On My Problem

    질문

  • My problem is i develop asp application contain more of technology like silverlight, jquery plugins and using in database net tiers and entrpirse library and retirve data using Handlers.ashx to javascript code using

     $.ajax({
            url: "../HttpHandlers/MyHandler.ashx?mid=6",
            dataType: 'xml',
            cache: true,
            success: function (doc) {
                $(doc).find('Total').each(function () {
    //My Code Handling There after retrive data
               });
    
            }
    
        });

    and there is another code retrive data from datapase  directly from asp page using nettires and my entity

    but my application not cach  data when i put on handler when retive data this code

     context.Response.ContentType = "text/xml";
                                            
                      
                                          context.Response.Cache.SetMaxAge(new TimeSpan(1, 0, 0));
                          context.Response.Cache.SetExpires(DateTime.Today.AddDays(1));
                          context.Response.Cache.SetCacheability(HttpCacheability.Public);
                          context.Response.Cache.VaryByParams["*"] = true;
                          context.Response.Cache.SetSlidingExpiration(true);
                                                              context.Response.Write(MyMethod("1"));

    and cahing on this data be:

    Response header/

    Cache-Control :no-cache

    Connection:Close

    Content-Length:460

    Content-Type:text/xml;

    charset=utf-8

    Date:Thu, 14 Jun 2012 12:49:18 GMT

    Expires:-1

    Pragma:no-cache

    ***********************************************

    Caching/

    Data Size:460

    Device:disk

    Expires:Thu Jan 01 1970 02:00:00 GMT+0200 (Egypt Standard Time)

    Fetch Count:84

    Last Fetched:Thu Jun 14 2012 14:49:18 GMT+0200 (Egypt Standard Time)

    Last Modified:Thu Jun 14 2012 14:49:18 GMT+0200 (Egypt Standard Time)

    *****************************

    and i made another test application  to test caching i find cachig work and no problem .

    SO i can not find reasons to this bug on my first  Application and why it close chaching 

    can you suggest to me nearlly reasons  or another way to discover this bug or another Suggestion to how improve performance on this application 

    thanks. 

    and

    • 이동됨 Wang Huang 2012년 6월 15일 금요일 오전 7:14 off topic (From:Suggestions and Feedback for the Forums)
    2012년 6월 14일 목요일 오후 2:01

모든 응답

  • Hi Berbara,

    As your post is ASP coding related question, We'd suggest posting your question in one of the asp forums

    Locataed at: http://forums.asp.net

    Hope this would be helpful.


    Thanks
    Liam Huang
    EPX Customer Support

    2012년 6월 15일 금요일 오전 7:17