Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2007
    Toronto Canada

    a question about refreshing images in the web browser

    I'm not sure if this is the most appropriate place to ask this kind of question - if not please give a pointer.

    I have images uploaded on some of those image sharing sites like and have posted direct image links to various forums on the internet so that the viewers see directly the images. In the future I intend to do that using my own server.

    The viewers usually revisit the same images on a regular basis - for example, some view the images every day and some every third day or so.

    I often alter the images with the latest version since those are artworks in progress by simply replacing the file on the server with a new file keeping same name so that the direct image link in the web forums still work and I don't need to edit each of my messages.

    The problem is that the web browsers will not retrieve each time the image from the server but from the hard drive of the user. I know that if the user presses the refresh button the image will be retrieved from the server but my question is what happens if the user doesn't refresh. Will the user ever see the updated image? How the browsers work when dealing with retrieving images?
    When I do that, using a Mozilla browser for example, and don't refresh it retrieves the images from my hard drive but eventually sometime later it pulls it from the server. I would like to know how does that work?

    I will greatly appreciate your help.

  2. #2
    Join Date
    Apr 2003
    It is called caching, and yes you can set how long (or short) items are cached via headers.
    John W, CISSP, C|EH
    MS Information Security and Assurance - Server Administration and Security - Managed VPS and Dedicated Servers with VIP Service

Similar Threads

  1. create address bar / browser tab images??
    By expatCanuck in forum Web Design and Content
    Replies: 2
    Last Post: 08-04-2008, 01:53 AM
  2. Refreshing content without refreshing the page (if you know what I mean)
    By BELLonline in forum Web Design and Content
    Replies: 8
    Last Post: 03-17-2007, 05:25 PM
  3. Quick PHP question on refreshing
    By galacnet in forum Programming Discussion
    Replies: 3
    Last Post: 05-23-2005, 02:33 PM
  4. Apache or browser broken images...
    By zoli in forum Hosting Security and Technology
    Replies: 8
    Last Post: 01-04-2005, 03:13 PM
  5. images cached in browser
    By jakis in forum Hosting Security and Technology
    Replies: 1
    Last Post: 05-31-2002, 12:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts