Asp cache by browser : OutputCache « Page « ASP.Net






Asp cache by browser

<%@Page Language="C#"%>
<%@OutputCache Duration="10" VaryByParam="none" VaryByCustom="browser" %>
<html>
<body>

<asp:panel id="pnlTest" runat="server">
  Page executed: <% = DateTime.Now %><br />
</asp:panel>

</body>
</html>

           
       








Related examples in the same category

1.Get server time (C#)
2.Using the OutputCache Directive (VB.net)
3.Cache duration (C#)