oscache / src / webapp / filter / filterETagTest.jsp

<%@ page import="java.util.*" %>
<% boolean etag = "true".equalsIgnoreCase(request.getParameter("etag"));
   if (etag) response.addHeader(com.opensymphony.oscache.web.filter.CacheFilter.HEADER_ETAG, "W/\"12345-67890\""); %>
<head>
<title>Filter ETag Test Page</title>
<style type="text/css">
body {font-family: Arial, Verdana, Geneva, Helvetica, sans-serif}
</style>
</head>
<body>
<a href="<%= request.getContextPath() %>/">Back to index</a><p>
<hr>
<b>Current Time</b>: <%= new Date() %><br>
<b>Current Time Millis</b>: <%= System.currentTimeMillis() %><br>
<b>ETag</b>: <%= etag %><br>
</body>
</html>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.