cache

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
vivekjain
Forum Commoner
Posts: 76
Joined: Thu Jan 08, 2004 12:38 am

cache

Post 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
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

Code: Select all

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