equal
deleted
inserted
replaced
135 |
135 |
136 header('Content-Type: text/css'); |
136 header('Content-Type: text/css'); |
137 header('Expires: ' . gmdate( "D, d M Y H:i:s", time() + $expires_offset ) . ' GMT'); |
137 header('Expires: ' . gmdate( "D, d M Y H:i:s", time() + $expires_offset ) . ' GMT'); |
138 header("Cache-Control: public, max-age=$expires_offset"); |
138 header("Cache-Control: public, max-age=$expires_offset"); |
139 |
139 |
140 if ( $compress && ! ini_get('zlib.output_compression') && 'ob_gzhandler' != ini_get('output_handler') ) { |
140 if ( $compress && ! ini_get('zlib.output_compression') && 'ob_gzhandler' != ini_get('output_handler') && isset($_SERVER['HTTP_ACCEPT_ENCODING']) ) { |
141 header('Vary: Accept-Encoding'); // Handle proxies |
141 header('Vary: Accept-Encoding'); // Handle proxies |
142 if ( false !== strpos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'deflate') && function_exists('gzdeflate') && ! $force_gzip ) { |
142 if ( false !== strpos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'deflate') && function_exists('gzdeflate') && ! $force_gzip ) { |
143 header('Content-Encoding: deflate'); |
143 header('Content-Encoding: deflate'); |
144 $out = gzdeflate( $out, 3 ); |
144 $out = gzdeflate( $out, 3 ); |
145 } elseif ( false !== strpos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'gzip') && function_exists('gzencode') ) { |
145 } elseif ( false !== strpos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'gzip') && function_exists('gzencode') ) { |