How long do browsers cache HTTP 301s?

前端 未结 15 2404
囚心锁ツ
囚心锁ツ 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:35

    There is a very simple way to remove browser cache for http redirects e.g. 301, 307 etc.

    You can open network panel in developer console in chrome. Select the network call. Right click on it and then click on Clear Browser Cache to remove the cached redirection.

提交回复
热议问题