开发者

Is there a way to compress output in kohana?

Well, i guess there are some ways to gzip html. Add ob_start('ob_gzhandler'); 开发者_开发知识库to index.php or in the main app controller. But i hope there is a better solution. In addition i want it applied to all text outputs, i.e. css, js like it was back in CI. Maybe a module or something? Or the only way is to overwrite View::capture method and other methods in HTML-class?

Using kohana 3.2, pretty much newbie.

Oh, and i don't want to use htaccess for that. If it's possible of course.

Thanx in advance


I'd recommend using gzip compression in your webserver.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜