How long is a 302 redirect saved in browser?

后端 未结 6 1797
[愿得一人]
[愿得一人] 2021-01-01 09:56

Due to a misconfiguration of our webserver the main domain sent a 302 redirect to a new location. We fixed that issue. When emptying the browser cache everything works fine

6条回答
  •  离开以前
    2021-01-01 10:22

    Using Steve Sounder's Redirect Caching Tests tool (thanks @LeonidVasilev), it seems that the results may not be what are expected. With no expires headers or cookies, the results were as follows:

    Chrome 71: Not Cached ✔
    Firefox 64: Cached ✕
    Safari 12: Cached ✕

    So despite what RFC 2616, section 10.3.3 302 Found states, not all browsers follow these guidelines or what might be considered expected behaviour :(

提交回复
热议问题