Web

Web 이동방식 foward vs redirect 차이

짱미소 2022. 3. 11. 16:59

foward 방식

  • url이 변경되지 않는다.
  • request와 response가 유지된다.
  • 속도가 빠르다.
  • request 객체에 소속되어 있다.

redirect 방식

  • url이 변경된다.
  • request와 response가 유지되지 않는다.
  • 속도가 느리다.
  • response객체에 소속되어 있다.