Cache control not working on local server Win/XP environment
Posted: Mon Sep 06, 2004 11:23 pm
I'm doing a customer edit profile page, after modifying their profile and submit, upon clicking 'Back' they will be brought to the main menu, when clicking to the same page again, changes should be registered. I've placed the following codes right at the top of my scripts
When i check the temp internet folder, nothing has been registered - OK, however when I tried to go back to the same page again, the changes that have been made to the form just doesn't capture. Seems like the data is retrieved from the client side still but not the server, can someone please help.
Code: Select all
<?php
session_start();
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', FALSE);
header('Pragma: no-cache');
?>