有多长302重定向保存在浏览器? [英] How long is a 302 redirect saved in browser?

查看:389
本文介绍了有多长302重定向保存在浏览器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于我们的网络服务器配置错误的主域发送302重定向到新的位置。我们固定的问题。当清空浏览器缓存现在一切工作正常。

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 now.

有关正常的客户,谁不清空缓存了?有多长302重定向保存在浏览器

For the "normal" client who does not empty his cache: How long is the 302 redirect kept in the browser?

推荐答案

它不应该在所有缓存,除非还有一个的Cache-Control 到期由Web服务器返回头。据 RFC 2616,第10.3.3节302找到

It shouldn't be cached at all unless there's also a Cache-Control or Expires header returned by the web server. According to RFC 2616, section 10.3.3 302 Found

请求的资源在不同的URI暂住。由于重定向可能会偶尔被改变,客户端应该继续使用Request-URI为将来的请求。如果一个缓存控制指示,或者Expires头域这种反应只缓存。

The requested resource resides temporarily under a different URI. Since the redirection might be altered on occasion, the client SHOULD continue to use the Request-URI for future requests. This response is only cacheable if indicated by a Cache-Control or Expires header field.

这篇关于有多长302重定向保存在浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆