Typecho 开启 Gzip
发表于 2016/02/22 更新于 2020/04/28 24 字 1 分钟
AI 摘要 由 AI 自动生成
|
修改站点跟目录 index.php,在其中查找。
if (!@include_once 'config.inc.php') {
file_exists('./install.php') ? header('Location: install.php') : print('Missing Config File');
exit;
}
添加如下内容到下一行。
/** 开启gzip压缩 */
ob_start('ob_gzhandler');