Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

External image

lukas kowalski
1 decade ago Sep 08, 2011 3:50pm
Sebastian Nyholm
1 decade ago Sep 08, 2011 3:56pm
lukas kowalski
1 decade ago Sep 08, 2011 11:03pm

I Dont understand
because vaadin magicaly cached image

here is my code :

File file = new File("/usr/local/shop-storage/image/logo/logo.gif");
	FileResource fResource = new FileResource(file,getMainWindow().getApplication());
			Embedded embedded = new Embedded("SUPER", fResource);
			
			bodyLayout.addComponent(embedded,0,2, Alignment.MIDDLE_CENTER);

And its problem because when i change image in this location /usr/local/shop-storage/image/logo/ , clear browser cache and redeploy application
nothing happend i have got first image ??

its not problem with browser because i try few time redeploy and clear project and i have got the same result .
So vaddin must cached this image in war ?? its very strange because if i delete this image and redeploy i have not got any picture and its ok.
But if i paste new gif into logo folder i have got first image ??

I need solution like that:
when i change image in storage ant not reedeploy application so image change in browser but its not working like that :/

so plz any solution form my problem ?

Last updated on Sep, 8th 2011
Alexander Pchelintsev
1 decade ago Sep 09, 2011 7:34am