mirror of
https://gh.wpcy.net/https://github.com/netcccyun/easypanel.git
synced 2026-04-22 19:44:04 +08:00
32 lines
No EOL
1.2 KiB
HTML
32 lines
No EOL
1.2 KiB
HTML
{{include file='common/head.html'}}
|
|
<script type="text/javascript">
|
|
//var s = "此功能将服务器数据压缩后发送给浏览者,这将有助于提高您的网页打开速度.";
|
|
// alert(s);
|
|
function submit()
|
|
{
|
|
var gzip = $("#gzip").val();
|
|
$.get( "?c=response&a=addGzip&gzip="+gzip,function(data){ alert(data); });
|
|
}
|
|
function del()
|
|
{
|
|
var r=confirm("确认删除该项设置?");
|
|
if(r==false)return;
|
|
$.get("?c=response&a=delGzip", function(data){ alert(data); });
|
|
}
|
|
</script>
|
|
<div align="center">
|
|
<div class="wid_main mar_main" align="left">
|
|
<div class="block_top" align="left">当前位置:服务器管理 --> 开启gzip压缩</div>
|
|
<form action='javascript:submit();' method='post'>
|
|
<table class="table" cellpadding="0" cellspacing="1">
|
|
|
|
<tr>
|
|
<td>匹配Content-Type:<input name='gzip' id='gzip' value='(text/css)|(text/ht*)|(javascript)'> 注:支持正则表达式,如果不熟悉设置,默认即可
|
|
<input type='submit' class="btn" value='开启'> <input type="button" class="btn" onclick="javascript:del();" value="清除设置"></td>
|
|
</tr>
|
|
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{{dispatch c='index' a='foot'}} |