I need to disable some pages from caching either via php or jscript. To be exact, I need certain pages to be reloaded when accessed by clicking a back button. I know a way of doing this via php (not sure it is the best one) - see the code attached.
Any other or better solutions?
header( "Expires: Mon, 20 Dec 1998 01:00:00 GMT" );
header( "Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT" );
header( "Cache-Control: no-cache, must-revalidate" );
header( "Pragma: no-cache" );