how do I setup Apache's Content-Encoding Header?

Posted by Nick on Server Fault See other posts from Server Fault or by Nick
Published on 2010-08-23T01:08:08Z Indexed on 2011/02/18 7:26 UTC
Read the original article Hit count: 266

Filed under:
|
|
|

When attempting to validate my site with the W3C validator, it returns the error, "Don't know how to decode Content-Encoding 'none'". Firebug confirms that my server is sending the header, "Content-Encoding: none".

But I can't find any directive in apache2.conf or in my vhost that sets the Content-Encoding header.

Where does the directive go, and what should it be set to?

UPDATE:

On further examination it seems something is wrong with mod_deflate (gzip). It's zipping my css files just fine, but is not zipping the html generated by my php scripts.

I have:

AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css

And the pages are showing a mime type of: "text/html". But content encoding is "none" and they aren't zipping. Perhaps these issues are related?

© Server Fault or respective owner

Related posts about php

Related posts about apache2