snarfed / bridgy-fed

🌉 A bridge between decentralized social network protocols
https://fed.brid.gy/
Creative Commons Zero v1.0 Universal
486 stars 28 forks source link

add back cache for error HTTP responses #1097

Open snarfed opened 1 month ago

snarfed commented 1 month ago

We switched to HTTP caching headers in #432, which is great, but only works for 2xxes. We were caching some errors in memory too, which was useful. Should bring that back by extending flask_util.cached to pass the status codes we want to cache for.