compression problem and wrong MIMIC

#1
[eluser]Dennis_gull[/eluser]
Hi,
My server doesn't allow apache gzip / deflate so I had to compress my php/js/css files with php. However when I turn the option on in the config.php file I will get the below Fatal error when I try to call an ajax function, any ideas why I get this error message?

Quote:<b>Fatal error</b>: ob_start() [&lt;a href='ref.outcontrol'&gt;ref.outcontrol&lt;/a&gt;]: Cannot use output buffering in output buffering display handlers in <b>/home/xxxxxx/public_html/system/libraries/Exceptions.php</b> on line <b>160</b><br />
All my ajax pages uses a controller + model (no view) so maybe I can turn gzip off in the ajax page, if so how does it work?


My second question is quite weired, when I use the RewriteEngine to hide the index.php I will get the wrong MIME type on my only png file which I load from a css file, the below message is shown when I monitor the http traffic in google chrome:

Quote:Resource interpreted as image but transferred with MIME type text/plain.

This is my .htaccess:
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|(.*)\.js|(.*)\.png|(.*)\.jpg|(.*)\.gif|(.*)\.bmp|(.*)\.swf|(.*)\.css|robots\.txt|(.*)\.html|(.*).xml)
RewriteRule ^(.*)$ /u/index.php/$1 [L]

so if I comment out line 2 and 3 the MIMI type will work as it should, from what I see png files shouldn't get affected by the above code...


Messages In This Thread
compression problem and wrong MIMIC - by El Forum - 09-01-2009, 03:56 AM
compression problem and wrong MIMIC - by El Forum - 09-01-2009, 04:13 AM
compression problem and wrong MIMIC - by El Forum - 09-01-2009, 11:55 AM
compression problem and wrong MIMIC - by El Forum - 09-01-2009, 07:56 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.