<%@ Page Language="vb" %> <html> <head> <title>Cacheing Output in ASP.NET</title> <script runat="server"> Sub Page_Load() Response.CacheControl = "Public" Response.ExpiresAbsolute = DateTime.Now.AddSeconds(30) myMessage.Text = Now.ToString() End Sub </script> </head> <body> <asp:label id="myMessage" runat="server"/> </body> </html>