Enable Page Output Caching code. - Caching pages and data
Q. You want to enable Page Output Caching in ASP.NET. What code you will write in ASPX page.
- Published on 27 Jul 15a. <%@ OutputCache Duration="30" VaryByParam="none" %>
b. <%@ OutputCache VaryByParam="none" %>
c. <%@ OutputCache Duration="30" %>
d. None of the above.
ANSWER: <%@ OutputCache Duration="30" VaryByParam="none" %>