<p>

<span style="font-size:16px;font-family:'Microsoft YaHei';"><span style="font-family:'Microsoft YaHei';font-size:16px;line-height:24px;"><span style="color:#FFFFFF;font-family:'Microsoft YaHei';font-size:16px;line-height:24px;background-color:#E56600;">以下方法为与其他kangle网友探讨所得</span></span></span> 

</p>
<p>

<span style="font-size:16px;font-family:'Microsoft YaHei';"><span style="font-family:'Microsoft YaHei';font-size:16px;line-height:24px;">由于官方论坛教程比较老旧,所以在这里整理一些心得</span><br />

</span>
</p>
<p>

<br />

</p>
<p>

<span style="font-size:16px;font-family:'Microsoft YaHei';">这里介绍两条常用的回应控制(Gzip和静态资源缓存)的设置方法,</span><span style="font-family:'Microsoft YaHei';font-size:16px;line-height:1.5;">以下设置均在kangle3311面板的 回应控制 中完成:</span> 

</p>
<p>

<span style="font-family:'Microsoft YaHei';font-size:16px;line-height:1.5;"><br />

</span>
</p>
<h2>

<span style="font-family:'Microsoft YaHei';font-size:16px;line-height:1.5;">1.开启全局Gzip,作用大家都懂的,压缩页面,提升速度之类的。</span>

</h2>
<p>

<br />

</p>

<span style="font-size:16px;font-family:'Microsoft YaHei';"> 操作方法: BEGIN 表中插入规则: </span>
<span style="font-size:16px;font-family:'Microsoft YaHei';"> 目标:继续 </span>
<span style="font-size:16px;font-family:'Microsoft YaHei';"> name:Gzip </span>
<span style="font-size:16px;font-family:'Microsoft YaHei';"> 可用的匹配模块选择:header 在对应输入框内填入 attr: <span style="background-color:#E56600;">Content-Type</span> val:<span style="background-color:#E56600;">text/ht*</span> 并勾选 regex </span>
<span style="font-size:16px;font-family:'Microsoft YaHei';"> 可用的标记模块选择:response_flag 并填入 <span style="background-color:#E56600;">gzip,cache,</span></span>

<p>

<br />

</p>
<p>

<span style="font-size:16px;font-family:'Microsoft YaHei';"><span style="background-color:#E56600;"><br />

</span></span>
</p>
<p>

<span style="font-size:16px;font-family:'Microsoft YaHei';">提交即开启了全局Gzip,如图示:</span> 

</p>
<p>

<a href="http://oss.hivps.cn/2015/01/gzip.png"><img src="http://oss.hivps.cn/2015/01/gzip.png" alt="gzip" width="733" height="204" class="alignnone size-full wp-image-66" /></a> 

</p>
<p>

<br />

</p>
<h2>

<span style="font-size:16px;font-family:'Microsoft YaHei';">2.静态资源缓存</span>

</h2>
<p>

<br />

</p>

<span style="font-size:16px;font-family:'Microsoft YaHei';"> 操作方法: BEGIN 表中插入规则: </span>
<span style="font-size:16px;font-family:'Microsoft YaHei';"> 目标:继续 </span>
<span style="font-size:16px;font-family:'Microsoft YaHei';"> name:静态资源缓存 </span>
<span style="font-size:16px;font-family:'Microsoft YaHei';"> 可用的匹配模块选择:flie_ext </span>
<span style="font-size:16px;font-family:'Microsoft YaHei';"> 在对应输入框内填入  <span style="background-color:#E56600;">apk|bmp|css|cur|doc|docx|flv|gif|ico|jpeg|jpg|js|mp3|mp4|png|rar|swf|txt|xls|zip</span> 并勾选 ignore case </span>
<span style="font-size:16px;font-family:'Microsoft YaHei';"> 可用的标记模块选择:cache_control 勾选 静态化 并填入时间 如<span style="background-color:#E56600;">84600</span>(单位秒)</span>

<p>

<span style="font-family:'Microsoft YaHei';font-size:16px;line-height:24px;">提交即开启了全局静态资源缓存,如图示:</span> 

</p>
cache

Last modification:December 13th, 2017 at 11:43 pm