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 built into Play Framework to support this, and Heroku doesn't seem to have a solution either.
What is the best way to start getting some compression on my app?
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:
检查Minifymod模块: http ://www.playmodules.net/module/7
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.