Professional ASP.NET 1.1 [Electronic resources]

Alex Homeret

نسخه متنی -صفحه : 244/ 198
نمايش فراداده

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" %>