Results 1 to 2 of 2

Thread: Forcing Browser to Refresh

  1. #1
    Join Date
    Dec 2007

    Forcing Browser to Refresh

    I am constantly updating documents in my /DOC/ folder on my web server. I am noticing that old version of pdfs will show unless the user refreshes there browser while viewing this document.

    my question is what is the best practice to make sure a user is viewing the most recent document?

    I have been appending the file name with a number and that works fine but i have to change the <a href> link as well. this is getting tedious.

    I am open to any ideas.


  2. #2
    Join Date
    Nov 2003
    Jerryville, Tejas
    You could start by putting the cache control meta tags on the page with the pdf links. If that doesn't help then look into setting up the web server to send cache control headers with everything served from that folder.
    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Recent Articles