title: Javascript GeoLocation Caching
body: <p>I'm using the following to successfully capture user's location (mobile browser):</p>
  
  <pre><code>&lt;script&gt;
  if ( navigator.geolocation ) {
  navigator.geolocation.getCurrentPosition(handlePosition);
  }
  function handlePosition(pos) {
      //this passes lat/long to additional code
   }
  &lt;/script&gt;
  </code></pre>
  
  <p>This works, but often times the browser will seemingly cache the location data. The page that calls this geolocation code shows information relative to the user's location, so what happens is the user can move (change location), the page is reloaded, but the previous location data is used (showing incorrect data). Sometimes the page will have to be refreshed once or even twice for the page to use new location data.</p>
  
  <p>Does anyone know of any means to <strong>force</strong> the code to get and use "up to date" location data each time script is executed?</p>
  
  <p>FWIW, I'm experiencing problem in iOS Safari (6.1). Have not been able to test in Android yet.</p>
  
  <p>Thanks for reading and for any help.</p>