Which browser return button does not generate a server request?

I need to test my web application against a browser for which the return button does not generate a server request.

Could you give examples of such browsers?

+4
source share
2 answers

This does not depend on the browser used, but on the headers of the HTTP response sent to it. If the browser responds with response headers that are instructed to cache the page, it will cache the page. But if he is instructed not to cache the page, then it will not cache the page and run a real request.

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

+11
source

Internet explorer 6, not sure about 7/8. Make sure that your header does not contain the following meta-operators (they will force the page to reload):

<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Expires" CONTENT="-1"> 

Check this page for more information:

http://support.microsoft.com/kb/234067

+1
source

Source: https://habr.com/ru/post/1308143/


All Articles