title: Servlet filter for browser caching?
body: <p>Does anyone know how to go about coding a servlet filter that will set cache headers on a response for a given file/content type?  I've got an app that serves up a lot of images, and I'd like to cut down on bandwidth for hosting it by having the browser cache the ones that don't change very often.  Ideally, I'd like to be able to specify a content type and have it set the appropriate headers whenever the content type matches.</p>
  
  <p>Does anyone know how to go about doing this?  Or, even better, have sample code they'd be willing to share?  Thanks!</p>