Wednesday, March 24, 2010

03/24: ASP.Net Caching Mechanism

 

  • Page Caching:
    • Add the following on the head of *.aspx
    • <%@ OutputCache Location="Server" Duration="60" VaryByParam="sdy;sdy1" %>

      • It means the page will only be updated only if page cache duration expired or two parameters sdy and sdy1 are changed.
      • Link : http://test.aspx?sdy=1 & sdy1=2

0 Comments:

Post a Comment

<< Home