includes/clientside/jsres.php
changeset 1301 bd9e124f5904
parent 1295 3c9c1b18567b
--- a/includes/clientside/jsres.php	Sun Sep 05 16:05:06 2010 -0400
+++ b/includes/clientside/jsres.php	Sun Sep 05 16:05:33 2010 -0400
@@ -95,6 +95,7 @@
 	'userpage.js',
 	'template-compiler.js',
 	'toolbar.js',
+	'upload.js'
 );
 
 // Files that should NOT be compressed due to already being compressed, licensing, or invalid produced code
@@ -104,17 +105,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 +263,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 )