www.webdeveloper.com
Results 1 to 4 of 4

Thread: how can i force a refresh on webpages???

  1. #1
    Join Date
    Apr 2003
    Location
    blippding (alien planet)
    Posts
    2

    how can i force a refresh on webpages???

    how can i force a full refresh of my web pages?

    I keep asking friends if they like the changes to my site hazabaza and they look at me blankly because it hasnt changed - if they do a control+refresh they then say "oh yeah its changed"

    what do you suggest I do???

    cheers

    Bob

  2. #2

  3. #3
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Just set up some HTTP headers to keep the page from caching itself.

    Code:
    <meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
    <meta http-equiv="Pragma" content="no-cache">

  4. #4
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,277
    There's no rule that says that browsers have to pay attention to your 'no-cache' instructions so you might want to add the following:

    <meta http-equiv="Date" content="-1">
    <meta http-equiv="Expires" content="-1">


    Note: HTTP headers do not support relative dates, but any illegal date is taken to have occured sometime in the past.

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