From 5ab05f4b7a20cad57388bda340ab8eb95b575ca8 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Tue, 7 May 2024 20:04:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=93=E5=AD=98=E7=AD=96=E7=95=A5=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E2=80=9C=E5=85=81=E8=AE=B8=E8=AF=BB=E5=8F=96=E4=B8=8D?= =?UTF-8?q?=E5=AE=8C=E6=95=B4=E7=9A=84Partial=20Content=E2=80=9D=E9=80=89?= =?UTF-8?q?=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/db/models/http_cache_policy_dao.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/db/models/http_cache_policy_dao.go b/internal/db/models/http_cache_policy_dao.go index 150416c2..4b08c41e 100644 --- a/internal/db/models/http_cache_policy_dao.go +++ b/internal/db/models/http_cache_policy_dao.go @@ -174,8 +174,9 @@ func (this *HTTPCachePolicyDAO) CreateDefaultCachePolicy(tx *dbs.Tx, name string } var storageOptions = &serverconfigs.HTTPFileCacheStorage{ - Dir: "/opt/cache", - EnableMMAP: false, + Dir: "/opt/cache", + EnableMMAP: false, + EnableIncompletePartialContent: true, MemoryPolicy: &serverconfigs.HTTPCachePolicy{ Capacity: &shared.SizeCapacity{ Count: 1,