Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在构建一个REST API方法,301 Moved Permanently如果我的资源标识符得到更新,或者204 Modified在其他情况下返回。
REST API
301 Moved Permanently
204 Modified
但是在301 Moved Permanently第二次获得相同的请求后(firefox 和 chrome 中的不同行为)。
有没有办法阻止浏览器在301 Move Permanently从服务器获取响应时发送额外的请求?
301 Move Permanently