Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes HTML, CSS and JavaScript and the fly likes Images keep re-downloading when re-visiting page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Images keep re-downloading when re-visiting page " Watch "Images keep re-downloading when re-visiting page " New topic
Author

Images keep re-downloading when re-visiting page

Mark Howard
Ranch Hand

Joined: Feb 14, 2001
Posts: 285
I've recently deployed a web application (using Java/JSP) but find that each time I re-visit the same page all the images I have on that are re-downloaded from the server?

My browser is set up so that newer versions are not checked every time the page is visited, and the only manipulation I perform with the images is a very simple image-swap piece of javascript (to highlight the image on mouseover)

The one thing I've noticed in the Temporary Internet Files folder is that all the images that have been downloaded when I access my site are stored with an expiry date of right-now. I'm guessing that this expiry date is used to determine whether to re-use the same image or re-download it from the server. When accessing most other sites, the expiry date is set to 'none', which suggests that it has something to do with my site rather than any external internet settings.

Any ideas on this?

Thanks
 
 
subject: Images keep re-downloading when re-visiting page
 
Similar Threads
Image storage Problem in Handset
File structure query
Apache Cache headers and 301
image in JSP page
jsp design question