There is little you can do on the server to influence this, other than somehow transfer (dummy) data while working on a request to prevent the browser from resetting a connection.
In the activity-on-arrow network, there are essential differences between positive activity and dummy activity. The main function of dummy activity is to transfer the logical relationship in the work.