Which one is faster? response.redirect or server.transfer
-
Server.Transfer
-
Response.Redirect
-
All the above
-
None of the above
A
Correct answer
Explanation
Server.Transfer is faster than Response.Redirect because it executes entirely on the server without a round-trip to the client browser. Response.Redirect sends a 302 response to the browser, which then makes a new request to the target URL, incurring additional network latency. Server.Transfer simply transfers execution to another page on the same server.