Output caching allows you to cache the results of a request in a memory, the subsequent request for the page are served from the cached result, thus improving the performance.
For enabling outputcache write the following lines of code
<%@OutputCache duration="60" VarbyParam="None" location="any"%>
Duration :- specifies the number of minutes result is cached.
VarbyParam is a list of semicolon-separated strings used to vary the output cache. By default, these strings correspond to a query string value sent with GET method attributes, or a parameter sent using the POST method
Location
Any
The output cache can be located on the browser client (where the request originated), on a proxy server (or any other server) participating in the request, or on the server where the request was processed. Client
The output cache is located on the browser client where the request originated. Downstream
The output cache can be stored in any HTTP 1.1 cache-capable devices other than the origin server. This includes proxy servers and the client that made the request. None
The output cache is disabled for the requested page. Server
The output cache is located on the Web server where the request was processed. ServerAndClient
The output cache can be stored only at the origin server or at the requesting client. Proxy servers are not allowed to cache the response
|
No responses found. Be the first to respond and make money from revenue sharing program.
|