From fc8611103936da63e786ffabe9c040ef171502e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Sun, 26 Sep 2021 15:02:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=93=E5=AD=98=E6=9D=A1=E4=BB=B6=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=9C=80=E5=B0=8F=E5=86=85=E5=AE=B9=E5=B0=BA=E5=AF=B8?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/db/models/http_cache_policy_dao.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/db/models/http_cache_policy_dao.go b/internal/db/models/http_cache_policy_dao.go index 666a8f2c..808e5a4e 100644 --- a/internal/db/models/http_cache_policy_dao.go +++ b/internal/db/models/http_cache_policy_dao.go @@ -120,6 +120,7 @@ func (this *HTTPCachePolicyDAO) CreateCachePolicy(tx *dbs.Tx, isOn bool, name st Life: &shared.TimeDuration{Count: 2, Unit: shared.TimeDurationUnitHour}, Status: []int{200}, MaxSize: &shared.SizeCapacity{Count: 32, Unit: shared.SizeCapacityUnitMB}, + MinSize: &shared.SizeCapacity{Count: 0, Unit: shared.SizeCapacityUnitKB}, SkipResponseSetCookie: true, AllowChunkedEncoding: true, Conds: &shared.HTTPRequestCondsConfig{