Skip to content

Commit 0524c4d

Browse files
committed
chore: neaten up logging
1 parent f642620 commit 0524c4d

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

internal/validationresponsehandler.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,6 @@ func (r *validationResponseHandler) HandleValidationResponse(
104104
}
105105

106106
if err != nil {
107-
r.l.LogCacheError(
108-
"Validation error; cannot serve from cache",
109-
err, req, ctx.URLKey, ctx.ToMisc(ccResp),
110-
)
111107
return nil, err
112108
}
113109

@@ -119,6 +115,7 @@ func (r *validationResponseHandler) HandleValidationResponse(
119115
// RFC 9111 §4.3.3 Handling Validation Responses (full response)
120116
// RFC 9111 §3.2 Storing Responses
121117
_ = r.rs.StoreResponse(req, resp, ctx.URLKey, ctx.Refs, ctx.Start, ctx.End, ctx.RefIndex)
118+
CacheStatusMiss.ApplyTo(resp.Header)
122119
r.l.LogCacheMiss(req, ctx.URLKey, ctx.ToMisc(ccResp))
123120
case IsUnsafeMethod(req.Method) && IsNonErrorStatus(resp.StatusCode):
124121
// RFC 9111 §4.4 Invalidation of Cache Entries

0 commit comments

Comments
 (0)