It is demonstrated in the framework of a one-dimensional model for the scrape-off layer that with increasing upstream plasma density and decreasing temperature near divertor target plates a supersonic flow develops in the front of the target. This flow is an important mechanism for the transition from high-recycling regime to a weak detached state and has a significant impact on the plasma parameters, in particular, the pressure and particle flux to the plates, after detachment.