如何使用Rails gzip网页输出? [英] How do I gzip webpage output with Rails?
本文介绍了如何使用Rails gzip网页输出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
gzips 我的网页输出的最佳Rails插件是什么?
What is the best plugin for Rails that gzips my webpage output?
修改:
我所在的公司表示他们将不会安装mod_deflate
.
The company I am hosting with has stated they will not install mod_deflate
.
推荐答案
除非您在没有其他Web服务器的情况下运行Rails应用程序(通常不是一个好主意),否则您可能应该看一下Web服务器.所有主要的网络服务器都有启用gzip的选项.例如,对于Apache,您可以使用 mod_deflate .
Unless you are running your Rails application without another webserver (which usually isn't a great idea), you should probably look at your webserver. All major webservers have options to enable gzip. For example, for Apache, you can use mod_deflate.
这篇关于如何使用Rails gzip网页输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文