Re: Images, ajax requests and caching

2012-03-20 Thread Bertrand Guay-Paquet
Ok you're right, it all makes perfect sense now. Thanks again. On 20/03/2012 3:27 AM, Martin Grigorov wrote: Hi, On Mon, Mar 19, 2012 at 6:18 PM, Bertrand Guay-Paquet wrote: Thanks for the explanation Martin. I don't fully understand your second paragraph though. The style/locale/variation

Re: Images, ajax requests and caching

2012-03-20 Thread Martin Grigorov
Hi, On Mon, Mar 19, 2012 at 6:18 PM, Bertrand Guay-Paquet wrote: > Thanks for the explanation Martin. > > I don't fully understand your second paragraph though. The > style/locale/variation can indeed change between ajax requests and I don't > dispute that. However, that is also the case between

Re: Images, ajax requests and caching

2012-03-19 Thread Bertrand Guay-Paquet
Thanks for the explanation Martin. I don't fully understand your second paragraph though. The style/locale/variation can indeed change between ajax requests and I don't dispute that. However, that is also the case between non-ajax requests but these don't get the anticache parameter added to t

Re: Images, ajax requests and caching

2012-03-19 Thread Martin Grigorov
Hi, The idea is if you add an image to an AjaxRequestTarget then Wicket assumes this image needs to be re-painted. This is the safer approach because otherwise the user will add it to the target and the image will not change. Then we have to explain the user that he has to do something more additi

Re: Images, ajax requests and caching

2012-03-19 Thread Bertrand Guay-Paquet
Indeed, but I don't understand how that helps in my case. NonCachingImage takes the behavior of Image one step further by always adding an "anticache" parameter to images (i.e. for ajax and normal requests). Wicket currently has : Image -> Cached for normal requests, never cached for ajax requ

Re: Images, ajax requests and caching

2012-03-18 Thread Igor Vaynberg
we have a noncachingimage subclass... :) -igor On Sun, Mar 18, 2012 at 9:33 PM, Bertrand Guay-Paquet wrote: > Hi, > > I have image resources which fetch the proper thumbnail picture stored in a > DB based on the image's file name. I used the file name instead of > parameters to make sure client-

Images, ajax requests and caching

2012-03-18 Thread Bertrand Guay-Paquet
Hi, I have image resources which fetch the proper thumbnail picture stored in a DB based on the image's file name. I used the file name instead of parameters to make sure client-side caching would work. By chance, I just discovered that the images are always reloaded on ajax requests. This i