src/Rah/Cache/Handler.php
public function encoding()
    {
        if (!isset($_SERVER['HTTP_ACCEPT_ENCODING']) || headers_sent()) {
            return false;
        }

        $accept_encoding = $_SERVER['HTTP_ACCEPT_ENCODING'];

        if (strpos($accept_encoding, 'x-gzip') !== false) {
            return 'x-gzip';
        }

        if (strpos($accept_encoding, 'gzip') !== false) {
            return 'gzip';
        }

        return false;
    }
public function encoding()
    {
        if (!isset($_SERVER['HTTP_ACCEPT_ENCODING']) || headers_sent()) {
            return false;
        }

        $accept_encoding = $_SERVER['HTTP_ACCEPT_ENCODING'];

        if (strpos($accept_encoding, 'x-gzip') !== false) {
            return 'x-gzip';
        }

        if (strpos($accept_encoding, 'gzip') !== false) {
            return 'gzip';
        }

        return false;
    }
public function encoding ( ) { if ( ! isset ( $ _SERVER [ 'HTTP_ACCEPT_ENCODING' ] ) || headers_sent ( ) ) { return false ; } $ accept_encoding = $ _SERVER [ 'HTTP_ACCEPT_ENCODING' ] ; if ( strpos ( $ accept_encoding , 'x-gzip' ) !== false ) { return 'x-gzip' ; } if ( strpos ( $ accept_encoding , 'gzip' ) !== false ) { return 'gzip' ; } return false ; }
Check accepted encoding headers.

@return bool
Check accepted encoding headers .