-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
fix: more aggressive rate limit #1051
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
In few repos I have Recently most of them started appearing as 429. Just wondering, if this change can be the reason? Should they change something on their side? EDIT. Very likely this is the cause. If I get this right, here is how they are sending requests: https://github.com/badgen/badgen.net/blob/b58e0de1762eb0de37ab6318fb06eee32bc55796/pages/api/packagephobia.ts#L19-L20 |
What about making the API response a bit longer in cache? Currently, this response (https://packagephobia.com/v2/api.json?p=eloc) has a cache-control header: |
Sounds good. But we also need badgen to set a user agent. |
429 issue fixed in badgen/badgen.net#673 |
Thanks! I just checked, all my badges are now fixed. |
Way too many requests coming from unknown clients. This will make sure clients identify themselves with a user-agent.