Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aondio/aad17c6f63f52af5bb214206cd70cd61 to your computer and use it in GitHub Desktop.
Save aondio/aad17c6f63f52af5bb214206cd70cd61 to your computer and use it in GitHub Desktop.
import std;
sub vcl_recv {
if (!std.healthy(req.backend_hint)) {
set req.grace = 4h;
}
sub vcl_backend_response {
# Do not have grace for healthy backends
set beresp.grace = 0s;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment