开发者

Is there a way to compress output in kohana?

开发者 https://www.devze.com 2023-04-11 21:44 出处:网络
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 i

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

精彩评论

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