Make WordPress Core


Ignore:
Timestamp:
11/19/2009 09:46:07 AM (15 years ago)
Author:
azaozz
Message:

Check if $_SERVERHTTP_ACCEPT_ENCODING? is set before determining whether to compress scripts, props nacin, fixes #11169

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/load-styles.php

    r11204 r12214  
    138138header("Cache-Control: public, max-age=$expires_offset");
    139139
    140 if ( $compress && ! ini_get('zlib.output_compression') && 'ob_gzhandler' != ini_get('output_handler') ) {
     140if ( $compress && ! ini_get('zlib.output_compression') && 'ob_gzhandler' != ini_get('output_handler') && isset($_SERVER['HTTP_ACCEPT_ENCODING']) ) {
    141141    header('Vary: Accept-Encoding'); // Handle proxies
    142142    if ( false !== strpos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'deflate') && function_exists('gzdeflate') && ! $force_gzip ) {
Note: See TracChangeset for help on using the changeset viewer.