Page 1 of 1

mod_deflate / gzip causing problems in IE

Posted: Mon Jul 21, 2008 12:42 pm
by Luke
I am using the following code for gzip compression on my websites, but for some reason it intermittently causes IE to display a blank page. I've noticed it happens a lot during redirects. Does anybody see anything in this code that would cause issues?

Code: Select all

<IfModule mod_deflate.c>
 
    AddOutputFilterByType DEFLATE text/html text/css application/x-javascript application/javascript text/javascript text/plain text/xml text/csv text/x-component 
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    <IfModule mod_headers.c>
        Header append Vary User-Agent
    </IfModule>
 
</IfModule>

Re: mod_deflate / gzip causing problems in IE

Posted: Mon Jul 21, 2008 1:42 pm
by JAB Creations
Apache...this should Miscellaneous forum I think? I hate to admit it but I think you're better off posting this particular question in WebmasterWorld's Apache forum unless we have a really quiet Apache guru here? I do GZIP through PHP not Apache.

Re: mod_deflate / gzip causing problems in IE

Posted: Mon Jul 21, 2008 1:55 pm
by Luke
good call... moving to configuration...

Re: mod_deflate / gzip causing problems in IE

Posted: Mon Jul 21, 2008 2:23 pm
by JAB Creations
Maybe you could program an exception for an HTTP query (?redirect) perhaps? I'm not sure how to do that in Apache however.

Also I think I need to take five minutes and familiarize myself with some of the lesser known forums here. :roll: