Previously, isRobot was always returning true due to a bug in the
function and tests. This logic is now fixed.
Change-Id: Iac406355b9d3ca2a60701940e72ee197d6c32c25
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/276195
Trust: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
It's useful to have data on which requests are bots vs actual browser
requests, to help make decisions around which requests are worth caching.
An isRobot value is now logged with each request.
Change-Id: I49776deb7850e352845358643db00624a4854801
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/265137
Trust: Julie Qiu <julie@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>