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

cache 404 responses from GitHub API #1068

Merged
merged 1 commit into from
Feb 25, 2020
Merged

Conversation

minrk
Copy link
Member

@minrk minrk commented Feb 25, 2020

adds max_age support to Cache type

this avoids DOS against our GitHub API limit from a flood of requests for a repo or ref that doesn't exist (this happened earlier this week, I suspect from an eventstream API consumer, given the request rate).

404s are cached for five minutes.

adds max_age support to Cache type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants