Cache control: Expires (VB.net)
<%@ Page Language="vb" %>
<html>
<head>
<title>Cache control in ASP.NET</title>
<script runat="server">
Sub Page_Load()
Response.CacheControl = "Public"
Response.Expires = 2
Message.Text = Now.ToString()
End Sub
</script>
</head>
<body>
<asp:label id="Message" runat="server"/>
</body>
</html>
Related examples in the same category