ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.   AddThis Social
Bookmark Button  Another Java Servlet Filter Most Web
Applications Should Have Client-Side Cache Control  by Jayson
Falkner  There are several servlet filters that most web
applications should have. A few of these filters are detailed in
my previous article "Two Filters Every Web Application Should
Have," but the theme to these types of filters is always the
same — provide some type of functionality that will seriously
help almost any web application. In the previous article, two
filters were presented: a cache filter and a compression filter.
In this article, we will code a filter that can modify HTTP
response headers with the intention of using it to modify the
client's web browser's cache. Client-side caching isn't as
obvious as server-side caching, but it can be incredibly
helpful, and it's near-trivial to implement.  Note: In this
article, a nice user-friendly introduction to servlet filt