File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Head First Android this week in the Android forum!
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

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?

wood burning stoves
subject: Images keep re-downloading when re-visiting page
It's not a secret anymore!