In my web app there are a bunch of static image files that live
outside the WAR in various places on the host's file system (also
outside the purview of the httpd server too). To serve up these
images within my Wicket app, I've been reading their bytes via a File
object and returning those bytes to an Image via a
DynamicImageResource. As usual, the Image is added to the page in the
page's constructor.
This works great except for one problem...
Each time the user reloads the page, the HTML <img> gets a new "src"
attribute because a new DynamicImageResource is created each time the
page is instantiated. Thus, the browser can't cache the image. This
is bad because I want the image to be cached.
My question is: How can I provide a non-changing URL for the image
resource so the image is cacheable?
Many thanks for any help.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]