Manaus Posted April 7, 2014 Share Posted April 7, 2014 Hello, I have a page making ajax calls, but when I go back and forth with the browser I see just the cache content. Is there any way to prevent this? I tried with all the meta tags available on the market today... Link to comment Share on other sites More sharing options...
Raymond Geerts Posted April 7, 2014 Share Posted April 7, 2014 Perhaps it will help to add these headers (just after the opening <?php call) to the top of your template file that is delivering the data to ajax if($config->ajax) { header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); } Link to comment Share on other sites More sharing options...
Manaus Posted April 7, 2014 Author Share Posted April 7, 2014 Thanks Raymond (nice picture!), I think the cached page is the caller, not the ajax stream... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now