What does HTTP/1.1 302 mean exactly?

后端 未结 14 2512
礼貌的吻别
礼貌的吻别 2020-12-02 05:49

Some article I read once said that it means jumping (from one URI to another), but I detected this \"302\" even when there was actually no jumping at all!

14条回答
  •  盖世英雄少女心
    2020-12-02 06:06

    A simple way of looking at HTTP 301 vs. 302 redirects is:

    Suppose you have a bookmark to "http://sample.com/sample". You use a browser to go there.

    A 302 redirect to a different URL at this point would mean that you should keep your bookmark to "http://sample.com/sample". This is because the destination URL may change in the future.

    A 301 redirect to a different URL would mean that your bookmark should change to point to the new URL as it is a permanent redirect.

提交回复
热议问题