diff --git a/min/pageBuffer.php b/min/pageBuffer.php new file mode 100644 index 0000000..f364adc --- /dev/null +++ b/min/pageBuffer.php @@ -0,0 +1,92 @@ + $value) { + header($prop === '_responseCode' ? $value : "{$prop}: {$value}"); + } + return $out['content']; +} + +/** + * Get a stepped version of time with a random-like constistent offset + * + * This emulates the mtime() of a file being modified regularly. The offset + * allows you to use the same period in several instances without them all + * stepping up simultaneously. Offsets should be evenly distributed. + * + * @param int $period in seconds + * @param string $instanceId + * @return int + */ +function _steppedTime($period, $instanceId = '') { + $hashInt = hexdec(substr(md5($instanceId), 0, 8)); + $t = $_SERVER['REQUEST_TIME']; + return $t - ($t % $period) - ($hashInt % $period); +} + +ob_start('ob_minify_page'); diff --git a/min/pageConfig.php b/min/pageConfig.php new file mode 100644 index 0000000..60144c0 --- /dev/null +++ b/min/pageConfig.php @@ -0,0 +1,82 @@ + environment, + * select the option "Adjust remote timestamp with DST". + * @link http://winscp.net/eng/docs/ui_login_environment#daylight_saving_time + */ +$min_uploaderHoursBehind = 0; + + +/** + * Path to Minify's lib folder. If you happen to move it, change + * this accordingly. + */ +$min_libPath = dirname(__FILE__) . '/lib'; + + +// try to disable output_compression (may not have an effect) +ini_set('zlib.output_compression', '0'); diff --git a/min/test/pageBuffer.php b/min/test/pageBuffer.php new file mode 100644 index 0000000..cf0249a --- /dev/null +++ b/min/test/pageBuffer.php @@ -0,0 +1,96 @@ + + + +
+ + + + + + + +Browser != IE
+ + + \ No newline at end of file