访问日志中增加缓存状态

This commit is contained in:
GoEdgeLab
2021-05-12 16:31:28 +08:00
parent 369cfa941d
commit 3d52ddb3e8

View File

@@ -97,6 +97,7 @@ func (this *HTTPRequest) doCacheRead() (shouldStop bool) {
}()
this.varMapping["cache.status"] = "HIT"
this.logAttrs["cache.status"] = "HIT"
// 读取Header
headerBuf := []byte{}