lib/HTTP/ConditionalGet.php
public static function check($lastModifiedTime = null, $isPublic = false, $options = array())
    {
        if (null !== $lastModifiedTime) {
            $options['lastModifiedTime'] = (int)$lastModifiedTime;
        }
        $options['isPublic'] = (bool)$isPublic;
        $cg = new HTTP_ConditionalGet($options);
        $cg->sendHeaders();
        if ($cg->cacheIsValid) {
            exit();
        }
    }
public static function check($lastModifiedTime = null, $isPublic = false, $options = array())
    {
        if (null !== $lastModifiedTime) {
            $options['lastModifiedTime'] = (int)$lastModifiedTime;
        }
        $options['isPublic'] = (bool)$isPublic;
        $cg = new HTTP_ConditionalGet($options);
        $cg->sendHeaders();
        if ($cg->cacheIsValid) {
            exit();
        }
    }
public static function check ( $ lastModifiedTime = null , $ isPublic = false , $ options = array ( ) ) { if ( null !== $ lastModifiedTime ) { $ options [ 'lastModifiedTime' ] = ( int ) $ lastModifiedTime ; } $ options [ 'isPublic' ] = ( bool ) $ isPublic ; $ cg = new HTTP_ConditionalGet ( $ options ) ; $ cg -> sendHeaders ( ) ; if ( $ cg -> cacheIsValid ) { exit ( ) ; } }
Exit if the client's cache is valid for this resource

This is a convenience method for common use of the class

@param int $lastModifiedTime if given, both ETag AND Last-Modified headers
will be sent with content. This is recommended.

@param bool $isPublic (default false) if true, the Cache-Control header
will contain "public", allowing proxies to cache the content. Otherwise
"private" will be sent, allowing only browser caching.

@param array $options (default empty) additional options for constructor
Exit if the client s cache is valid for this resource