mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=3908
This commit is contained in:
parent
15bf73b18b
commit
104b68f148
|
@ -23,7 +23,7 @@ function start_cache($max_age, $params=""){
|
|||
ob_implicit_flush(0);
|
||||
Header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
|
||||
Header("Expires: " . gmdate("D, d M Y H:i:s",time()+$max_age) . " GMT");
|
||||
Header("Cache-Control: public, max-age=" . $max_age . ", must-revalidate");
|
||||
Header("Cache-Control: public, max-age=" . $max_age);
|
||||
} else {
|
||||
// Otherwise serve the cached version and exit
|
||||
//
|
||||
|
@ -32,7 +32,7 @@ function start_cache($max_age, $params=""){
|
|||
}
|
||||
Header("Last-Modified: " . gmdate("D, d M Y H:i:s",@filemtime($path)) . " GMT");
|
||||
Header("Expires: " . gmdate("D, d M Y H:i:s",@filemtime($path)+$max_age) . " GMT");
|
||||
Header("Cache-Control: public, max-age=" . $max_age . ", must-revalidate");
|
||||
Header("Cache-Control: public, max-age=" . $max_age );
|
||||
readfile($path);
|
||||
exit;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue