--- a/includes/clientside/jsres.php Sun Aug 08 17:18:00 2010 -0400
+++ b/includes/clientside/jsres.php Mon Aug 09 19:17:52 2010 -0400
@@ -104,17 +104,7 @@
// try to gzip the output
if ( !defined('ENANO_JSRES_SETUP_ONLY') ):
-$do_gzip = false;
-if ( isset($_SERVER['HTTP_ACCEPT_ENCODING']) && getConfig('gzip_output', false) == 1 )
-{
- $acceptenc = str_replace(' ', '', strtolower($_SERVER['HTTP_ACCEPT_ENCODING']));
- $acceptenc = explode(',', $acceptenc);
- if ( in_array('gzip', $acceptenc) )
- {
- $do_gzip = true;
- ob_start();
- }
-}
+$do_gzip = true;
// Output format will always be JS
header('Content-type: text/javascript');
@@ -272,6 +262,9 @@
$local_gentime = round($local_gentime, 5);
header("X-Performance: generated in $local_gentime seconds");
+if ( $do_gzip )
+ ob_start();
+
echo $everything;
if ( $do_gzip )