Page 1 of 1

cache

Posted: Wed Jul 27, 2005 4:17 am
by vivekjain
Hi,
We have developed an application using PHP and MySQL. We are facing a problem, wherein, on execution of a PHP script, the browser displays old information or incorrect information. Basically this site would be accessed by many people and cant ask them to clear their cache everytime. Is there a way to this? We are adding this code to the pages to retain the form values, could this be an issue?

header("Cache-control: Private");

Let us know on this. Thanks

Posted: Wed Jul 27, 2005 5:36 am
by anjanesh

Code: Select all

header('Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0');