confile / gwt-image-loader

Automatically exported from code.google.com/p/gwt-image-loader
0 stars 0 forks source link

Failed load of image does not reload image when setting URL #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try to load image with URL where no image is present
2. Load error handler is invoked corectly
3. Try reloading image on same URL (but now there is an image present),
image is still not loaded

What is the expected output? What do you see instead?
Image should be loaded if first load failed. Probably a caching issue.

What version of the product are you using? On what operating system?
1.1.1, same on Linux (Ubuntu) and Windows 

Please provide any additional information below.
Not quite sure if it is a gwt-imae-loader problem or a problem with the
browsers cache.

Simple workaround - on reload add query string parameters to URL, for
instance http://server/site/myImage.jpg?reload=true
Image is reloaded because it is not found in the image cache.

Original issue reported on code.google.com by drey....@gmail.com on 6 Dec 2009 at 11:33

GoogleCodeExporter commented 8 years ago
Tried the img.setFixedWidth(30); aswell but output is the same

Original comment by jacek.kw...@gmail.com on 3 Jul 2012 at 1:18

GoogleCodeExporter commented 8 years ago
same issue I got. Its caching issue.

I upload user file and store it as username_id.

When user 1st upload is working.

When user uploads 2nd time. Image doesnt change until I refresh.

For Temp workaround you can see this code 
http://stackoverflow.com/questions/5088539/how-to-refresh-an-image-in-gwt.

Please let me know if there is any other solution.

Original comment by milandas...@gmail.com on 5 Sep 2012 at 8:22