mod_deflate not working

mod_deflate not working

Posted by: fxn
Posted on: 2007-01-05 18:50:00

I have a Rails application served via dispatch.fcgi and I tried to turn compression on with the standard line

AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript

in .htaccess. Static content goes compressed just fine, but dynamic content is not. According to the headers Content-Length is missing in dynamic calls,

wget -S --header="Accept-Encoding: gzip" http://www.hashref.com/

says Length: unspecified. I wonder whether the lack of a Content-Length header is the culprit. Any idea?

Re: mod_deflate not working

Posted by: fxn
Posted on: 2007-01-06 04:09:00

I get the Content-Length header now after a Rails update, but dynamic content is still not being compressed by Apache. Why?

Re: mod_deflate not working

Posted by: extras
Posted on: 2007-01-07 08:22:00

Maybe it has something to do how modules are loaded, or configured.

Probably it's better to ask tech support about that.




.*.*.* I'd be happier if DH had free shared SSL and redundant server setup. *.*.*.

Tags: text htmlstatic contentwgetfcgiculpritdynamic contenthtaccessgzip