<%@ page import="oracle.portal.provider.v2.cache.esi.ESIUtils" %>

<%
  int duration = 300;
  String [] cacheHeaders = {"accountnumber", "stock"};
  ESIUtils.setESIResponseHeaders(response, duration, 0, cacheHeaders);

  String date = new java.util.Date(System.currentTimeMillis()).toString();
%>

<html>
  <body>
<h2>
Time is <%=date%>
</h2>
This timestamp will be cached for <%=duration%> seconds.
  </body>
</html>
