How long do browsers cache HTTP 301s?

前端 未结 15 2426
囚心锁ツ
囚心锁ツ 2020-11-22 14:43

I am debugging a problem with a HTTP 301 Permanent Redirect. After a quick test, it seems that Safari clears its cache of 301s when it is restarted, but Firefox does not.

15条回答
  •  无人共我
    2020-11-22 15:23

    From Chrome 71

    To clear a permanent redirect, go to chrome://settings/clearBrowserData and from there only clearing "cached images and files" cleared the redirect.

    Chrome 48-70

    Go to chrome://net-internals. On the right of the top red status bar, click on the down arrow ▼ to open the drop-down menu, and under the "Tools" group, choose "Clear cache".

    As of version 48, this was the only thing that worked for me to clear a cached 301.

提交回复
热议问题