How to Enable GZIP compression on Play Framework 1 app on Heroku Cedar? How to Enable GZIP compression on Play Framework 1 app on Heroku Cedar? heroku heroku

How to Enable GZIP compression on Play Framework 1 app on Heroku Cedar?


Ok I've had a go at minifying and gzipping all STATIC resources - nobody seems to have attempted this yet.

Play provides a hook by means of a plugin, but it seems a little hacky as you have to set all the caching headers and stuff.

Seems to work so far though:

https://gist.github.com/2882360