Syntax to cache the page according to the browser- Caching pages and data

Q.  If you want to cache the page according to the browser, then what will you do?
- Published on 24 Jul 15

a.
Write the given below code in aspx page.
<%@ OutputCache Duration=”500” VaryByParam=”none” VaryByCustom=”browser” %>
b.
Write the given below code in aspx page.
<%@ OutputCache Duration=”500” VaryByParam=”none” VaryByHeader=”browser” %>
c.
Write the given below code in aspx page.
<%@ OutputCache Duration=”500” VaryByParam=” browser” VaryByCustom=”none” %>
d. None of the above.

ANSWER:
Write the given below code in aspx page.
<%@ OutputCache Duration=”500” VaryByParam=”none” VaryByCustom=”browser” %>

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)