www.webdeveloper.com
Results 1 to 3 of 3

Thread: Force Refresh and clear cache on page loading

  1. #1
    Join Date
    Jul 2006
    Posts
    1

    Unhappy Force Refresh and clear cache on page loading

    Hi,

    I have this <meta> tag included in my HTML under Head tags

    <head>
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Expires" CONTENT="0">
    </head>


    This works only in some of the IE browser versions,Can you please let me know is there any Script by which i can clear browser cache everytime it reloads.

    It doesnt relect any changes on style sheets,unless i press 'ctrl+f5' on my browser,but i cant ask my 3000 users to do so?

    regards
    Nakko

  2. #2
    Join Date
    Feb 2006
    Location
    Toronto
    Posts
    105
    Code:
    <meta http-equiv="refresh" content="0; http://www.redirecturl.com/" />
    <meta http-equiv="pragma" content="no-cache">
    
    <script type="text/javascript">
    window.location.replace('http://www.redirecturl.com/')
    </script>

    try that, i had that problem before as well, and the javascript does the job nicely.

  3. #3
    Join Date
    Feb 2010
    Posts
    49

    This loops forever

    There's something wrong here, when I tried it i tloops forever

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