• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem in page refresh, image not getting refreshed properly  RSS feed

 
anand tiwari
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The problem that i am facing is related to the jsp page refresh. I am displaying an image at the bottom of my jsp page. I am fetching the image from a particular location.

The problem is that, when i change the image icon at my folder location, its showing the older image on the page. Its only when i press 'refresh'
or start the application in a new browser instance,i can see the image getting refreshed properly.

I tried various options available in different forums like setting the page headers to remove cache entries but still its not working correctly.

Can someone please help with a proper solution.

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is the image itself that is being cached. This is normal browser behavior and is usually not a problem becasue images are seldom updated once a web app is deployed. IS there something special about this image that makes it an issue?
 
anand tiwari
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ya,
The change in the image is a very important part of the application.
Actually,mine is a game based application where this image is the image related to the sponsor of the game and is displayed at the bottom of the page showing the top 10 scores for that specific game. The sponsor of the game is managed through one other application (i.e. admin module). Admin module is responsible for handling various game specific properties which includes addding, editing and deletion of sponsors also.

So if i edit a particular sponsor image through the admin module, it should get reflected in my game application.Thats why changing of image is critical in my application.
 
Katrina Owen
Sheriff
Posts: 1367
18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"anand gateway",

Please check your Private Messages on this forum for a message from the JavaRanch Staff.

Kind regards,
Katrina Owen,
Bartender
[ July 12, 2007: Message edited by: Katrina Owen ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!