如何在 Heroku Cedar 上的 Play Framework 1 应用程序上启用 GZIP 压缩? [英] How to Enable GZIP compression on Play Framework 1 app on Heroku Cedar?
本文介绍了如何在 Heroku Cedar 上的 Play Framework 1 应用程序上启用 GZIP 压缩?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想为公共资产和 HTTP 响应启用 GZIP 压缩以提高性能.我的网站有很多移动访问权限.
I'd like to enable GZIP compression for public assets and HTTP responses for performance. My site has a lot of mobile access.
据我所知,Play Framework 中没有任何内容来支持这一点,Heroku 似乎也没有解决方案.
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?
推荐答案
查看:https://gist.github.com/1317626
这篇关于如何在 Heroku Cedar 上的 Play Framework 1 应用程序上启用 GZIP 压缩?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文