diff --git a/library/includes/functions.php b/library/includes/functions.php index 27c81ebe3..6398907c9 100644 --- a/library/includes/functions.php +++ b/library/includes/functions.php @@ -1437,6 +1437,9 @@ function redirect($url) $redirect_url = $server_protocol . $server_name . $server_port . $script_name . preg_replace('#^\/?(.*?)\/?$#', '/\1', $url); + // Send no-cache headers to prevent browsers from caching redirects + send_no_cache_headers(); + // Behave as per HTTP/1.1 spec for others header('Location: ' . $redirect_url, response_code: 301); exit;