versapay/jekyll-s3 — Issue #8: Automatically gzip some files and set “Content-Encoding: gzip”
Author: bdesham
Created: 2011-12-06 19:49:34+00:00
State: open

Serving pages gzipped isn’t quite as easy with S3 as it is with a “real” web server: you have to compress the files yourself before you upload, and then [manually set](http://stackoverflow.com/questions/3384508/using-gzip-with-html-pages-served-from-amazon-s3/3384520#3384520) “Content-Encoding: gzip” in the file’s metadata on S3. It would be great if `jekyll-s3` could automatically compress certain file types (probably `*.html`, `*.css`, and `*.js`) before uploading and then set the metadata after uploading.

(Alternately, if this is too much, it would still be great if jekyll-s3 could notice gzipped files in `_site`. If a file is gzipped but its extension is not `.gz`, jekyll-s3 would infer that the user wants this page to be served as “Content-Encoding: gzip”.)

Thanks again for a great tool!