what happens if you say: image.setCacheable(false) before
you start using it?
By default Resources are cached and WebResources are also
sending these headers to the client:

response.setDateHeader("Expires",
System.currentTimeMillis()
+ (3600 * 1000));
response.setHeader("Cache-Control",
"max-age=" + 3600);

I think that you can cache youre images but you just have to
override configureResponse of youre resource and don't set
those headers.
Then it will only check on lastModified everytime you access
the image. And whe


On 10/27/05, SourceForge.net <[EMAIL PROTECTED]> wrote:
Bugs item #1338984, was opened at 2005-10-26 15:53
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1338984&group_id=119783

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.1
Status: Open
Resolution: None
Priority: 7
Submitted By: Jonathan Locke (jonathanlocke)
Assigned to: Nobody/Anonymous (nobody)
Summary: Image caching broken

Initial Comment:
I have an Image component where I was changing the
image with:

   Image.setImageResource(newImage);

but in latest wicket update, this is broken.  When the
new image is set, somehow the browser still displays
the old image.

I'm not sure what's wrong.  I no longer pretend to
understand all the caching options regarding image
resources.  But they're broken for this simple case now
even if more advanced cases are working.


----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1338984&group_id=119783


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop



Reply via email to