Caddy `try_files`?

Thanks for replying. I have a better understanding now. So I am trying to understand the config from an earlier thread I linked to:

localhost:4000
root ./public
rewrite {
    if {path} is /
    to /proxy/{uri}
}
rewrite {
    to {path} /proxy/{uri}
}

proxy /proxy localhost:8080 {
    without /proxy
}

In this case why two rewrite statements are required? Only second rewrite block should be enough right?