edgecase / dieter

Asset pipeline ring middleware
134 stars 22 forks source link

dieter should generate .gz files too #14

Open pbiggar opened 12 years ago

pbiggar commented 12 years ago

Jetty (and hence noir) can be configured to serve .gz files if they exist, so dieter should make them exist.

jxa commented 12 years ago

I read up briefly on this topic here http://cemerick.com/2011/04/22/adding-gzip-compression-to-a-clojure-webapp-in-30-seconds/ and he doesn't mention anything about having to write the .gz files. Are you hoping to avoid jetty having to do the gzipping?

pbiggar commented 12 years ago

See gzip at the top of: http://jetty.codehaus.org/jetty/jetty-6/apidocs/org/mortbay/jetty/servlet/DefaultServlet.html

So it looks like we need both.