I have tried various alternatives in order to refresh the page programmatically or disable the caching, but none of these work (at least, in my system):
a) by sending a http header to disable the caching (one of the following lines)
Code: Select all
header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// always modified
header ("Cache-Control: no-cache, must-revalidate");
header ("Pragma: no-cache");b) by using javascript to refresh the page programmatically:
Code: Select all
<SCRIPT LANGUAGE="JavaScript">
<!--
location.href="admin_preview_prd_type.php?<?=$QUERY_STRING?>";
-->
</SCRIPT>c) by using meta tags with "refresh" attribute, but the browser gets stuck in an endless loop because the page refreshes indefinitely.
d) by using the javascript
Code: Select all
reload(true)Finally, I just used a prompt for the administrator that tells him/her to refresh the page, but I would like to end up with a better "coding" solution.
Would you think that one of these methods would work in a real Apache server or is there another solution ? I appreciate any help, Vasilis