Explaining why userAgent is not cached

This commit is contained in:
Richard Finlay Tweed 2020-06-07 13:17:23 +01:00
parent ac61080a6e
commit 55152086f3
1 changed files with 1 additions and 0 deletions

View File

@ -111,6 +111,7 @@ func (s *Server) newResponse(r *http.Request) (Response, error) {
}
response, ok := s.cache.Get(ip)
if ok {
// Not Caching the userAgent as it can vary for a given IP
response.UserAgent = userAgentFromRequest(r)
return *response, nil
}