diff --git a/cache.go b/cache.go index e969291c..1e17d0fe 100644 --- a/cache.go +++ b/cache.go @@ -115,3 +115,8 @@ func (c *clientCache) observeRequest(ip string, observation requestObservation) return cacheResult{score: score} } +func (c *clientCache) observeResponse(ip string, status int, points int, now time.Time) cacheResult { + if ip == "" || status != 404 || points <= 0 { + return cacheResult{} + } +