octokit / octokit.net

A GitHub API client library for .NET
https://octokitnet.readthedocs.io/en/latest/
MIT License
2.62k stars 1.07k forks source link

BREAKING CHANGE (behavior): Modify caching to only attempt to update the response cache if a 2xx response code is received from GitHub #2877

Closed daverant closed 2 months ago

daverant commented 3 months ago

Resolves https://github.com/octokit/octokit.net/issues/2876

Apologies if I've filed a bug when it should come under feature/enhancement! I couldn't find any docs on response caching, but happy to update them if there are any.


Before the change?

After the change?

Pull request checklist

Does this introduce a breaking change?

nickfloyd commented 2 months ago

I am going to classify this as a breaking change due to the change in behavior in potential expectations that you point out. This is a great change, thank you for doing it! ❤️