[pkgsite] internal/api: set client error cache duration

0 views
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Jul 24, 2026, 11:47:17 AM (2 days ago) Jul 24
to Ethan Lee, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, kokoro, golang...@luci-project-accounts.iam.gserviceaccount.com, Jonathan Amsterdam, Hyang-Ah Hana Kim, golang-co...@googlegroups.com

Gopher Robot submitted the change

Unreviewed changes

1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.

Change information

Commit message:
internal/api: set client error cache duration

Establish a short cache duration for 4xx client errors to prevent
redundant calls on errors such as package not found or bad request.
Change-Id: I32dc5880d14955f081caaa6e6bbc9d951fad1adb
Auto-Submit: Ethan Lee <etha...@google.com>
Reviewed-by: Jonathan Amsterdam <j...@google.com>
kokoro-CI: kokoro <noreply...@google.com>
Files:
  • M internal/api/api.go
  • M internal/api/api_test.go
Change size: M
Delta: 2 files changed, 56 insertions(+), 2 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: pkgsite
Gerrit-Branch: master
Gerrit-Change-Id: I32dc5880d14955f081caaa6e6bbc9d951fad1adb
Gerrit-Change-Number: 805020
Gerrit-PatchSet: 3
Gerrit-Owner: Ethan Lee <etha...@google.com>
Gerrit-Reviewer: Ethan Lee <etha...@google.com>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
Gerrit-Reviewer: Jonathan Amsterdam <j...@google.com>
Gerrit-Reviewer: kokoro <noreply...@google.com>
Gerrit-CC: kokoro <noreply...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages