1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-08 23:26:43 +02:00

+ HTTP_ConditionalGet_Build directory change monitor, + post-processing hook in Minify (for appending timestamps to URIs, etc.)

This commit is contained in:
Steve Clay
2008-03-02 04:59:13 +00:00
parent d86d79b7d2
commit 7a3d7129b4
5 changed files with 143 additions and 3 deletions

View File

@@ -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',