This is a Java servlet filter (as per Servlet API 2.3). This filter lets you add Last-Modified header to the response. So you can force browser send next time If-Modified-Since header and use that information in your cache solutions. See also If-Modified filter.
How to use it:
a) download lastmodflt.jar and save it in WEB-INF/lib
b) describe this filter in web.xml.
d) describe a mapping for this filter in web.xml. E.g.:
in this example filter will be on for the each .jsp file in /a subdirectory. It means that for files from this directory response will provide Last-Modified header.
For downloading:
Last-modified package: lastmodflt.jar
See also:
Response filter - add headers to your requests.
JSOS - the largest collection of servlets and filters.
Related links: