thinkphp5如何开启gzip压缩?

浏览:2357 发布日期:2017/11/22 分类:ThinkPHP5专区 关键字: tp5 gzip 页面压缩
tp5如何开启页面压缩,
入口文件加入以下代码,TP5测试无效:
define ( "GZIP_ENABLE", function_exists ( 'ob_gzhandler' ) );
ob_start ( GZIP_ENABLE ? 'ob_gzhandler' : null );
最佳答案
评论( 相关
后面还有条评论,点击查看>>