[eluser]Karman de Lange[/eluser]
FF permanent cache the standard redirect command.. sometimes not even ctrl-f5 reloads the page so you will always see the previous "cached" version of the page (the logged in one)
Try clearing your browser cache and using following custom redirect, it should prevent caching unless intentional ;-)
Code:
function my_redirect($path, $cache = false, $permanent = false) {
if (!$cache)
{
header("Cache-Control: no-store, no-cache, must-revalidate, no-transform, max-age=0, post-check=0, pre-check=0");
header("Pragma: no-cache");
header("Expires: " . gmdate('D, d M Y H:i:s') . ' GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
} else
{
header("Cache-Control: must-revalidate,proxy-revalidate,private");
header("Expires: " . gmdate('D, d M Y H:i:s', (strtotime("30 minute"))) . ' GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
}
$host = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
//$extra = 'login';
if ($permanent)
{
header('HTTP/1.1 301 Moved Permanently');
}
header("Location: http://$host$uri/$path");
exit;
}