CSS Minifiers Comparison

compared CSSTidy with best compression, YUICompressor and MS’ Ajaxmin. The verdict is still the same – CSSTidy looks the best, but there really isn’t that big of a difference between the three (and virtually no difference between YUIC and Ajaxmin), especially if you take into account gzipping.

Still on average you get about 35% size reduction when you minify and 80% when you gzip the minified CSS. Meaning when all is done your users only download 19-20% of what they would normally do if you don’t perform these simple optimizations.

via CSS minifiers comparison / Stoyan’s phpied.com.

gzip support for Amazon Web Services CloudFront

With the recent announcement of Custom Origin support in CloudFront it is now possible to use the standard HTTP Accept-Encoding method for serving gzipped content if you are using a Custom Origin. Although not specifically mentioned in the release announcement you can verify this in the Custom Origins Appendix of the CloudFront Developer Guide. CloudFront will now forward the Accept-Encoding HTTP header to your origin server where you can ensure the appropriate content is served based on the supported encodings. CloudFront will then cache multiple versions of this content, the uncompressed version and the gzipped version and serve these to clients depending on the value of their Accept-Encoding header for all future requests.

via gzip support for Amazon Web Services CloudFront – nomitor.

mod_pagespeed for Apache

mod_pagespeed is an open-source Apache module that automatically optimizes web pages and resources on them. It does this by rewriting the resources using filters that implement web performance best practices. Webmasters and web developers can use mod_pagespeed to improve the performance of their web pages when serving content with the Apache HTTP Server.

via mod_pagespeed Overview.

Why MySQL timestamp is 24 seconds different from PHP

You may find that timestamp value returned by MySQL UNIX_TIMESTAMP() function is 24 seconds grater than those returned by PHP functions and classes like strtotime(), mktime(), DateTime::getTimestamp(), Zend_Date::getTimestamp().

via Why MySQL timestamp is 24 seconds different from PHP | Pumka.net Blog.

Turns out MySQL applies leap seconds, but PHP doesn’t.