Summary
Lack of error caching causes rate limit to be triggered thus increasing server load.
Details
Errors are not being cached (or properly cached) on Cloudflare for the ReVanced API, with multiple requests to the API repeatedly resulting in a rate-limiter kicking in to prevent being attacked.
PoC
In https://revanced.app @ 03df6ba641c0db8258b6e929208930ad86f72ffc, when the API is down, the site will retry the accessing the API every ~3 seconds (which isn't ideal since we're just unintentionally dosing the API #208)
Suggestion
Implement proper error caching for the ReVanced API.
Impact
All users using the API
Summary
Lack of error caching causes rate limit to be triggered thus increasing server load.
Details
Errors are not being cached (or properly cached) on Cloudflare for the ReVanced API, with multiple requests to the API repeatedly resulting in a rate-limiter kicking in to prevent being attacked.
PoC
In https://revanced.app @ 03df6ba641c0db8258b6e929208930ad86f72ffc, when the API is down, the site will retry the accessing the API every ~3 seconds (which isn't ideal since we're just unintentionally dosing the API #208)
Suggestion
Implement proper error caching for the ReVanced API.
Impact
All users using the API