mirror of
https://github.com/mrclay/minify.git
synced 2025-08-12 00:54:35 +02:00
+ HTTP_ConditionalGet_Build directory change monitor, + post-processing hook in Minify (for appending timestamps to URIs, etc.)
This commit is contained in:
@@ -44,6 +44,11 @@ abstract class Minify_Controller_Base {
|
||||
// if you override this, the response code MUST be directly after
|
||||
// the first space.
|
||||
,'badRequestHeader' => 'HTTP/1.0 400 Bad Request'
|
||||
|
||||
// callback function to see/modify content of all sources
|
||||
,'postprocessor' => null
|
||||
// file to require to load preprocessor
|
||||
,'postprocessorRequire' => null
|
||||
);
|
||||
}
|
||||
|
||||
|
@@ -21,7 +21,7 @@ class Minify_HTML {
|
||||
|
||||
self::$_isXhtml = (false !== strpos($html, '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML'));
|
||||
|
||||
self::$_replacementHash = 'HTTPMINIFY' . md5(time());
|
||||
self::$_replacementHash = 'MINIFYHTML' . md5(time());
|
||||
|
||||
// remove SCRIPTs (and minify)
|
||||
$html = preg_replace_callback('/\\s*(<script\\b[^>]*?>)([\\s\\S]*?)<\\/script>\\s*/i',
|
||||
|
Reference in New Issue
Block a user