mistakes! Posted May 8, 2006 Share Posted May 8, 2006 hello. i know this headers are for caching control henceb the browser is not allowed to cache the pages locallyheader('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'); apart from that what else does it do for me? how does ot make my programme better? Quote Link to comment Share on other sites More sharing options...
phporcaffeine Posted May 8, 2006 Share Posted May 8, 2006 [!--quoteo(post=372433:date=May 8 2006, 06:09 PM:name=mistakes!)--][div class=\'quotetop\']QUOTE(mistakes! @ May 8 2006, 06:09 PM) [snapback]372433[/snapback][/div][div class=\'quotemain\'][!--quotec--]hello. i know this headers are for caching control henceb the browser is not allowed to cache the pages locallyheader('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'); apart from that what else does it do for me? how does ot make my programme better?[/quote]It depends on wether you want the page cached or not. If it is a page that updates frequently then you probably would want those headers.Those headers are just preventing cache by setting the cache expiration to an obviously past tense date. They all work together to basically do the same thingheader('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); //SET EXPIRATIONheader('Cache-Control: no-store, no-cache, must-revalidate'); // TELLS BROWSER THAT IF CACHED IT SHOULDN'T USE ITheader('Cache-Control: post-check=0, pre-check=0', FALSE); //NULLIFIES RAW DATAheader('Pragma: no-cache'); //GENERALLY FOR CROSS BROWSER COMPATIBILITY Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.