24.2. Output Caching
With output caching, the final rendered HTML of the page is cached. When the same page is requested again, the control objects are not created, the page life cycle doesn't start, and none of your code executes. Instead, the cached HTML is served. Clearly, output caching gets the theoretical maximum performance increase, because all the overhead of your code is sidestepped.
To see output caching in action, you can create a simple page that displays the current time of day. Figure 24-2 shows this page.
Figure 24.2. Displaying the time a page is served
The code for this task is elementary:
public partial class OutputCaching ...