Loading... 打开你模板文件的HEADER.PHP 也就是主题目录下的 将以下代码 加到 header.php的最上方就可: <?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?> 当然在其他的页面添加也可,自己去测试一下吧! 插件下载:<span class="external-link"><a class="no-external-link" href="http://www.crazycen.com/down/start-gzip.1.2.zip" target="_blank"><i data-feather="external-link"></i>http://www.crazycen.com/down/start-gzip.1.2.zip</a></span> Last modification:October 6, 2023 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 如果觉得我的文章对你有用,请随意赞赏
One comment
[...] http://www.crazycen.com/web-enabled-gzip-acceleration.html 在测试过程中,不断修正,版本至1.2 ,兼容wordpress 3.1 [...]