public static function sendNoCacheHeaders()
    {
        if (false === headers_sent()) {
            header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
            header('Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT');
            header('Cache-Control: no-store, no-cache, must-revalidate');
            header('Cache-Control: post-check=0, pre-check=0', false);
            header('Pragma: no-cache');

            return true;
        }

        return false;
    }
public static function sendNoCacheHeaders()
    {
        if (false === headers_sent()) {
            header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
            header('Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT');
            header('Cache-Control: no-store, no-cache, must-revalidate');
            header('Cache-Control: post-check=0, pre-check=0', false);
            header('Pragma: no-cache');

            return true;
        }

        return false;
    }
public static function sendNoCacheHeaders ( ) { if ( false === headers_sent ( ) ) { header ( 'Expires: Mon, 26 Jul 1997 05:00:00 GMT' ) ; header ( 'Last-Modified: ' . gmdate ( 'D, d M Y H:i:s' ) . ' GMT' ) ; header ( 'Cache-Control: no-store, no-cache, must-revalidate' ) ; header ( 'Cache-Control: post-check=0, pre-check=0' , false ) ; header ( 'Pragma: no-cache' ) ; return true ; } return false ; }
Sends no cache headers to ensure that a response wont get cached on its way to the client.

@author Benjamin Carl <opensource@clickalicious.de>
@return bool TRUE if header could be send, otherwise FALSE
@access public
@static
Sends no cache headers to ensure that a response wont get cached on its way to the client .