This is how I spend my time off? I squashed a few more bugs and got Minify 2.1.3 finally out the door. It fixes a few HTTP bugs, including working around a Safari/webkit bug that was preventing efficient cache usage. There’s also code to make it far easier to diagnose users’ URI rewriting problems when they come up (caused a lot of past headaches).
I updated mrclay.org to use it, so you can check out Minify’s HTTP handling using Mark Nottingham’s new Resource Expert Droid:
RED is a robot that checks HTTP resources to see how they’ll behave, pointing out common problems and suggesting improvements. Although it is not a HTTP conformance tester, it can find a number of HTTP-related issues.
It’s sad that such a good project is being developed not so rapidly as it can be.
Hi Steve, is minify 2.1.3 faster then typemaps? Or is it still the best thing to encode the files and server them using typemaps?
@Gilles: Type-maps/Multiviews (where files are pre-encoded) is tremendously faster than anything in PHP, but Minify was faster than mod_deflate in my (very limited) testing. The best performance and flexibility is going to come through the work to combine the two or using mod_cache as a proxy cache for Minify (I haven’t tried yet).
Hey Steve; great! This saves me some more time!
Steve, looking at the code;
* Relative URLs in CSS are automatically fixed right?
And..
> unset($output[‘headers’][‘Last-Modified’], $output[‘headers’][‘ETag’]);
* Why unset the etag header if you allready do “FileETag None”?
* Why unset the modified header?
You say this in the readme:
/mincache/f/one,two.mcss = /mincache/src/one.css + /mincache/src/two.css
Does this also work without firing PHP, and if so, how does this work? e.g. to which filename is this rewritten by the htx?
FileETag None
has no effect on PHP output. I don’t recall why I eliminated Last-Modifed at the moment.The file
/mincache/f/one,two.mcss
is an Apache type-map, which sends back whichever file is appropriate for the Accept-Encoding of the browser. On the first request, the type-map won’t exist, so mod_rewrite routes the request to gen.php, which creates it and the files it points to, and echos the content (just for that request). Once the type-map is created, all following requests are served with no PHP involvement.I’m happy to discuss more on the group.
Hello
minify used in our developments to increase performance, it is integrated into our CMS: Magix CMS
What new in version 2.1.4 beta?
Best regards