*** empty log message ***

svn path=/trunk/boinc/; revision=3908
This commit is contained in:
Eric J. Korpela 2004-07-20 19:20:19 +00:00
parent 15bf73b18b
commit 104b68f148
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}