1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-30 00:59:48 +02:00

+ Minify::$uploaderHoursBehind

+ fixed backtrace limit issue in Minify_HTML
+ default max-age of 30 minutes (instead of 0)
This commit is contained in:
Steve Clay
2008-07-29 03:48:10 +00:00
parent 8de36cc08f
commit 0697a120ee
6 changed files with 31 additions and 13 deletions

View File

@@ -35,6 +35,19 @@ class Minify {
// Apache default and what Yahoo! uses..
const TYPE_JS = 'application/x-javascript';
/**
* How many hours behind are the file modification times of uploaded files?
*
* The mtime of files on Windows can behind what they should be on the server.
* Immediately after modifying and uploading a file, use the touch command
* to update the mtime on the server. If the mtime jumps ahead by a
* number of hours, set this variable to that number. If the mtime moves back,
* this should not be needed.
*
* @var int $uploaderHoursBehind
*/
public static $uploaderHoursBehind = 0;
/**
* @see setCache()
* @param mixed $cache object with identical interface as Minify_Cache_File or
@@ -179,7 +192,7 @@ class Minify {
'lastModifiedTime' => self::$_options['lastModifiedTime']
,'isPublic' => self::$_options['isPublic']
);
if (null !== self::$_options['maxAge']) {
if (self::$_options['maxAge'] > 0) {
$cgOptions['maxAge'] = self::$_options['maxAge'];
}
$cg = new HTTP_ConditionalGet($cgOptions);