Short-circuiting — returning a response without ever reaching later middleware or the route handler — is the mechanism behind nearly every access-control and caching layer:
OPTIONS request without forwarding it further down the chain.The unifying idea: short-circuiting is what makes middleware genuinely useful for guarding expensive or sensitive work, rather than just observing requests that were always going to succeed. A pipeline where every middleware always calls next() unconditionally is really just an ordered list of side effects — the conditional short-circuit is where the actual access-control logic lives.