users@glassfish.java.net

Re: Modifying HTTP Header Response for JPG MIME Type

From: <glassfish_at_javadesktop.org>
Date: Thu, 01 Oct 2009 10:16:39 PDT

You want to send appropriate Expires and/or Cache-Control HTTP headers to tell caches how long your data is valid for.

Your best best is to add a filter to your application that listens to "*.jpg" and adds them.

The current behavior you are seeing is the "correct", default behavior. The browsers are checking if the resource has changed.
[Message sent by forum member 'whartung' (redrocks_at_sbcglobal.net)]

http://forums.java.net/jive/thread.jspa?messageID=366522