onclick refresh but not from cache?
<p>I have this button to refresh the page</p>

<pre><code>echo '&lt;input type="button" value="Reload Page" 
              onClick="window.location.href = window.location.pathname;"&gt;';
</code></pre>

<p>What is the easiest way to make sure that the page is read not from cache? To use <code>Math.random()</code> Something like</p>

<pre><code>echo '&lt;input type="button" value="Reload Page"  
 onClick="window.location.href = window.location.pathname&amp;\'?t=\'&amp;Math.random();"&gt;';
</code></pre>
