title: Javascript location.replace(url) always give a cached copy in IE7
body: <p>(Sorry I accidentally deleted my original post)</p>
  
  <p>I use the following code to redirect the user to a web page:</p>
  
  <blockquote>
    <p><code>window.location.replace('my.html' + '?_=' + (new Date()).getTime());</code></p>
  </blockquote>
  
  <p>what I want to achieve is that the user should always get a fresh copy, not cached version, from the server when it's redirected from this page to my.html.</p>
  
  <p>This seems to be working fine in Firefox but not in IE7, unless I manually hit F5. Anyway to fix this? Thanks</p>
  
  <p>update: I tried location.href as suggested below and it still does not work in iE7. </p>
  
  <p>Here's more details about my problem:</p>
  
  <p>In my.html, it includes a javascript file at the begining, and in that js file, i have a global variable x. and in my.html, i call <code>alert("x value=" + x);</code>. simple enough. now I do the following: </p>
  
  <ol>
  <li>edit the js file and change the value of x. deploy the web
  application. </li>
  <li>go to the redirect page and get redirected to my.html.
  in FF, the alert shows the new value but in IE7 it still shows the old x
  value.</li>
  </ol>
  
  <p>any ideas?</p>