Workers + R2 · Open Source

CDN for Git

GNOME had to redirect git traffic to GitHub just to save on bandwidth. There's a jsDelivr for npm, but nothing for git. Until now.

# prefix any public repo URL with gitdelivr.net
$ git clone https://gitdelivr.net/github.com/torvalds/linux
# first clone: passes through to origin at full speed
# every clone after: served from edge

# works with any forge
$ git clone https://gitdelivr.net/gitlab.gnome.org/GNOME/gtk
$ git clone https://gitdelivr.net/codeberg.org/forgejo/forgejo
<5msEdge TTFB
300+PoPs
$5/month

How it works

01
Git is content-addressable

Same clone request = same packfile. SHA-256 the request, cache the response in R2. Forever.

02
First clone passes through

Full speed to the client, zero buffering. A marker triggers cache fill on the next request.

03
Every clone after is cached

Served from R2 or Cloudflare's edge. Origin is not touched until someone pushes.

04
Refs stay fresh

Branch pointers are cached with a 60s TTL. Pushes are visible within a minute.

Security

You don't have to trust us. Git verifies every object by hash on the client side. If we flip a byte, git fsck rejects the entire pack. We're a cache, not a trust boundary.

Try it

Prefix any public git URL with this domain.

git clone https://gitdelivr.net/github.com/torvalds/linux