
Originally Posted by
coldscooter
I'm affraid i can't really use that thread to help me with my problem. All i want is to be able to redirect to another page and make sure that that page loads from fresh rather than cache. Surely there is a simple function... ?
Any help would be greatly appreciated.
I'm sorry, but I think that's exactly what you need.
PHP Code:
Example #2 Caching directives
PHP scripts often generate dynamic content that must not be cached by the client browser
or any proxy caches between the server and the client browser.
Many proxies and clients can be forced to disable caching with:
<?php
// add this to the top of your page with the database records
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
?>
Bookmarks