|
INTERVIEW QUESTIONS
MICROSOFT
DOTNET
DETAILS
Question: How does output caching work in ASP.NET?
Answer: Output caching is a powerful technique that increases request/response throughput by caching the content generated from dynamic pages. Output caching is enabled by default, but output from any given response is not cached unless explicit action is taken to make the response cacheable. To make a response eligible for output caching, it must have a valid expiration/validation policy and public cache visibility. This can be done using either the low-level OutputCache API or the high-level @ OutputCache directive. When output caching is enabled, an output cache entry is created on the first GET request to the page. Subsequent GET or HEAD requests are served from the output cache entry until the cached request expires. The output cache also supports variations of cached GET or POST name/value pairs. The output cache respects the expiration and validation policies for pages. If a page is in the output cache and has been marked with an expiration policy that indicates that the page expires 60 minutes from the time it is cached, the page is removed from the output cache after 60 minutes. If another request is received after that time, the page code is executed and the page can be cached again. This type of expiration policy is called absolute expiration - a page is valid until a certain time.
|
|
|
Category |
DotNet Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 7012 users |
Added on |
12/21/2010 |
Views |
73305 |
Rate it! |
|
|
Question:
How does output caching work in ASP.NET?
Answer:
Output caching is a powerful technique that increases request/response throughput by caching the content generated from dynamic pages. Output caching is enabled by default, but output from any given response is not cached unless explicit action is taken to make the response cacheable. To make a response eligible for output caching, it must have a valid expiration/validation policy and public cache visibility. This can be done using either the low-level OutputCache API or the high-level @ OutputCache directive. When output caching is enabled, an output cache entry is created on the first GET request to the page. Subsequent GET or HEAD requests are served from the output cache entry until the cached request expires. The output cache also supports variations of cached GET or POST name/value pairs. The output cache respects the expiration and validation policies for pages. If a page is in the output cache and has been marked with an expiration policy that indicates that the page expires 60 minutes from the time it is cached, the page is removed from the output cache after 60 minutes. If another request is received after that time, the page code is executed and the page can be cached again. This type of expiration policy is called absolute expiration - a page is valid until a certain time. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
What is an interface and what is an abstract class? Please, expand by examples of using both. Explain why.
|
View Answer
|
|
What is CLR?
|
View Answer
|
|
What is the use of ErrorProvider Control?
|
View Answer
|
|
What’s the difference between Response.Write() and Response.Output.Write()?
|
View Answer
|
|
What is the difference between user control an custom control? What are the advantages/disadvantages?
|
View Answer
|
|
Why The JavaScript Validation Not Run on the Asp.Net Button But Run SuccessFully On The HTML Button
|
View Answer
|
|
What is Response object? How is it related to ASP’s Response object?
|
View Answer
|
|
What are the advantages and drawbacks of using ADO.NET?
|
View Answer
|
|
Difference between Panel and GroupBox classes?
|
View Answer
|
|
Difference between Panel and GroupBox classes?
|
View Answer
|
|
What are the features of ADO.Net ?
|
View Answer
|
|
How many types of exception handlers are there in .NET?
|
View Answer
|
|
What are Assemblies.
|
View Answer
|
|
Name some of the languages .NET support?
|
View Answer
|
|
What is the base class of Button control?
|
View Answer
|
|
What are the differences between ASP and ASP .Net ?
|
View Answer
|
|
What is the Main difference between ASP and ASP.NET ?
|
View Answer
|
|
How does the XmlSerializer work? What ACL permissions does a process using it require
|
View Answer
|
|
What does this do? gacutil /l | find /i “about”
|
View Answer
|
|
NET is Compile Time OR RunTime Environment?
|
View Answer
|