Website returns 302 instead of 200

前端 未结 6 921
深忆病人
深忆病人 2021-02-07 23:38

Well this one freaks me out. I used a Http Header check tool to check the headers of my webpage and guess what. In every request the response was 302 instead of 200.

         


        
6条回答
  •  忘了有多久
    2021-02-07 23:52

    In ASP.Net we can redirect by using Response.Redirect & Server.Transfer. If we go with server.Transfer the status code 302 will never hit & directly hits the 200. If we go with Response.Redirect it passes from 302 to 200 as response.. Which is nothing but roundtrip.

提交回复
热议问题