Answer the question
In order to leave comments, you need to log in
How to disable caching in PHP and browser?
Good afternoon. In general, I ran into a problem. Please help me figure it out.
There is a profile, there is a settings page. I go to the settings page, make changes, save using php + ajax.
I return to the profile page, and no matter how I reload, until command + shift + r (for windows it's ctrl + r and ctrl + f5), the data on the page is not updated.
Registered in index.php headings, but all the same nothing works.
header("Content-type: text/html");
header("Expires: Mon, 23 Jun 1983 17:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question