Stop page from caching in bootstrap PHP page
Posted: Sun Aug 17, 2014 7:24 am
I'm working on php application which contains a refresh button. On clicking I want to reload the page and get fresh information from server for the table.
I have used php headers:
As well as following meta tags
to stop the page to cache.
And I'm using
to reload the page. Its working fine in Firefox. But no result in chrome and ie.
For this application I'm using bootstrap based theme.
Any help in this regard will be appreciated as I have done every thing I found out there.
Thanks!
I have used php headers:
Code: Select all
header("Expires: Tue, 01 Jan 2000 00:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
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");
Code: Select all
<meta http-equiv="expires" content="-1"/>
<meta http-equiv="pragma" content="no-cache" />
And I'm using
Code: Select all
location.reload(true);
For this application I'm using bootstrap based theme.
Any help in this regard will be appreciated as I have done every thing I found out there.
Thanks!