From ba60a6c5554b0e86b2d806700d0cf0c2e739d743 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Tue, 11 Mar 2008 14:19:02 +0000 Subject: [PATCH] Disable caching of redirect responses. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@386 44740490-163a-0410-bde0-09ae8108e29a --- lib/SimpleSAML/Utilities.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/SimpleSAML/Utilities.php b/lib/SimpleSAML/Utilities.php index 5d6aac31b..558779468 100644 --- a/lib/SimpleSAML/Utilities.php +++ b/lib/SimpleSAML/Utilities.php @@ -474,6 +474,10 @@ class SimpleSAML_Utilities { /* Set the location header. */ header('Location: ' . $url, TRUE, $code); + /* Disable caching of this response. */ + header('Pragma: no-cache'); + header('Cache-Control: no-cache, must-revalidate'); + /* Show a minimal web page with a clickable link to the URL. */ echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n"; echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"' . -- GitLab