[api] Cache HTTP 4xx server responses (except 403)
Assume that 4xx responses will be the same given the same request, so these responses should be subject to caching too. Avoids caching 403 because that is the status returned when GitHub API limit is hit. Continue not caching 5xx responses because they indicate server errors, so it's possible that a 2nd request of identical parameters succeeds.
Showing
想要评论请 注册 或 登录