Skip to content

Instantly share code, notes, and snippets.

@acdha
Created March 15, 2011 02:13
Show Gist options
  • Save acdha/870205 to your computer and use it in GitHub Desktop.
Save acdha/870205 to your computer and use it in GitHub Desktop.
Simple varnish config for boring sites
backend default {
.host = "127.0.0.1";
.port = "8080";
}
sub vcl_recv {
if (req.backend.healthy) {
set req.grace = 30s;
} else {
set req.grace = 30m;
}
}
sub vcl_fetch {
set beresp.grace = 30m;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment