Firefox 5 'caching' 301 redirects

后端 未结 9 708
时光取名叫无心
时光取名叫无心 2020-12-02 07:09

Is there any way to disable this \'feature\'?

For example, if a request is made to http://localhost/foo.html that I have specified to \'301\' to the roo

9条回答
  •  悲&欢浪女
    2020-12-02 07:35

    I have found a solution for this that works on Firefox 26, after having an obsolete redirect cached for over a month and a restart.

    1. On the History menu, choose Show All History.
    2. In the search, type in the domain with the cached redirect issue to bring up a list of results.
    3. Right-click on one of them and choose "Forget about this site".

    All cached pages, images and redirects for only that site will be removed from the cache. This lets you clear the redirect for your development website without clearing the rest of your cache.

    As a side note, I think Firefox should only cache redirects for a few days at most. Caching them for over a month can make a simple mistake a big problem.

提交回复
热议问题