Skip to content

Commit

Permalink
Merge pull request mattiasgeniar#47 from denoli/master
Browse files Browse the repository at this point in the history
applied solution from aldibier
  • Loading branch information
mattiasgeniar authored Nov 20, 2017
2 parents 8b8ded4 + 1989e4b commit 858a4e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions default.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ sub vcl_hit {
return (deliver);
} else {
# No candidate for grace. Fetch a fresh object.
return (miss);
return (fetch);
}
} else {
# backend is sick - use full grace
Expand All @@ -279,12 +279,12 @@ sub vcl_hit {
return (deliver);
} else {
# no graced object.
return (miss);
return (fetch);
}
}

# fetch & deliver once we get the result
return (miss); # Dead code, keep as a safeguard
return (fetch); # Dead code, keep as a safeguard
}

sub vcl_miss {
Expand Down

0 comments on commit 858a4e2

Please sign in to comment.