Skip to content

Instantly share code, notes, and snippets.

@michaelklishin
Created October 7, 2011 15:45
Show Gist options
  • Save michaelklishin/1270588 to your computer and use it in GitHub Desktop.
Save michaelklishin/1270588 to your computer and use it in GitHub Desktop.
backend default {
.host = "production.s3.rubygems.org";
.port = "80";
}
sub vcl_recv {
set req.http.Host = "production.s3.rubygems.org";
set req.grace = 15m;
return(lookup);
}
sub vcl_fetch {
if (req.url ~ "^\/(prerelease_)?specs\.(\d\.)+gz$") {
set beresp.grace = 15m;
set beresp.ttl = 120s;
} else {
set beresp.grace = 15m;
set beresp.ttl = 1d;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment