优化代码

This commit is contained in:
刘祥超
2022-02-15 16:44:39 +08:00
parent f50113517a
commit 4331223916
10 changed files with 36 additions and 108 deletions

View File

@@ -21,7 +21,7 @@ import (
func (this *HTTPRequest) doCacheRead(useStale bool) (shouldStop bool) {
this.cacheCanTryStale = false
cachePolicy := this.ReqServer.HTTPCachePolicy
var cachePolicy = this.ReqServer.HTTPCachePolicy
if cachePolicy == nil || !cachePolicy.IsOn {
return
}