哪些浏览器的后退按钮不会向服务器生成请求? [英] Which browsers' back button does not generate request to the server?

查看:195
本文介绍了哪些浏览器的后退按钮不会向服务器生成请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要针对浏览器测试我的Web应用程序,后退按钮不会向服务器生成请求。

I need to test my web application against a browser for which back button doesn't generate request to server.

你能举例说明这类浏览器吗?

Could you give me examples of such browsers?

推荐答案

那个不依赖于所使用的浏览器,而是依赖于发送给它的HTTP响应头。如果浏览器是由指示缓存页面的响应头,那么它将缓存页面。但是如果它被指示不缓存页面,那么它将不会缓存页面并触发实际请求。

That doesn't depend on the browser used, but on the HTTP response headers sent to it. If the browser is by the response headers instructed to cache the page, then it will cache the page. But if it is instructed to not cache the page, then it will not cache the page and fire a real request.

您可以控制服务器端的响应头。

You have control over the response headers on the server side.

这篇关于哪些浏览器的后退按钮不会向服务器生成请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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