I am using the following php shuffle function code to display a list of images:
<?php
$images = array();
$images['image1'] = array("id" => "sales1", "href" => "#salesperson1", "src" => "salesteam/salesteam-jessie.png");
$images['image2'] = array("id" => "sales2", "href" => "#salesperson2", "src" => "salesteam/salesteam-anthony.png");
$images['image3'] = array("id" => "sales3", "href" => "#salesperson3", "src" => "salesteam/salesteam-nicole1.png");
$images['image4'] = array("id" => "sales4", "href" => "#salesperson4", "src" => "salesteam/salesteam-kevin.png");
$images['image5'] = array("id" => "sales5", "href" => "#salesperson5", "src" => "salesteam/salesteam-christi.png");
$images['image6'] = array("id" => "sales6", "href" => "#salesperson6", "src" => "salesteam/salesteam-thomas.png");
$images['image7'] = array("id" => "sales7", "href" => "#salesperson7", "src" => "salesteam/salesteam-melissa.png");
$images['image8'] = array("id" => "sales8", "href" => "#salesperson8", "src" => "salesteam/salesteam-nicole2.png");
shuffle($images);
foreach ($images as $singleimage) {
$singleid = $singleimage['id'];
$singlehref = $singleimage['href'];
$singlesrc = $singleimage['src'];
echo "<li><a id=\"$singleid\" href=\"$singlehref\"><img src=\"$singlesrc\" /></a></li>";
}
?>
It does not work when hitting refresh in either IE8 or Chrome. It does work just fine in Firefox. Is it a cache issue?
you can force no caching via http headers