Hello,

It seems that I have a problem with my website and mod_gzip.
When I GET my .css stylesheet my apache doesn't answer with Content-Encoding gzip
For my .php or .html file, it does.

http://127.0.0.1/mod_gzip_status tells me
PHP Code:
mod_gzip is available...
mod_gzip_version 1.3.26.1a
mod_gzip_on 
Yes 
In mod_gzip.conf I have
PHP Code:
<IfModule mod_gzip.c>
 
mod_gzip_on Yes
 mod_gzip_can_negotiate Yes
 mod_gzip_static_suffix 
.gz
 AddEncoding gzip 
.gz
 mod_gzip_update_static No
 mod_gzip_minimum_file_size 500
 mod_gzip_maximum_file_size 500000
 mod_gzip_maximum_inmem_size 60000
 mod_gzip_min_http 1001
 mod_gzip_handle_methods GET POST
 mod_gzip_item_include         file       
\.html$
 
mod_gzip_item_include         file       \.php$
 
mod_gzip_item_include         file       \.css$
 
mod_gzip_item_include         mime       ^text/html$
 
mod_gzip_item_include         mime       ^text/plain$
 
mod_gzip_item_include         mime       ^text
 mod_gzip_item_include         mime       
^text/css$
 
LogFormat "%h %l %u %t \"%V %r\" %<s %b mod_gzip: %{mod_gzip_result}n In:%{mod_gzip_input_size}n -< Out:%{mod_gzip_output_size}n = %{mod_gzip_compression_ratio}n pct." common_with_mod_gzip_info2
 CustomLog logs
/mod_gzip.log common_with_mod_gzip_info2
 mod_gzip_send_vary Yes 
The file size of my css is 2121 bytes

The request looks like this
PHP Code:
Accept    text/css,
Accept-Encoding    gzipdeflate
Accept
-Language    fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Cache
-Control    max-age=0
Connection    keep
-alive
Cookie    __utma
=126605017.369752395.1342248439.1342248439.1342248439.1__utmz=126605017.1342248439.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
Host    127.0.0.1
If-Modified-Since    Sun22 Jul 2012 11:01:28 GMT
If-None-Match    "c6f25ea27dd77aebfa2a7f5933cd4a2453473772"
Referer    http://127.0.0.1/
User-Agent    Mozilla/5.0 (Windows NT 5.1rv:13.0Gecko/20100101 Firefox/13.0.1 
The answer looks like this
PHP Code:
Cache-Control    max-age=691200
Connection    Keep
-Alive
Date    Sun
22 Jul 2012 11:26:58 GMT
Etag    
"c6f25ea27dd77aebfa2a7f5933cd4a2453473772"
Expires    Mon30 Jul 2012 11:26:58 GMT
Keep
-Alive    timeout=15max=99
Server    Apache
Vary    Accept
-Encoding 
As you can see there is no Content-Encoding gzip in the answer and I don't understand why since I have these two lines in my configuration
PHP Code:
 mod_gzip_item_include         file       \.css$
 
mod_gzip_item_include         mime       ^text/css
Also, mod_gzip.log is supposed to log things but remains empty for some reason.