php 中使用gzip
<br /><?php
$file=$_GET["file"];
$type=strtolower(strrchr($file, "."));
@ob_start('ob_gzhandler');
if($type==".css") {
header ("content-type: text/css; charset: utf8");
}else if($type==".js"){
header ("content-type: text/javascript; ch
原创
2011-02-23 13:45:00 ·
2636 阅读 ·
0 评论