title: Html/php hard refresh
body: <p>I am trying to hard-refresh my page, since I randomize the order of my database, but when I refresh the page via the html button it doesn't work, until a bit of time has passed. I assume it is due to the web-browser's cache. it also doesn't work if I refresh it via f5, but if I use shift+f5 it works.</p>
  
  <pre><code>&lt;?php
  if(isset($_GET["genre"])) {
  $db = mysqli_connect("localhost","localhost","","test","3306");
  $genre = $_GET["genre"];
  $sql = "SELECT tittel, aar, id, genre, plot FROM gruppe3_film WHERE genre LIKE '%$genre%' ORDER BY RAND()";
  $resultat = mysqli_query($db, $sql);
  
  $rad = mysqli_fetch_assoc($resultat);
      $tittel = $rad['tittel'];
      $aar = $rad['aar'];
      $id = $rad['id'];
      $plot = $rad['plot'];
      echo "
     &lt;h2&gt;$tittel ($aar)&lt;/h2&gt;
     &lt;br&gt;&lt;a href='javascript:location.reload();'&gt;&lt;img src='../image/DBFilmCover/$id.jpg'&gt;&lt;/a&gt;
     &lt;h4&gt;$plot&lt;/h4&gt;
     &lt;hr&gt;&lt;button&gt;&lt;a href='javascript:location.reload();'&gt;&lt;div class='black'&gt;New Random $genre Movie&lt;/div&gt;&lt;/a&gt;&lt;/button&gt;";
  ?&gt;
  </code></pre>
  
  <p>As you see I currently use <code>&lt;a href='javascript:location.reload();'&gt;</code>, but I have also tried <code>javascript:window.location.href=window.location.href</code> inside href</p>