如何在Heroku Cedar上的Play Framework 1应用程序上启用GZIP压缩? [英] How to Enable GZIP compression on Play Framework 1 app on Heroku Cedar?

查看:141
本文介绍了如何在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆