Use Output Caching


The judicious use of output caching can provide a ten-fold performance increase, depending on whether or how much of a page can be cached and how many variations there are for different users. To enable output caching for a page, use the OutputCache directive:

  <%@ OutputCache Duration="  #ofseconds  "   Location="Any  Client  Downstream  Server  None"   VaryByControl="  control-name  " VaryByCustom="  browser   custom-string  "   VaryByHeader="  headers  " VaryByParam="parameter-name" %>  



Professional ASP. NET 1.1
Professional ASP.NET MVC 1.0 (Wrox Programmer to Programmer)
ISBN: 0470384611
EAN: 2147483647
Year: 2006
Pages: 243

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net