1

My Clojure application is deployed on Heroku along with a minified 600KB+ ClojureScript JS artifact that I'm serving as a static file at /js/main.js.

How do I enable gzip compression on http-kit to reduce the size of my JS artifact over the wire?

Petrus Theron
  • 27,855
  • 36
  • 153
  • 287

1 Answers1

0

Not supported by http-kit, usually you want to use a proxy like Nginx anyways. As you probably don't have that option with Heroku you can do the compression via ring middleware, see this issue for pointers.

Erik Dannenberg
  • 5,716
  • 2
  • 16
  • 21