Multiple choice technology web technology

How do enable output cache for an ASP.Net page?

  1. <%@ PageCache Duration="60" %>

  2. <%@ OutputCache Duration="60" %>

  3. <%@ Cache Duration="60" %>

  4. <%@ SessionCache Duration="60" %>

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The @ OutputCache directive enables page-level output caching in ASP.NET. The Duration attribute specifies how long (in seconds) the page output should be cached. This directive must be placed at the top of the .aspx page to control server-side caching behavior.