You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 20, 2023. It is now read-only.
Many concurrent requests bottleneck on the access to the repository on disk.
Given that the read access dominates over write access, we can cache the responses on the HTTP level with Varnish or nuster. Taking the above API endpoint as an example, the commit SHA serves as a perfect ETag. We don't set any TTL so as to avoid producing any stale responses. The only case when such a cache would go out of date is when a client does git push --force. The cache can be then purged by making a special HTTP request from the Rust code to Varnish.