Welcome Guest, Not a member yet? Register   Sign In
Output Compression error
#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.


Messages In This Thread
Output Compression error - by El Forum - 07-09-2009, 12:34 AM
Output Compression error - by El Forum - 07-09-2009, 06:24 AM
Output Compression error - by El Forum - 07-09-2009, 07:46 AM
Output Compression error - by El Forum - 07-09-2009, 11:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB