drips-network / app

💧 Funding that flows — Drips Frontend
https://drips.network
GNU General Public License v3.0
31 stars 17 forks source link

Error responses occasionally being cached by `cached` utility #1206

Open efstajas opened 2 weeks ago

efstajas commented 2 weeks ago

We use cached to fetch data either from cache or source of truth. There is currently no mechanism that prevents it from caching error responses returned by fetch functions that don't throw. This may result in error responses being cached, which then breaks the app until the cache key in question expires.

We need to ensure: