How to force Opera to refresh the page after clicking Back

Click the browser Back button instead to return me to the previous URL and refresh the page, the Opera pulls the page from its cache.

Searched the Internet, found things don't work example:

header('Pragma: no-cache');<br> header("Cache-Control: no-cache, must-revalidate");<br> header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");<br>
and
meta http-equiv="Cache-Control" content="no-cache, no-store, must - revalidate" <br> meta http-equiv="Pragma" content="no-cache" <br> meta http-equiv="Expires" content="-1"<br>

not working.

How to overcome this?
October 8th 19 at 00:26
6 answers
October 8th 19 at 00:28
If you find a way, then don't tell anyone please. I do not want to see this behavior everywhere :)
I agree (: - lisa_Corw commented on October 8th 19 at 00:31
October 8th 19 at 00:30
And I have a question. Here, see 2 situations:

1) the user has opened your page, switched to another tab, went and drank tea, and was porugal, returned, switched to the tab with the legacy hours ago data
2) the user left your page on the link, clicked Back and saw a bit of outdated information

If you want to solve the problem 2, why not solve the actual problem boee 1?

To solve you can. when the page loads, make Ajax request to server and in case there are more new information Ajax to update it.
I, as a user, this mode is useful. Because I don't like your idea. the download speed is more important. If I wanted to refresh the page, I have pressed F5 for example. - lisa_Corw commented on October 8th 19 at 00:33
And I should add, not only Opera caches pages in the history, it has, for example, will cache images, not quite as required by the standard, and to do less queries. And she does it not simply so, but because 99% of the web masters are illiterate and are not able to optimally adjust the impact of the content on your server. Pot th Opera users enjoy fast download speeds and lack of advertising, and users of drugih browsers looking at a white screen and spinning circle. - antonette.Gislas commented on October 8th 19 at 00:36
And as such if for example I look private information, press the button always log out, I see that he logged out and quit. Comes another person clicks the back button and see my private information.
But the question now is not what ideology it adheres to the Opera, and for good or bad. The question is how can I as a developer to influence this. It would be logical to manage these defined headers in the server response, or metainformacii in the HTML. But my experiment with it failed. - antonette.Gislas commented on October 8th 19 at 00:39
If another person comes behind your computer and clicks your browser's back button — you SSZB. If the scenario is such that you temporarily sat at someone else's computer in someone else's browser — use Private Window/Page after closing tabs it has not recovered. - modesta25 commented on October 8th 19 at 00:42
And as such if for example I look private information, press the button always log out, I see that he logged out and quit. Comes another person clicks the back button and see my private information.
And what's to stop this "another brow to" get into the cache at the file level and see the previous page directly, without any "nasagov"? Nefig to let strangers in your session private data. If the cache sits stored inactive page, the server in any case, with it nothing can be done until the browser open the same url. And fast open this page via the "Back" button is just a way quick and easy viewing of a cached content. I switched to Opera just because of the fact that she was able to instantly navigate through the history without having to restart the page. Even if there is a way a forced reboot does not have to follow the footsteps of MS and Apple deciding for users "needs in the sausage no." If they prefer speed to it. once again if necessary, press F5 so they consciously made that choice, and they are so comfortable. - giles_Dick commented on October 8th 19 at 00:45
October 8th 19 at 00:32
Browsers should not cache POST requests, and therefore the back button will not work.
Try in the right places to execute POST requests instead of GET.
well it's Opera, there takeshiro :) - lisa_Corw commented on October 8th 19 at 00:35
October 8th 19 at 00:34
What do you have here? opera:config#History%20Navigation%20Mode

If 3, then the behaviour is correct, try to put 1.
I'm the developer of the site. I don't use Opera, local settings, I have everything by default. I would like to adjust the behavior of the browser on foreign client machines. - lisa_Corw commented on October 8th 19 at 00:37
October 8th 19 at 00:36
You can put a Yandex.metric, and to select all the checkboxes for the counter (or rather, keep track of the hash code).
I then when returning back Opera refreshes the page. But about the POST I will not tell precisely, will send the request or not
October 8th 19 at 00:38
In such situations I checked, is JavaScript the relevance of the data, and make a redirect if they are outdated.

Find more questions by tags CachingOpera