Created
October 7, 2011 15:45
-
-
Save michaelklishin/1270588 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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