mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-21 19:19:29 +00:00
Perf: Add Cache Option
This commit is contained in:
@@ -154,7 +154,8 @@ module.exports = {
|
|||||||
algorithm: 'gzip',
|
algorithm: 'gzip',
|
||||||
test: productionGzipExtensions, // 处理所有匹配此 {RegExp} 的资源
|
test: productionGzipExtensions, // 处理所有匹配此 {RegExp} 的资源
|
||||||
threshold: 10240, // 只处理比这个值大的资源。按字节计算(楼主设置10K以上进行压缩)
|
threshold: 10240, // 只处理比这个值大的资源。按字节计算(楼主设置10K以上进行压缩)
|
||||||
minRatio: 0.8 // 只有压缩率比这个值小的资源才会被处理
|
minRatio: 0.8, // 只有压缩率比这个值小的资源才会被处理
|
||||||
|
cache: false
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user