PHP website file will not refresh with button, but will with ctrl+F5

240 views Asked by At

I am currently using a redirect band-aid in the header, but I need a stronger solution and I need to know why the Refresh button does not work normally. I have tried many solutions, this is the only one that keeps the page updated:

<?php
$randURL = rand(1000000,1000000000);
echo "<meta http-equiv=\"refresh\" content=\"60;URL=http://anywebsite.php?noval=".$randURL."\">";
1

There are 1 answers

0
hg.m On

This is normal behavior, if browser cache is enabled. Ctrl+F5 refreshes the page without using the cache, therefore it works for you.