Skip to content

Commit

Permalink
Undo fix for mattiasgeniar#3, not supported it seems? Fixes issue mat…
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiasgeniar committed Apr 5, 2016
1 parent ab41af5 commit 476adbb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions default.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ sub vcl_hit {
# if (!std.healthy(req.backend_hint) && (obj.ttl + obj.grace > 0s)) {
# return (deliver);
# } else {
# return (miss);
# return (fetch);
# }

# We have no fresh fish. Lets look at the stale ones.
Expand All @@ -266,7 +266,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 @@ -275,12 +275,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 476adbb

Please sign in to comment.