Index: lib.http.php
===================================================================
--- lib.http.php	(révision 169)
+++ lib.http.php	(copie de travail)
@@ -174,8 +174,9 @@
 	
 	@param files		array		Files on which check mtime
 	@param mod_ts		array		List of timestamps
+	@param max_age		integer		max-age Cache-Control field
 	*/
-	public static function cache($files,$mod_ts=array())
+	public static function cache($files,$mod_ts=array(),$max_age=0)
 	{
 		if (empty($files) || !is_array($files)) {
 			return;
@@ -187,6 +188,7 @@
 		
 		rsort($array_ts);
 		$ts = $array_ts[0];
+		$max_age = (integer) $max_age;
 		
 		$since = null;
 		if (!empty($_SERVER['HTTP_IF_MODIFIED_SINCE'])) {
@@ -197,7 +199,7 @@
 		
 		# Common headers list
 		$headers[] = 'Last-Modified: '.gmdate('D, d M Y H:i:s',$ts).' GMT';
-		$headers[] = 'Cache-Control: must-revalidate, max-age=0';
+		$headers[] = 'Cache-Control: must-revalidate, max-age='.$max_age;
 		$headers[] = 'Pragma:';
 		
 		if ($since >= $ts)
@@ -216,7 +218,7 @@
 			}
 		}
 	}
-
+	
 	/**
 	@function etag
 	
