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

Enable caching of static files.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2419 44740490-163a-0410-bde0-09ae8108e29a
parent 21b74c41
No related branches found
No related tags found
No related merge requests found
......@@ -164,6 +164,10 @@ try {
header('Content-Type: ' . $contentType);
header('Content-Length: ' . $contentLength);
header('Cache-Control: public,max-age=86400');
header('Expires: ' . gmdate('D, j M Y H:i:s \G\M\T', time() + 10*60));
header('Last-Modified: ' . gmdate('D, j M Y H:i:s \G\M\T', filemtime($path)));
readfile($path);
exit();
......
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