[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() [<a href='ref.outcontrol'>ref.outcontrol</a>]: 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...