gzip 与 codeigniter
有没有办法用 codeigniter 进行 gzip 压缩?如果是,请分享库、插件或助手... 谢谢你!
Is there anyway to gzip with codeigniter? If yes please share Library, plugin or helper...
Thankyou!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在您的配置文件中,将
compress_output
更改为TRUE
。我认为它使用了gzip。还有这样的免责声明:
In your config file change
compress_output
toTRUE
. I think it uses gzip.There's also this disclaimer:
我在我的 网站 上遇到了同样的问题,但现在我已经通过应用以下步骤解决了这个问题
$config['compress_output']
FALSE
更改为TRUE
:$config['compress_output'] = TRUE;
现在您必须从服务器的
php.ini
启用"zlib.output_compression"
。您的前端不会收到错误。I had the same issue on my site, but now I've figured it out by applying these steps:
$config['compress_output']
FALSE
toTRUE
:$config['compress_output'] = TRUE;
Now you have to enable
"zlib.output_compression"
from your server'sphp.ini
. You will not receive error on your front-end.