Fix for bug 335794. Added cache-control header (no-cache) to ensure the page doesn't get cached up by the load balancer.

This commit is contained in:
mike.morgan%oregonstate.edu 2006-08-07 04:01:11 +00:00
Родитель fb91d2b203
Коммит 3ecf29b527
1 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -4,6 +4,12 @@
* @package amo
* @subpackage docs
*/
// If we don't have our required URI, terminate the request immediately.
if (empty($_GET['uri'])) {
exit;
}
require_once('includes.php');
$uri = mysql_real_escape_string(str_replace(" ","+",$_GET["uri"]));
@ -21,7 +27,6 @@ $db->query("
", SQL_INIT, SQL_ASSOC);
if (empty($db->record)) {
echo 'nope';
exit;
} else {
$row=$db->record;
@ -66,6 +71,8 @@ if (empty($db->record)) {
",SQL_NONE);
}
// Set a no-cache header to make sure this page is never cached.
header('Cache-control: no-cache');
header('Location: '.$uri);
exit;
?>