i know this question has been asked many times but i still cant get this to work. I think it would help for someone to come up with a solution based around my situation.
i have a random-video.php page that generates a random video from an array, this works fine and doesn't cache in chrome:
<?php
$array = [
"http://www.mentor-distribution.com/media/Introducing_MConnect.mp4",
"http://www.mentor-distribution.com/media/hs_freedom_chair.mp4",
"http://www.mentor-distribution.com/media/quickstand.mp4",
"http://www.mentor-distribution.com/media/MFlex.mp4"
];
$randomIndex = array_rand($array);
$random = $array[$randomIndex];
?>
<iframe width="320" height="187" frameborder="0" allowfullscreen src="<?php echo htmlspecialchars($random); ?>"></iframe>
This is the section html page trying to display the random video each time, but once loaded it doesn't change video until you clear cache:
<div class="rightsidevid"><iframe width="320" height="187" src="http://mentor-distribution.com/internal/random-video.php" frameborder="0" scrolling="no" allowfullscreen></iframe></div>
If anyone can help it would be greatly appreciated. I'm sure you can achieve this by having a number at the end of the url (e.g. url?RandomGenNumber), but I am not sure how to do this.