This is a Java servlet filter (as per Servlet API 2.3). This filter lets you disable a cache for requested resources. Technically filter just add appropriate headers to incoming request and disables cache.
How to use it:
a) download cacheoffflt.jar and save it in WEB-INF/lib
b) describe this filter in web.xml:
c) describe a mapping for this filter in web.xml. E.g.:
in this example filter will be on for the each .jsp file. So for the each jsp file filter will disable caching. You can provide your own path here of course.
For downloading:
Cache Off filter: cacheoffflt.jar
See also JSOS - the largest collection of servlets and filters.