middleman/middleman — pull request #399 by bhollis (2012-04-28 05:32:25+00:00)
Title: Synchronize gzipped file mtimes with their source file's mtime

This addresses #380. It also skips re-gzipping when the right file is already there. By setting the mtime of the gzipped file to be the same as the original file (and setting the same mtime in the gzip header too) we maximize compatibility with Nginx's `gzip_static` extension, and we make sure unchanged gzip files don't need to be re-rsynced, even if (like me) you always use `build --clean` and end up having to re-generate your gzip files during build (since the gzip files aren't in the sitemap, so they get cleaned out).