Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't cache unknown status codes #1090

Merged
merged 1 commit into from
Jun 2, 2023
Merged

Don't cache unknown status codes #1090

merged 1 commit into from
Jun 2, 2023

Conversation

mre
Copy link
Member

@mre mre commented Jun 1, 2023

Unknown status codes should be skipped and not cached by default. The reason is that we don't know if they are valid or not and even if they are invalid, we don't know if they will be valid in the future.

The only error case I know of is currently LinkedIn, which returns a 999 status code.

@mre mre force-pushed the dont-cache-unknown-status branch 2 times, most recently from d98f0e4 to 01288a3 Compare June 2, 2023 00:32
Unknown status codes should be skipped and not cached by default. The reason is that we don't know if they are valid or not and even if they are invalid, we don't know if they will be valid in the future.
@mre mre force-pushed the dont-cache-unknown-status branch from 01288a3 to 6200d19 Compare June 2, 2023 00:40
@mre mre merged commit 5ce77e1 into master Jun 2, 2023
6 checks passed
@mre mre deleted the dont-cache-unknown-status branch June 2, 2023 00:46
@mre mre added the bug Something isn't working label Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant