Skip to content

Instantly share code, notes, and snippets.

@dbernar1
Created June 25, 2013 14:27
Show Gist options
  • Save dbernar1/5858878 to your computer and use it in GitHub Desktop.
Save dbernar1/5858878 to your computer and use it in GitHub Desktop.
Varnish - Don't cache server error responses
sub vcl_fetch {
if ( obj.status >= 500 ) {
set obj.ttl = 0s;
set obj.cacheable = false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment