C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Articles » .NET Framework »

Outputcache in .NET


Posted Date: 20 Jul 2004    Resource Type: Articles    Category: .NET Framework
Author: Siju.CMember Level: Silver    
Rating: 1 out of 5Points: 10



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



Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: How to pass parameter in stored procedure in VB.NET
Previous Resource: How to GET the message count of MSMQ in .NET withoutPerformanceCounter?
Return to Discussion Resource Index
Post New Resource
Category: .NET Framework


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use