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

前端 未结 3 379
臣服心动
臣服心动 2020-12-31 12:44

I\'d like to enable GZIP compression for public assets and HTTP responses for performance. My site has a lot of mobile access.

As far as I can tell, there is nothing

相关标签:
3条回答
  • 2020-12-31 13:17

    Check out: https://gist.github.com/1317626

    0 讨论(0)
  • 2020-12-31 13:20

    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

    0 讨论(0)
  • 2020-12-31 13:41

    Check Minifymod module: http://www.playmodules.net/module/7

    0 讨论(0)
提交回复
热议问题