Welcome Guest, Not a member yet? Register   Sign In
Output Compression error
#1

[eluser]Irshad Sheikh[/eluser]
I have made $config['compress_output'] = TRUE; in config.php

As soon as i try to load the site firefox tells me:

Content Encoding Error

The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

* Please contact the web site owners to inform them of this problem.

Any ideas ?
#2

[eluser]TheFuzzy0ne[/eluser]
Disable it. Smile

Some older browsers don't support it.
#3

[eluser]Cro_Crx[/eluser]
How old is your firefox? I'm fairly sure that v2 would support it. If you're running your own web host you can install compression in apache by using mod_deflate or that other method that i can never remember.

That way you can add rules to not compress for unsupported browsers.
#4

[eluser]TheFuzzy0ne[/eluser]
Here's some code from my htaccess file that should do just that.
Code:
AddOutputFilterByType DEFLATE text/css text/html application/x-javascript application/javascript

<IfModule mod_deflate.c>
        SetOutputFilter DEFLATE
        SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
        SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary
        SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
        BrowserMatch ^Mozilla/4 gzip-only-text/html
        BrowserMatch ^Mozilla/4\.0[678] no-gzip
        BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</IfModule>

That way you can just disable it from within CodeIgniter, since it's handled at a higher level. I'm not entirely sure whether or not that first line should appear within the condition block.




Theme © iAndrew 2016 - Forum software by © MyBB