缓存策略增加“允许读取不完整的Partial Content”选项

This commit is contained in:
刘祥超
2024-05-07 20:04:39 +08:00
parent 12b9840b34
commit 6d44745d18
7 changed files with 51 additions and 18 deletions

View File

@@ -13,6 +13,7 @@ Tea.context(function () {
let options = this.cachePolicy.options
if (options != null && typeof options == "object" && typeof options["dir"] === "undefined") {
options["enableMMAP"] = false
options["enableIncompletePartialContent"] = true
options["dir"] = "/opt/cache"
options["memoryPolicy"] = {
capacity: {