shinypb / openkeyval

OpenKeyval.org is a completely open key-value data store, exposed as a drop-dead simple web service. The goal is to make this a very easy way to persist data in web applications.
http://openkeyval.org
Other
137 stars 35 forks source link

JS library should be served zipped, not packed #25

Open louisremi opened 12 years ago

louisremi commented 12 years ago

Dean Edward's packer has a lower compression ratio than minification+gzip, and there's a performance overhead when unpacking a packed script.

It is very easy to serve gzipped script on S3/Cloudfront: minify the script using Google's Closure Compiler, gzip the script, remove the .gz extension, upload to S3 and add "Content-Encoding: gzip" as a cutom header.