Skip to content
Snippets Groups Projects
Commit ba60a6c5 authored by Olav Morken's avatar Olav Morken
Browse files

Disable caching of redirect responses.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@386 44740490-163a-0410-bde0-09ae8108e29a
parent 81fec9ed
No related branches found
No related tags found
No related merge requests found
......@@ -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"' .
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment