mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-12 11:20:27 +08:00
内容压缩支持对已压缩内容重新压缩
This commit is contained in:
@@ -16,6 +16,7 @@ Vue.component("http-compression-config-box", {
|
|||||||
useDefaultTypes: true,
|
useDefaultTypes: true,
|
||||||
types: ["brotli", "gzip", "deflate"],
|
types: ["brotli", "gzip", "deflate"],
|
||||||
level: 5,
|
level: 5,
|
||||||
|
decompressData: false,
|
||||||
gzipRef: null,
|
gzipRef: null,
|
||||||
deflateRef: null,
|
deflateRef: null,
|
||||||
brotliRef: null,
|
brotliRef: null,
|
||||||
@@ -204,26 +205,33 @@ Vue.component("http-compression-config-box", {
|
|||||||
<p class="comment">选择支持的压缩算法和优先顺序,拖动<i class="icon list small grey"></i>图表排序。</p>
|
<p class="comment">选择支持的压缩算法和优先顺序,拖动<i class="icon list small grey"></i>图表排序。</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>支持已压缩内容</td>
|
||||||
|
<td>
|
||||||
|
<checkbox v-model="config.decompressData"></checkbox>
|
||||||
|
<p class="comment">支持对已压缩内容尝试重新使用新的算法压缩。</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>内容最小长度</td>
|
<td>内容最小长度</td>
|
||||||
<td>
|
<td>
|
||||||
<size-capacity-box :v-name="'minLength'" :v-value="config.minLength" :v-unit="'kb'"></size-capacity-box>
|
<size-capacity-box :v-name="'minLength'" :v-value="config.minLength" :v-unit="'kb'"></size-capacity-box>
|
||||||
<p class="comment">0表示不限制,内容长度从文件尺寸或Content-Length中获取。</p>
|
<p class="comment">0表示不限制,内容长度从文件尺寸或Content-Length中获取。</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>内容最大长度</td>
|
<td>内容最大长度</td>
|
||||||
<td>
|
<td>
|
||||||
<size-capacity-box :v-name="'maxLength'" :v-value="config.maxLength" :v-unit="'mb'"></size-capacity-box>
|
<size-capacity-box :v-name="'maxLength'" :v-value="config.maxLength" :v-unit="'mb'"></size-capacity-box>
|
||||||
<p class="comment">0表示不限制,内容长度从文件尺寸或Content-Length中获取。</p>
|
<p class="comment">0表示不限制,内容长度从文件尺寸或Content-Length中获取。</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>匹配条件</td>
|
<td>匹配条件</td>
|
||||||
<td>
|
<td>
|
||||||
<http-request-conds-box :v-conds="config.conds" @change="changeConds"></http-request-conds-box>
|
<http-request-conds-box :v-conds="config.conds" @change="changeConds"></http-request-conds-box>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div class="margin"></div>
|
<div class="margin"></div>
|
||||||
|
|||||||
Reference in New Issue
Block a user