Firefox 5 'caching' 301 redirects

后端 未结 9 687
时光取名叫无心
时光取名叫无心 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:36

    301 is just a normal cacheable response code. http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.2 says:

    This response is cacheable unless indicated otherwise. 
    

    So if you don't want it cached, your server needs to indicate otherwise through the normal headers used to control cache behavior.

    You can also clear the cache manually.

提交回复
热议问题