Amazon_S3_And_CloudFront::should_gzip_file PHP Method

should_gzip_file() protected method

Should gzip file
protected should_gzip_file ( string $file_path, string $type ) : boolean
$file_path string
$type string
return boolean
    protected function should_gzip_file($file_path, $type)
    {
        $mimes = $this->get_mime_types_to_gzip(true);
        if (in_array($type, $mimes) && is_readable($file_path)) {
            return true;
        }
        return false;
    }
Amazon_S3_And_CloudFront