1
0
mirror of https://github.com/mrclay/minify.git synced 2025-04-25 14:52:05 +02:00

83 Commits

Author SHA1 Message Date
Steve Clay
8de36cc08f Clarified comment. 2008-07-24 00:51:54 +00:00
Steve Clay
6b4bfe84c4 Prevent 0-byte files caused by file_put_contents + LOCK_EX. 2008-07-24 00:38:55 +00:00
Steve Clay
974f84305e Added docblock comments 2008-07-23 00:32:04 +00:00
Steve Clay
2a41ee92c1 Resolved issue 37: replaced 'setExpires' with 'maxAge' option which allows both Expires headers and conditional GETs (if a page should be reloaded in IE, e.g.) 2008-07-22 23:39:12 +00:00
Steve Clay
3ddc831f20 Completed HTTP_ConditionalGet change to accept 'maxAge' not prevent conditional GETs. Also 304 responses now have the full Cache-Control/Last-Modified/ETag headers so max-age will be honored after each 304 response. 2008-07-22 23:05:06 +00:00
Steve Clay
3f5c9f4de0 Added 'maxAge' option (removed 'setExpires') and changed behavior so that conditional GET is still implemented when max-age/Expires is sent. 2008-07-22 20:43:27 +00:00
Steve Clay
6cdfb77083 Added Minify_Lines to test suite, full docs on added methods in Minify & Minify_Lines. 2008-06-30 19:46:23 +00:00
Steve Clay
e77a1cf82c Added 'debug' option to serve() to use Minify_Lines 2008-06-28 20:23:29 +00:00
Steve Clay
46f8993292 Added Minify_Lines for use in debugging. 2008-06-28 04:33:28 +00:00
Steve Clay
9127fa750e Auto-cast source lists to array so the user needn't make an array for one file/source. 2008-06-27 21:41:37 +00:00
Steve Clay
16079919fb CSS.php fix for empty comments (/**/)
Added test with @media section: http://sourceforge.net/tracker/index.php?func=detail&aid=1961175&group_id=165715&atid=836476
2008-06-27 20:45:20 +00:00
Steve Clay
04514eefd6 + test CSS file from http://www.vladimirated.com/web-development-minify-css-using-php-and-cssmin-class 2008-06-27 19:36:50 +00:00
Steve Clay
38d22d5cc3 Corrupted cache files are now deleted. 2008-06-25 03:56:10 +00:00
Steve Clay
dcd99a1e51 docs 2008-06-25 02:59:06 +00:00
Steve Clay
7bf6df24fa 2008-06-22 15:09:14 +00:00
Steve Clay
4f615c12f3 Moved file caching to Minify_Cache_File.
Removed Cache_Lite.
Deprecated UseServerCache() in favor of setCache().
Added Groups controller to ab tests.
2008-06-22 15:08:30 +00:00
Steve Clay
a6d7115a6c HTTP_Encoder now tests decompression and allows compressed content to be within 100 bytes of target size. 2008-06-22 12:53:18 +00:00
Steve Clay
d9c75da506 phpDoc now works. Started to improve docblocks. 2008-06-18 11:44:39 +00:00
Steve Clay
bf935a9895 Default charset now UTF-8. Easier ab tests config. 2008-06-09 23:29:38 +00:00
Steve Clay
4c85da1fb3 Added/improved ab tests. Prepended "minify_" to cache filenames. 2008-06-09 20:30:11 +00:00
Steve Clay
8cde22b934 ab results for R121 2008-06-08 13:27:01 +00:00
Steve Clay
60f001c425 Rewrote Minify::serve() to use built-in cache functions and send cached output with readfile() = huge perf increase. Also only returns array iff quiet is set. Removed a few options.
Encoder.php : added option to leave out compress
Fixed unit tests for new Minify behavior and to show verbose when called directly on Windows.
2008-06-08 13:24:23 +00:00
Steve Clay
867fccb9cf More ab testing and result files 2008-06-07 23:17:16 +00:00
Steve Clay
15e21bf6d2 + type-map ab test 2008-06-04 05:15:37 +00:00
Steve Clay
6cf3d1d792 + web/tools 2008-06-04 05:12:03 +00:00
Steve Clay
c314cbecd6 + ab tests for Minify and Apache configs to serve static files.
+ web/tools directory for single file utilities
2008-06-04 05:05:41 +00:00
Steve Clay
930ad768cf + E_STRICT compliance 2008-06-01 02:52:59 +00:00
Steve Clay
457ed43590 + mod_rewrite to sniff out old IEs. Renamed before.var to before.js.var 2008-05-27 00:17:15 +00:00
Steve Clay
f4c3b6be24 + encode.php (file encoder tool) and test of Apache content negotiation 2008-05-26 17:11:48 +00:00
Steve Clay
97eaa576ed Source.php now strips leading UTF-8 BOMs and added BOMs to javascript test files to test this, and note in README. 2008-05-22 15:23:28 +00:00
Steve Clay
ae22377b26 Prep for 2.0 release. Moved JSMin to lib/. Removed Packer and tests, left only wrapper class w/ instructions. 2008-05-22 15:03:05 +00:00
Steve Clay
db91905934 - test for Caio hack (already in hacks.css) 2008-05-15 15:34:49 +00:00
Steve Clay
53fcbd9166 Fixed test_HTTP_Encoder.php 2008-05-15 15:29:59 +00:00
Steve Clay
fb4ecd2231 Moved HTTP examples into web/test 2008-05-15 15:20:33 +00:00
Steve Clay
048c689663 Reorganized examples 2008-05-15 15:03:46 +00:00
Steve Clay
e9035109c9 + BMH and MSIE filters to css/hacks.css. Minify_CSS no longer minifies RGB colors in MSIE filters. 2008-05-14 16:15:09 +00:00
Steve Clay
1c1a6f327d + YUI Compressor-style comment preservation to CSS.php, adjusted tests to match 2008-05-14 12:58:54 +00:00
Steve Clay
2cbf5c9b39 + preserveComments option to Minify_Javascript (default true), test case, and doc comments 2008-05-07 20:11:55 +00:00
Steve Clay
727f33657d Added setExpires option to Build.php example 2008-05-07 12:29:13 +00:00
Steve Clay
d6c933e80d + "//" filepath shortcut in Build.php
+ 'getContentFunc' option in Source.php for lazy loading content only when needed (e.g. from DB)
2008-03-29 03:09:41 +00:00
Steve Clay
d38f3d0219 + // shortcut for doc_root 2008-03-28 00:52:37 +00:00
Steve Clay
17455e5fbd + shortcut for specifying files in doc_root 2008-03-28 00:41:16 +00:00
Steve Clay
a714255c69 + Minify/Build.php and example 2 showing use 2008-03-27 18:51:55 +00:00
Steve Clay
cd0675f490 + Solar_Dir for better PHP compat. Moved most of minify.php code to Controller/Version1.php. + a few tests for version1/minify.php 2008-03-27 16:04:45 +00:00
Steve Clay
c15acc8782 + test_HTTP_ConditionalGet.php, phpDoc improvements, moved packer to 3rd-party, test for Minify loading fewer files for 304 responses. 2008-03-05 22:59:23 +00:00
Steve Clay
a0d48f16fb Optimized header sniffing in Encoder.php; no more regex's needed for most browsers. Updated README w/r/t test suite update. 2008-03-05 14:56:23 +00:00
Steve Clay
98530fcd57 + compression ratios in Encoder tests 2008-03-04 22:02:57 +00:00
Steve Clay
e2ad73f8be Improved/added tests, deflate preferred over gzip, improved ConditionalGet docs 2008-03-04 17:04:09 +00:00
Steve Clay
f771696d40 Started moving 3rd-party code to separate folder. Should make keeping up w/ changes easier. 2008-03-03 22:04:42 +00:00
Steve Clay
e8ac1dc8d0 Perf update for JSmin (Minify_Javascript), + phpDocs for public HTTP_* class APIs, minor Minify fix, private members changed to protected to allow easier subclassing. 2008-03-03 16:23:39 +00:00