This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

problem in page refresh, image not getting refreshed properly

 
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
 
Marshal
Posts: 67289
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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.
 
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 ]
 
Where all the women are strong, all the men are good looking and all the tiny ads are above average:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!