mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-07-20 16:32:19 +00:00
b1ef57d32a
We need to cache NotFound responses to avoid hitting the backend whenever there's a flurry of requests for the same invalid domain. But caching any kind of error, including context cancellation, results in poisoning the cache with that error, e.g. if the domain exists but the client that requested it first did not wait for the response.