Clojure(Script) webapp on Heroku - deployment options for gzipping static resources?

108 views Asked by At

I have a Clojure(Script) webapp deployed via Heroku - what are my options for compressing (via gzip) the static resources?

Here's what I've gathered so far:

  • ring-gzip-middleware would gzip everything, but I don't want to repeatedly do this for static resources.
  • this article suggests deploying as a regular java webapp and specifying the gzip init param for the Jetty DefaultServlet in web.xml. I'd rather keep my deployment simple w/ the Heroku Clojure buildpack if possible.
  • this thread suggests using a nginx reverse proxy. This sounds good promising, in conjunction with the nginx-buildpack - does anyone have more details about how to achieve this?
0

There are 0 answers