Multiple choice technology web technology

Which one is faster? response.redirect or server.transfer

  1. Server.Transfer

  2. Response.Redirect

  3. All the above

  4. None of the above

Reveal answer Fill a bubble to check yourself
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.