Index: tiny_mce_config.php
===================================================================
--- tiny_mce_config.php	(revision 7591)
+++ tiny_mce_config.php	(working copy)
@@ -255,9 +255,9 @@
 	
 	if ( '.gz' == $cache_ext )
 		header( 'Content-Encoding: gzip' );
+	else
+		header( 'Content-Length: ' . strlen($content) );
 
-	header( 'Content-Length: ' . strlen($content) );
-
 	echo $content;
 	exit;
 }
@@ -298,10 +298,11 @@
 if ( '.gz' == $cache_ext ) {
 	header('Content-Encoding: gzip');
 	$content = gzencode( $content, 9, FORCE_GZIP );
+} else {
+	header( 'Content-Length: ' . strlen($content) );
 }
 
 // Stream to client
-header( 'Content-Length: ' . strlen($content) );
 echo $content;
 
 // Write file
